can u use valueChangeListener ?

On 6/27/07, ::SammyRulez:: <[EMAIL PROTECTED]> wrote:
Hi folks

I'm re-engineering a app with a custom (and overseized IMHO) message management.

I would like to use standard FaceMessages instad of the hyperbolic
h:output used everywhere.

But I realized that messages added in Invoke Application phase are
ignored (http://www.jsf-faq.com/faqs/faces-messages.html#110 )

Is there any way to make something like this to work

public String addNewUser() {
 ...
 String message = "User added!";
 FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(
FacesMessage.SEVERITY_INFO, message, message));
...
}

and display the message in h:messages?

--
::SammyRulez::
http://www.kyub.com/blog/
-----------------------------------------------------------------
La programmazione รจ per un terzo interpretazione e per due terzi ispirazione.
 E per un terzo mistificazione



--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to