Hi, I am using T 5.0.18 and have problems with LinkSubmit not firing the event. By the way, what is the url of T 5.0.18 and its API?
I have two TextField components, one LinkSubmit and one non-tapestry ordinary input submit button. I want to set some variable (varA) in case LinkSubmit is clicked, so I can validate the TextFields differently. In case LinkSubmit is pressed only first TextField is required and in case ordinary submit is pressed, both TextFields are required. I want to do a simple if (based on the varA) in the onValidate method and set the form.recordError accordingly. BUT, the event specified in the LinkSubmit is not triggered so I can not set the varA! Can someone please suggest a workaround or a proper solution. Thanks, Borut 2009/5/13 petkovf <f...@startext.de> > > I'm found this problem since in 5.1.0.5 (stable), in 5.0.0.18 LinkSubmit > work > properly. > > Linksubmit inside a form didn't fire events while no required property is > defined inside the form: > > if you add > > @Property > @Validate("required") > private String somefield; > > in java and > > <input t:type="TextField" t:id="somefield"/> > > in tml > > your LinkSubmit began event capture > > This is a huge limitation for the developers, particularly if you want to > filter a object (entity) view this behavior doesn't help much. > > The issue https://issues.apache.org/jira/browse/TAP5-389 describe somthing > similar, but not in this tapestry version (5.1.0.5) and is closed in the > meantime. > > -- > View this message in context: > http://n2.nabble.com/Component-LinkSubmit-doesn%27t-work-tp2879193p2879193.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >