This content has been marked as final.
Show 3 replies
-
1. Re: Problem with rich:ajaxValidator inside rich:modalPanel
artemk Aug 23, 2010 10:21 AM (in response to artemk)In case anybody is wondering, I did eventually come up with a "hack"-solution. I created a subclass of HtmlAjaxValidator where I reset the submitted value of the parent input:
public class MyAjaxValidator extends HtmlAjaxValidator { @Override public void broadcast(FacesEvent event) throws AbortProcessingException { super.broadcast(event); if (event.getComponent() == this) { if (event instanceof ValidationEvent) { // Reset input to original value UIInput parent = (UIInput) getParent(); parent.resetValue(); } } } }
Then, I set my component as the default component for component type org.richfaces.AjaxValidator in faces-config.xml:
<component> <component-type>org.richfaces.AjaxValidator</component-type> <component-class>mypackage.MyAjaxValidator</component-class> </component>
-
2. Re: Problem with rich:ajaxValidator inside rich:modalPanel
muralib12 Jan 5, 2011 1:27 PM (in response to artemk)Thanks for Your solution... It helped me a lot.
-
3. Re: Problem with rich:ajaxValidator inside rich:modalPanel
muralib12 Jan 6, 2011 11:39 PM (in response to artemk)Hi Artem,
am facing the same problem with rich:calender too. if possible please test it and provide solution.
Thanks in advance.