You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/11/01 21:30:18 UTC

Multiple objects in beaneditform?

HI,

how can I display multiple objects for one single beaneditform? I mean: with
all the fields from several objects displayed with only one submit button at
the end.

I could only imagine to use t:add="prop1, prop2, prop3" and use 
<p:cellProp1>object1.prop</p:cellProp1>
<p:cellProp2>object2.prop</p:cellProp2>
...

But with that I would lose a lot of the "automation" from tapestry
generating the beaneditform just based on the object's properties.

Are there alternatives - like displaying several t:beaneditform's one after
another, but disabling the submit button, or submit the whole form with a
single one?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Multiple-objects-in-beaneditform-tp5717566.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Multiple objects in beaneditform?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 01 Nov 2012 18:51:31 -0200, Kalle Korhonen  
<ka...@gmail.com> wrote:

> http://jumpstart.doublenegative.com.au/jumpstart/examples/input/morecontroledit1/1
> (BeanEditForm is comprised BeanEditor component and buttons)

Yep. Almost everything done by BeanEditForm is actually done by  
BeanEditor. I don't even use BeanEditForm myself, jsut BeanEditor. Here's  
the actual BeanEditForm template in T5.1.0.4 (it's probably still the same  
in T5.3.6):

<form t:id="form"
       xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
     <t:errors/>

     <div class="t-beaneditor">

         <t:beaneditor t:id="editor" object="object" model="model"  
overrides="this"/>

         <div class="t-beaneditor-row">
             <input type="submit" class="t-beaneditor-submit"  
value="${submitLabel}"/>
         </div>
     </div>

</form>

-- 
Thiago H. de Paula Figueiredo

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


Re: Multiple objects in beaneditform?

Posted by Kalle Korhonen <ka...@gmail.com>.
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/morecontroledit1/1
(BeanEditForm is comprised BeanEditor component and buttons)

Kalle

On Thu, Nov 1, 2012 at 1:30 PM, membersound <me...@web.de> wrote:
> HI,
>
> how can I display multiple objects for one single beaneditform? I mean: with
> all the fields from several objects displayed with only one submit button at
> the end.
>
> I could only imagine to use t:add="prop1, prop2, prop3" and use
> <p:cellProp1>object1.prop</p:cellProp1>
> <p:cellProp2>object2.prop</p:cellProp2>
> ...
>
> But with that I would lose a lot of the "automation" from tapestry
> generating the beaneditform just based on the object's properties.
>
> Are there alternatives - like displaying several t:beaneditform's one after
> another, but disabling the submit button, or submit the whole form with a
> single one?
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Multiple-objects-in-beaneditform-tp5717566.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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