Feature Requests item #609726, was opened at 2002-09-15 20:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=354754&aid=609726&group_id=4754

Category: framework
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Malcolm Edgar (malcolm_edgar)
>Assigned to: Malcolm Edgar (malcolm_edgar)
Summary: Define JavaScript validation trigger

Initial Comment:
With data entry forms I usually have a OK and Cancel 
button, where OK is used to validate and process the 
form and Cancel goes to some other page or view state.

With the new JavaScript client side validation the 
validation is invoked when the form is posted. 
Unfortunately if the user presses the Cancel button this 
also invokes the client side validation.

What I would like is to be able to specify a Submit 
component (OK button) to invoke the JavaScript 
validation rather than the use the Form post.

The Form post could be in default validation event 
trigger, but we could override it by specifying another 
component [Button|From|Submit].

<set-property name="validationTrigger" 
expression="components.buttonOk">

Currently I am having to switch 
off "clientScriptingEnabled" which is a shame as it is 
very good.

----------------------------------------------------------------------

Comment By: Howard Lewis Ship (hship)
Date: 2002-09-15 21:26

Message:
Logged In: YES 
user_id=26816

As a workaround, could you put JavaScript on your "cancel" 
button to set the form's onsubmit event handler to null before 
submitting?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=354754&aid=609726&group_id=4754


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to