Hi,

On Tue, Jul 26, 2011 at 5:15 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, 25 Jul 2011 23:29:20 -0300, TG <tapestry...@hotmail.com> wrote:
>
>  I use beaneditform to generate my CRUD UI and web tiers automagically. I
>> would like to have Delete action prompt me to confirm or cancel the
>> action, no customization required, plain confirmation box.
>>
>
> Most of what you want is done by using a BeanEditor and a couple Submit
> instances inside a Form instead of using BeanEditForm. No additional Java
> code needed. The confirmation box needs JavaScript and there are some
> examples in this list. JumpStart has at least one example of this (and lots
> of examples of many other things): http://jumpstart.**
> doublenegative.com.au/**jumpstart/<http://jumpstart.doublenegative.com.au/jumpstart/>
>
>
>  I saw some threads in
>> this forum, it does not seem to have any one link annotation or codes that
>> can let me just provide this simple functionalities.I do not want to write
>> any Java class or anything that is more than 1 or 2 lines of codes, is it
>> possible?
>>
>
> Don't you think you're asking too much? ;) As Howard once said,
> BeanEditForm, BeanEditor, and Grid are meant to be used to get something
> working quickly, not to be the solution of all scenarios.
>

Just customize the bean edit form by adding a delete button, by copying the
entire tml and java class in your components package and make the needed
changes. I use this approach and works for me.

I often use complex components, that let me assemble pages like lego boxes.
I prefer extreme scenarios where for CRUD pages (Even customized crud pages)
don't have ANY (or a few lines at max) java code in the page class, just TML
;)

Cheers,
Dragan Sahpaski


>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to