Hi.
The action method bindings of the backing beans process the request and can
determine the next view through returning a navigation control. Null
re-displays the current view so you can set up logic which goes
If (someBusinessLogic()) {
displayConfirmationMessage();
return myNextView;
} else {
displayErrorMessage();
return null;
}
We have a message area included on each JSP page which processes actions and
inform the user of processing outcomes by using the Message interface and
sending warnings, errors and info messages. Each of our backing beans
inherits the following
protected void setInfoMessage(String msg) {
getFacesContext().addMessage(null, new
FacesMessage(FacesMessage.SEVERITY_INFO, msg, null));
}
protected void setWarnMessage(String msg) {
getFacesContext().addMessage(null, new
FacesMessage(FacesMessage.SEVERITY_WARN, msg, null));
}
protected void setErrorMessage(String msg) {
getFacesContext().addMessage(null, new
FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null));
}
Well, this looks fine. So you just queue a message for the null client id?
How do you display messages for null within the mage? Could you please post the
corresponding code for the message area?
Thank you.
Bye.
/lexi