Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 3:49 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jul 2011 10:31:28 -0300, dragan.sahpas...@gmail.com < > dragan.sahpas...@gmail.com> wrote: > > Yes sure I agree, but I guess It cannot be done inside the BeanEditForm >> unless you introduce a

Re: Delete confirmation with beaneditform

2011-07-26 Thread TG
So how do I make use of these two files (.js and .java)? Delete ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Delete-confirmation-with-beaneditform-tp4634451p4635174.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 10:31:28 -0300, dragan.sahpas...@gmail.com wrote: Yes sure I agree, but I guess It cannot be done inside the BeanEditForm unless you introduce a new component quite similar to it with this delete functionality. Again, just use Form and BeanEditor instead of BeanEditForm.

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 3:26 PM, Taha Hafeez wrote: > Hi Dragan, > > IMHO copy-paste is never good. Think about any change in BeanEditForm > in the future. > Yes sure I agree, but I guess It cannot be done inside the BeanEditForm unless you introduce a new component quite similar to it with this

Re: Delete confirmation with beaneditform

2011-07-26 Thread Taha Hafeez
Hi Dragan, IMHO copy-paste is never good. Think about any change in BeanEditForm in the future. regards Taha On Tue, Jul 26, 2011 at 6:47 PM, dragan.sahpas...@gmail.com wrote: > Hi, > On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Tue, 26 J

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jul 2011 04:38:39 -0300, dragan.sahpas...@gmail.com < > dragan.sahpas...@gmail.com> wrote: > > Just customize the bean edit form by adding a delete button, by copying >> the entire tml and

Re: Delete confirmation with beaneditform

2011-07-26 Thread Taha Hafeez
Hi Here is another example of a Confirm mixin https://github.com/tawus/tawus/blob/master/tawus-core/src/main/java/com/googlecode/tawus/mixins/Confirm.java https://github.com/tawus/tawus/blob/master/tawus-core/src/main/resources/com/googlecode/tawus/mixins/confirm.js regards Taha On Tue, Jul 26,

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 08:31:58 -0300, TG wrote: Sorry I meant with Grid component not beaneditform, do you know what is the simplest way to provide confirmation dialog? Confirm or Cancel? In this case, the use of Grid does not difference. Just search the mailing list for "confirmation mixin"

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 04:38:39 -0300, dragan.sahpas...@gmail.com wrote: 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. Hi! I'm sorry, but I

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
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 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 >>

Re: Delete confirmation with beaneditform

2011-07-25 Thread Thiago H. de Paula Figueiredo
On Mon, 25 Jul 2011 23:29:20 -0300, TG 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 Bean