facelets - jsf h:messages/ h:message for specific clientId -


I would like to display different face messages with programmable set client EIDs. In my opinion I

  & lt; H: outputText value = "Warning message # {FaceSpace.GetZlight ('Warning message')}" /> is used I & Lt; H: output text value = "verification message # {facesContext.getMessageList ('verification message')}" />   

Messages for debugging are all but ...

   for & Lt; H: Message = "Warning message" /> for   

does not display anything

  & lt; H: Message / & gt;   

Works but I want to show different message boxes. How can I do that? Thank you

Marcel

It seems that you have been censored with different client IDs Custom / Global Messages from General Verification Messages

You should not do this. If you want to display custom / global messages, just do not specify a client ID. IE, set it to null .

  context.addMessage (empty, face message);   

That way they all

     

And use the queens of messages in the normal way.

  & lt; H: inputText id = "foo" required = "true" /> & Lt; H: for the message = "foo" />   

or

  & lt; H: Message Global Only = "Wrong" />    

Comments