Are you certain that inputId = component.getClientId(context)?

You should try putting a global messages tag on the page so you can
determine if it's showing up with a different client id.

You can also manually specify "null" or a specific client id in addMessage().

On Tue, Feb 2, 2010 at 3:23 PM, laredotornado <[email protected]> wrote:
>
> 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-tp27426781p27426781.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to