I found out that the real cause of the problem was beaneditform add
parameter.

For example

<t:beaneditform object="deposit" add="account" model="depositModel" >
        <t:parameter name="account">
        ...
        </t:parameter>
</t:beaneditform>

will fail and

<t:beaneditform object="deposit" model="depositModel" >
        <t:parameter name="account">
        ...
        </t:parameter>
</t:beaneditform>

public BeanModel getDepositModel() {
        ...
        model.add("account");
        return model;
}

will work.


kristjankelt wrote:
> 
> 
> I'm using a bean edit form with the select object component (taken from
> Tapestry Wiki http://wiki.apache.org/tapestry/Tapestry5SelectObject).
> 
> <t:beaneditform object="deposit" add="account" model="depositModel" >
>       <t:parameter name="account">
>               <t:label for="account"/>
>               <t:selectObject t:id="account" 
>                       list="accounts" value="deposit.account"
>                       labelField="literal:account"/>
>       </t:parameter>
> </t:beaneditform>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-BeanEditForm-and-selectObject-component-tp21270740p21473720.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to