Re: Tapestry Forms and Cancel Button

2009-04-25 Thread Geoffrey Wiseman
On Sat, Apr 25, 2009 at 3:06 PM, Marcus Veloso wrote: > Another option? > > ... > > > > ... > > > void onSubmitFromCancelForm() { ... } > I included that one: > I could move the cancel button outside of the form element (outside a > form, or in another form

Re: Tapestry Forms and Cancel Button

2009-04-25 Thread Marcus Veloso
Another option? ... ... void onSubmitFromCancelForm() { ... }

Re: Tapestry Forms and Cancel Button

2009-04-25 Thread Geoffrey Wiseman
On Thu, Apr 23, 2009 at 8:21 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > *Using a Link with a Button Inside* > I tried using a link with an HTML button inside, as was described > here, > and it had an interesting effect. I haven't tra

Re: Tapestry Forms and Cancel Button

2009-04-25 Thread Geoffrey Wiseman
On Thu, Apr 23, 2009 at 11:18 PM, Robert Zeigler wrote: > What about: > > .tml: > > Cancel > > .java: > > @Inject > private ComponentResources resources; > > public String getCancelURL() { >return resources.createEventLink("cancel").toAbsoluteURL();//or you > could inject the service for crea

Re: Tapestry Forms and Cancel Button

2009-04-23 Thread Robert Zeigler
What about: .tml: Cancel .java: @Inject private ComponentResources resources; public String getCancelURL() { return resources.createEventLink("cancel").toAbsoluteURL();//or you could inject the service for creating page links and create a regular page link... } public Object onCanc

Tapestry Forms and Cancel Button

2009-04-23 Thread Geoffrey Wiseman
I like my forms to have cancel buttons. Tapestry BeanEditor forms don't have them. There are some options, each with some problems. I've been reading a bunch of other threads on the subject, and thought I'd summarize some of the options and issues here. *Submit Button* The most common approach