You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christoph Jaeger <ch...@derwald.at> on 2007/12/03 21:18:26 UTC
Add a button to BeanEditForm
Hi,
is there an easy way of adding a button to a BeanEditForm? Just an
additional "Delete" or "Copy" button? Maybe like you can influence how a
specific property is displayed with a <t:Parameter
name="firstName">...</t:Parameter> inside the BeanEditForm.
Thanks,
Christoph Jäger
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Add a button to BeanEditForm
Posted by Robert Zeigler <ro...@scazdl.org>.
You can also do hackish things like: create your model via
BeanModelSource,
add a property for your button (something like:
model.add("button",null)), then add the appropriate template markup to
override the rendering of the "button" property (if you don't,
tapestry will complain). Throw in a bit of css for styling, and it
works. It's not beautiful, but I have a solution like this working for
T5.0.5 (where BeanEditor isn't yet split from BeanEditForm).
Cheers,
Robert
On Dec 3, 2007, at 12/33:21 PM , Howard Lewis Ship wrote:
> Currently, you would need to build your own Form, including an Errors
> component, a BeanEditor component, and you own Submit components.
>
> On Dec 3, 2007 12:18 PM, Christoph Jaeger
> <ch...@derwald.at> wrote:
>> Hi,
>>
>> is there an easy way of adding a button to a BeanEditForm? Just an
>> additional "Delete" or "Copy" button? Maybe like you can influence
>> how a
>> specific property is displayed with a <t:Parameter
>> name="firstName">...</t:Parameter> inside the BeanEditForm.
>>
>> Thanks,
>>
>> Christoph Jäger
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> 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
Re: Add a button to BeanEditForm
Posted by Howard Lewis Ship <hl...@gmail.com>.
Currently, you would need to build your own Form, including an Errors
component, a BeanEditor component, and you own Submit components.
On Dec 3, 2007 12:18 PM, Christoph Jaeger <ch...@derwald.at> wrote:
> Hi,
>
> is there an easy way of adding a button to a BeanEditForm? Just an
> additional "Delete" or "Copy" button? Maybe like you can influence how a
> specific property is displayed with a <t:Parameter
> name="firstName">...</t:Parameter> inside the BeanEditForm.
>
> Thanks,
>
> Christoph Jäger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org