[FLOW3-general] Fluid formular + Parent-Child objects

"Christian Müller (Kitsunet)" christian.mueller at typo3.org
Wed Nov 9 11:59:17 CET 2011


This is a protection of the propertyMapper, actually the error message 
should tell you what you need to configure to create the nested 
object(s) (propertyMapper Configuration).

Look for example in thread "Initialize create action for an unknown 
number of properties" there you see how it should work.

Cheers,
Christian

On 09/11/11 11:04, Patrick Sernetz wrote:
> Hi,
>
> I am trying to solve a little problem. I am trying to setup a webform to
> fill in some appointments. The form appointments is connected to an domain
> class.
>
> class Appointment
>   '--->  creator (class human)
>   '--->  date
>   '--->  subject
>
> class human
>   '--->  name
>   '--->  firstname
>   '--->  department
>
> So I´ve create a fluid form like that
>
> <f:form action="createAppointment" controller="Appointment" package="Cal"
> name="appointment" object="{appointment}">
>
>   <f:form.textbox id="date" property="date" /><br />
> <f:form.textbox id="subject  " property="subject " /><br />
> <f:form.textbox id="creator  " property="creator " /><br />
>                          <f:form.textbox id=" creator.name " property="
> creator.name" /><br />
>                          <f:form.textbox id=" creator.firstname "
> property="creator.firstname" /><br />
> <f:form.textbox id=" creator.department " property="creator.department"
> />--><br/>
>    <f:form.submit value="Create the appointment" />
>
> </f:form>
>
> As a result I´ve expected that Flow would create a complete object
> appointment filled with all the details for the appointment and the
> creator. But this doesn´t work. It fails with a message that it´s not allow
> to create an object.
>
> I already tried to assign an appointment object to the view, with all the
> details already filled in. So it´s more or less an update of an object and
> not a new one, but this fails with the same message.
>
> Could someone please help me?
>
> Regards,
> Patrick




More information about the FLOW3-general mailing list