| 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
|
 |
 |
|
|
subject: Skip validation while opening modal panel
|
|
|