[ http://issues.apache.org/struts/browse/SHALE-37?page=all ]
Craig McClanahan moved STR-2694 to SHALE-37:
--------------------------------------------
Project: Shale (was: Struts Action 1)
Key: SHALE-37 (was: STR-2694)
Component: (was: Shale)
Version: (was: Nightly Build)
Assign To: (was: Struts Developer Mailing List)
> [Shale] Commons validator ignores the immediate attribute when using client
> side validation
> -------------------------------------------------------------------------------------------
>
> Key: SHALE-37
> URL: http://issues.apache.org/struts/browse/SHALE-37
> Project: Shale
> Type: Bug
> Environment: Operating System: other
> Platform: Other
> Reporter: Gary VanMatre
> Attachments: ValidatorHijack.patch, validator.patch
>
> This patch hijacks the renderers for the commandLink and commandButton
> components. If the immediate attribute is turned on, javascript is injected
> into the onclick event to turn off validation. The new default behavior will
> be to disable client-side validation if the immediate flag is true. This
> behavior can be overridden using an attribute override.
> Default to disable:
> <h:commandLink
> immediate="true"
> value="Use cases top-level menu"
> action="usecases$toplevel"/>
> Override default:
> <h:commandButton
> immediate="true"
> value="Use cases top-level menu"
> action="usecases$toplevel">
> <f:attribute name="org.apache.shale.validator.immediate"
> value="false"/>
>
> </h:commandButton>
> This is a bit of trickery so I wanted to see if others had any feedback
> before
> going forward.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]