I create a simple page with a form i.e.:
TestPage.html:
<form jwcid="@Form" delegate="bean:validationDelegate"
success="listener:save" cancel="listener:cancel">
Value:<input jwcid="@TextField" displayName="Value"
validators="validators:required" value="ognl:value" />
<p><input type="submit" value="Save" />
<input jwcid="@Submit" submitType="cancel" value="Cancel" /></p>
</form>
TestPage.java:
public abstract class TestPage extends BasePage {
private static Log log = LogFactory.getLog(TestPage.class);
@Bean(ValidationDelegate.class)
public abstract IValidationDelegate getValidationDelegate();
@InjectObject("engine-service:page")
public abstract IEngineService getPageService();
public abstract String getValue();
public ILink save() {
log.debug("save val: " + getValue());
return getPageService().getLink(false, "Home");
}
public ILink cancel() {
log.debug("cancel");
return getPageService().getLink(false, "Home");
}
}
If I click "Cancel" I get a validation failure for the field and the cancel
listener never gets called. If I enter a value and click "Cancel", the save()
listener is called. The cancel() listener is still not called.
This occurs w/Jetty-6.1.7 and FF2 although I can't believe this particular
problem is browser dependent (unless I'm really misunderstanding how this
should work).
If you have any other questions, let me know.
Thanks a lot,
Heath
On Mon, Mar 10, 2008 at 08:28:23AM +0200, Andreas Andreou wrote:
> Is it an async form or not? How could i recreate this behavior? browsers?
>
> On Mon, Mar 10, 2008 at 5:54 AM, Heath Nielson <
heath@...> wrote:
> > I'm behind in reading my email. I just updated from 4.1.3 to 4.1.5 and ran
> > into the same problem that you are describing. Are you still having this
> > problem?
> >
> > Heath
> >
> >
> >
> > On Sat, Feb 23, 2008 at 08:52:03PM +1100, Geoff Callender wrote:
> > > Surely someone else is experiencing this symptom in 4.1.5. No?
> > >
> > > On 21/02/2008, at 8:24 AM, Geoff Callender wrote:
> > >
> > > >Is anyone else seeing this? In T4.1.5, I'm seeing all the client-
> > > >side validation errors momentarily displayed when I submit cancel, eg.
> > > >
> > > > <input type="submit" jwcid="@Submit" value="Cancel"
> > > >submitType="cancel"/>
> > > >
> > > >I'm pretty sure this wasn't happening in 4.1.3.
> > > >
> > > >Cheers,
> > > >
> > > >Geoff
> > > >
http://files.doublenegative.com.au/jumpstart> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
users-unsubscribe@...
> > For additional commands, e-mail:
users-help@...
> >
> >
>
>
>
> --
> Andreas Andreou -
andyhot@... -
http://blog.andyhot.gr> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
users-unsubscribe@...
> For additional commands, e-mail:
users-help@...
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...