On Tue, Jul 26, 2011 at 3:26 PM, Taha Hafeez <tawus.tapes...@gmail.com>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 delete functionality. Cheers, Dragan Sahpaski > > regards > Taha > > On Tue, Jul 26, 2011 at 6:47 PM, dragan.sahpas...@gmail.com > <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 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 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 wouldn't recommend this at all. BeanEditForm is almost > >> nothing more than a Form with a BeanEditor and an HTML submit button > inside. > >> The real work is done by BeanEditor, so copying BeanEditForm makes > >> absolutely no sense to me. > >> > >> Why not? If you just want to add a delete button, than that doesn't > nothing > > to do with the actual beaneditor. You just add a delete button that > should > > only be aware of the editing object in order to delete it (if you want > that > > automatically to work in the bean edit form component). > > > > 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 > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >