Feature #4218

Support for properties of nested objects using "property"-argument

Added by Marcel Rosenberger almost 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-08-10
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

Hi all,

it would be great to be able to use the "property"-argument to specify values for nested objects. Here is an example:

Given a class “Club” and a class “User”. The Club has a property “user” that references a User-Object.

Club->user = User-Object

With Fluid I want to provide a formular for editing the Club-Object AND User-Object (inside the Club-Object) simultaneously. What I am trying to do is something like:

<f:form
    method="post" 
    controller="Club" 
    action="mailChanges" 
    name="updatedClub" 
    object="{club}" 
    arguments="{club : club}">

<p>Clubname: <f:form.textbox property="name" /></p>
<p>Responsible for Club: <f:form.textbox property="user.name" /></p>

[...submit...]

</form>

When the formular is submitted the club's name and the name for the responsible should be changed.

Also available in: Atom PDF