Are you serious?  Does this mean I have to bind any component I want to add messages to so that I can actually have a reference to the component?

Travis

On 12/12/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
addMessage takes a component clientId, not an id.

Make sure you're using addMessage(component.getClientId(facesContext)...

On 12/12/05, Travis Reeder <[EMAIL PROTECTED] > wrote:
> I'm trying to set a message to show up with the h:message tag, but it's not
> working.
>
> Ex: component id="myComponent"
>
> <h:message for=""
>
> It shows up validation errors and what not, but now when I add like this in
> an action method:
> FacesContext.getCurrentInstance().addMessage(componentId, new
> FacesMessage(severity, rawMsg, null));
>
> I've verified that there is no redirect in faces-config happening either.
>
> Is this a bug?
>
> Travis
>
>
>

Reply via email to