[Flow] SOLVED Re: Edit view, hidden fields, [__identity]

mario chiari ml at mariochiari.net
Mon Jun 17 17:42:33 CEST 2013


Hi

My Edit template had something like:

<f:for each="{father.sons}" as="so" iteration="i"> 
<f:form.textfield property="sons.{i.index}.name" id="name" name="name"
value="{so.name}"/>  

Now, it seems that --value="{so.name}"--  gets in the way of the
required rendering. Without it, Flow/Fluid render fine the required
hidden fields
<input type="hidden" name="father[sons][0][__identity]" value="..." />.

To me, it could be considered a (minor) bug, even if I understand that
it is somehow awkward to write a 'value' attribute within an Edit
template. To do so, however, should not bar the correct rendering of the
hidden fields. 

thanks
cheers
mario

ps. to who knows the core code, does
Fluid/ViewHelpers/Form/AbstractFormFieldViewHelper :: getValue() need to
be somehow fixed?



On Mon, 2013-06-17 at 10:00 +0200, mario chiari wrote:
> Hi,
> 
> how is that - in a Edit view for a Father/Son model - Flow inserts
> hidden input fields:
> 
> <input type="hidden" name="father[__identity]" value="..." />
> <input type="hidden" name="father[sons][0][__identity]" value="..." />
> <input type="hidden" name="father[sons][1][__identity]" value="..." /> ?
> 
> I have developed a couple of basic packages, and for the simplest one I
> am unable to force Flow to insert such hidden fields for the Son objects
> (and so when I try to edit a father and all of his sons, Flow instead
> creates new sons records unrelated with any father).
> 
> Help is welcome
> thanks, cheers
> mario
> 
> 
> 
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow




More information about the Flow mailing list