Now that you mention it, we did.  In our faces-config.xml, we had navigation
rules that looked like

  <navigation-rule>
    <from-view-id>/reports/financialAssistanceReport.jsp</from-view-id>
    <navigation-case>
      <from-outcome>SUCCESS</from-outcome>
      <to-view-id>/reports/financialAssistanceReport.jsp</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>FAILURE</from-outcome>
      <to-view-id>/reports/error.jsp</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

Removing the "<redirect/>" solved the problem of the disappearing messages. 
Thanks!  5 stars - Dave


Michael Kurz wrote:
> 
> 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
>>>>
>>>
>>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Help-figuring-out-why-my-error-message-is-not-displaying-tp27426781p27439848.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to