[TYPO3-mvc] Extbase / Fluid Form Viewhelper: Only want to change one property of object

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Tue Apr 30 15:14:00 CEST 2013


On 04/21/2013 10:12 AM, Domi wrote:
> On 04/18/2013 01:04 AM, g4-lisz at tonarchiv.ch wrote:
>> Hi there,
>>
>> I have a object 'Demand' with a lot of properties, e.g.  string
>> 'fulltext' and integer 'ordering'.
>>
>> Now there is a form where I want to change just one of it's properties
>> (others of them have been set in an earlier step):
>>
>>      <f:form name="demand" object="{demand}" action="...">
>>          <f.form.hidden property="ordering" value="1">
>>      </f:form>
>>
>> If i do so, all other properties are lost. If i want to keep another
>> property 'fulletxt', i have to put it in a hidden field, too:
>>
>>      <f:form name="demand" object="{demand}" action="...">
>>          <f.form.hidden property="fulltext">
>>          <f.form.hidden property="ordering" value="1">
>>      </f:form>
>>
>> Because I have a lot of properties and because I don't know which one of
>> them are set, a had to put a whole bunch of hidden properties in the
>> form. This is quite impractical.
>>
>> Is there a way to tell the form handler that it should keep all
>> properties, without explicitly listing every property?
>>
>> Cheers,
>> Till
> Hi Till,
>
> maybe a partial validation would help?
> http://forge.typo3.org/projects/typo3v4-mvc/wiki/How_to_use_partial_validation_for_a_multi-step_form
>
>
> Regards,
> Dominic
>
Hi Dominic,

thanks for the hint! At the moment this approach would be too much work 
because a lot of controllers were involved...

Regards,
Till



More information about the TYPO3-project-typo3v4mvc mailing list