Do you have any redirects in between?
--
Michael
Am 03.02.2010 15:37, schrieb laredotornado:
We have one form on the JSF page. When we click the "Submit" button, that
action links to a method in a controller. In that controller, if no results
are found from a search, we call the "addErrorMessages" method I described
above. I have verified through log statements that that is getting called.
So I am confused as to why the FacesMessage we are adding to the context is
not getting displayed.
Thanks for any additional help, - Dave
Michael Kurz wrote:
Hi,
when should the messages be displayed (on page load, on page submit).
Could you quickly describe your page setup?
regards
Michael
Am 02.02.2010 21:23, schrieb laredotornado:
Hi,
I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. I have verified in my
controller that this method is being called with non-empty parameters ...
protected void addErrorMessage(final String inputId, final String
errMsg)
{
final FacesMessage message = new FacesMessage();
message.setSeverity(FacesMessage.SEVERITY_ERROR);
message.setSummary(errMsg);
final FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(inputId, message);
} // addErrorMessage
but this code on my JSF page is not displaying the error ...
<t:messages layout="table" showDetail="true" showSummary="true"
styleClass="error"/>
Any ideas how to troubleshoot this problem further or do you see anything
immediately wrong? Thanks, - Dave