[EMAIL PROTECTED] wrote:
I have seemingly tried everything.  I put forceId on the <t:inputText>
(which sets the id properly); I tried a validator and calling
addMessage() from within the validator method, which although it is
bulky it did work and the error message appeared; page-level validation
works (an error message appears if I leave the field empty).  However,
it does not work if I call FacesContext.addMessage() from within the
action method.  The error message does not show up.  Is there something
else I have to do???  Like a PhaseListener or something?  Some other
setting somewhere?  I am absolutely sure I am getting the correct id
because I even used a binding property. I could really use some help. This shouldn't be that difficult. Thanks!

Adding error messages from action methods works fine for me.

And they certainly should show up, even if you don't provide a component or client-id (these are optional parameters).

Are you perhaps returning a navigation string from your action method and then using <redirect/> in your navigation rules? This would definitely discard any registered messages...

I suggest returning NULL from your action method if you are reporting any errors.

Regards,

Simon

Reply via email to