[TYPO3-mvc] Working with Tx_Extbase_Persistence_ObjectStorage

Gernot Leitgab leitgab at gmail.com
Wed Aug 10 12:02:46 CEST 2011


Hi Franz,

>> Template:
>>> <f:form action="create" controller="User" name="newUser"
>> object="{newUser}" method="post">
>>> 	[...]
>>> 	<f:form.select name="usergroup" property="usergroup"
>> options="{usergroupArray}" optionValueField="uid"
>> optionLabelField="title" />
>>> 	[...]
>>> </f:form>
> 
> if you set the "property" attribute, don't set the "name" attribute, it 
> will be created automatically for you. I suppose that's the issue in 
> your case (the custom field name might not belong to the field array of 
> your user object and is thus not mapped to the object). In doubt, check 
> the resulting html code and see if your usergroup property is part of 
> your user object namespace, like the other fields.

I removed the "name" attribute from my fluid template, but the problem
persists. The resulting html code for the usergroup-field is:
> <select name="tx_myext_pi1[newUser][usergroup]">
> <option value="1">Privat</option>
> <option value="2">Firma</option>
> </select>
For the username-field it is:
> <input id="username" type="text" name="tx_myext_pi1[newUser][username]" value="foo" class="f3-form-error" />

As you can see, namespace is the same...

Best regards,
Gernot



More information about the TYPO3-project-typo3v4mvc mailing list