aspose file tools
The moose likes JSF and the fly likes Skip validation while opening modal panel Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Skip validation while opening modal panel" Watch "Skip validation while opening modal panel" New topic
Author

Skip validation while opening modal panel

Shaiju scientia
Greenhorn

Joined: Jan 17, 2006
Posts: 15
Hi,
I have a form where it got an icon to open an LOV(List Of Values) panel.The LOV panel is nothing but a modal panel.
The original form(the parent form ) got couple of inputText with required="true" validation. To open the LOV panel i.e the modal panel, I am using a h:commandLink


Now the issue is , the moment I click on this button, the required="true" validation for the inputTextBox get fired and stays back in the page,with validation error messages.
If I enter some value in the text box , the modal panels shows up ,as the validation is passed this time.

I have tried using a4j:commanButton also , but without any luck.
Can anybody suggest ??

Thanks in advance.
Shaiju
Max Katz
Ranch Hand

Joined: Aug 03, 2009
Posts: 72
This should help: http://java.dzone.com/news/richfaces-region-partial-jsf . You can probably also use immediate="true".

Max
http://mkblog.exadel.com


Blog: http://mkblog.exadel.com
HTML Prototypes: http://gotiggr.com
Anand Ramesh
Greenhorn

Joined: Apr 28, 2009
Posts: 27
Have you solved it yet ?
If not,
You may need to consider using PhaseListener to deactivate page validation on

public void afterPhase(PhaseEvent arg0)

with custom code

and the phase should be

public PhaseId getPhaseId() {
return PhaseId.APPLY_REQUEST_VALUES;
}


Ramesh
SCEA 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Skip validation while opening modal panel
 
Similar Threads
richfaces modal panel perfromance
how to skip validation phase only
No Required validation in xhtml + JSF
Submit dataTable fields
commandLink with <rich:dataTable>, problem in pagination