I tried alot to validate the input fields with ajax call of command button. Its not working at all.. But if we just use command action then validation is happening. Dont know what is happening inside the code..Can you please help me out??
This is my code.
if <f:ajax execute="@this" render="@form"/> is removed then validation is happeing.but this code is placed then validation is not happening. Dont know exactly what is happening here..
I can venture a suggestion. It's the best I can do until I can spare the time to actually learn how the JSF2 ajax tag works (I'm still working with RichFaces3).
In RichFaces, at least, there's the ability to limit the data being transmitted when a submit is done. "immediate="true"" would submit no data at all (basic JSF), "ajaxSingle="true"" would submit only the value of the control that contained the ajax submit (RichFaces a4j:support tag), and no qualification would submit the entire form.
So what I suspect is that your f:ajax tag is doing is the equivalent of the RichFaces "ajaxSingle" submit and you need to modify it to widen the data set being submitted.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 15, 2008
Yeah you are correct Tim,
if i use <f:ajax execute="@all" render="@form"/> instead of <f:ajax execute="@this" render="@form"/>