You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2006/01/10 06:13:12 UTC

DO NOT REPLY [Bug 37932] - [Shale] Commons validator ignores the immediate attribute when using client side validation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37932>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37932





------- Additional Comments From gvanmatre@comcast.net  2006-01-10 06:13 -------
Created an attachment (id=17376)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17376&action=view)
patch for another approach 

This is another approach to fix client side validation for an immediate
command.  This approach is based on a comment from David Geary that Renderer
should be decorated like the ViewHandler.

The shale view handler creates a wrapper RenderKit that decorates the original.
 The wrapper overrides the getRenderer() method creating a decorator for the
renderer's of the "javax.faces.Command" family and then re-registering with the
RenderKit.

This approach seems cleaner than hard coding the RI and myfaces renderers in
the source. We might also create our own decorated renderer's configuration
file making this a feature that could be applied to all components.

We could also add logic to fix the commandLink java script error in the RI. 
The form onsubmit event is not invoked making client side validation
nonfunctional using the commandLink component.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org