[TYPO3-mvc] fluid select selected="selected"

Bas van der Togt b.vandertogt at profinit.com
Thu Feb 7 14:22:22 CET 2013


Tnx Stefano.
I tried vhs 1.5.0

but with: <v:form.select id="staff" property="staff" options="{staffs}" 
optionLabelField="name" optionValueField="uid" />

I get an multiple select. Tried to set multiple="0" but then i still get 
an multiple select. De selected="selected" attribute is also not set.

Bas

Op 07-02-13 14:00, Stefano Cecere schreef:
> Hi Bas
>
> i solved lot's of form select problems by
> http://fedext.net/viewhelpers/vhs/Form/Select/OptionViewHelper.html
>
> PS: vhs rules! :)
>
>
> On 07/02/13 13:49, Bas van der Togt wrote:
>> Hello,
>>
>> I have a select field with inside some object data:
>>
>> <f:form action="create" name="newAppointment" object="{newAppointment}"
>> arguments="{appointment: appointment}" method="post">
>>      <f:form.select property="staff" options="{staffs}"
>> optionLabelField="name" optionValueField="uid" />
>> ...
>>
>> This works all fine. But when i select an item, submit and the form does
>> not validate, the select does not preselect my choice.
>>
>> I tried value="{newAppointment.staff}" but that does not work.
>>
>> Any idea?
>>
>> Kind regards,
>> Bas
>
>



More information about the TYPO3-project-typo3v4mvc mailing list