for instance, when you modify an entry.
you can queue a FAcesMEssage already in the the ValueChangeListener.


On 6/27/07, ::SammyRulez:: <[EMAIL PROTECTED]> wrote:
I ca'nt figure out how to use a valueChangeListener to display messages.

shoud I change all the action in valueChanges?

I have to add messages AFTER Application logic is executed, most of the time.

2007/6/27, Matthias Wessendorf <[EMAIL PROTECTED]>:
> 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
>


--
::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