Skip to main content

Odd Message: INFO: WARNING: FacesMessage(s) have been enqueued, but may not

6 replies [Last post]
softwaresimian
Offline
Joined: 2010-03-20
Points: 0

I keep getting the following message, despite my application displaying the associated error message in a field correctly. Any thoughts on how to get rid of this ?

INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed

Thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joel Weight

In my experience, if you have other messages that are not associated with a
component, or for a component that doesn't have an h:message tag, AND you
_don't_ have an h:messageS tag on the page, you will see that message.

Joel

On Wed, Sep 1, 2010 at 4:40 PM, wrote:

> I keep getting the following message, despite my application displaying the
> associated error message in a field correctly. Any
> thoughts on how to get rid of this ?
>
> INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been
> displayed
>
> Thanks in advance
> [Message sent by forum member 'softwaresimian']
>
> http://forums.java.net/jive/thread.jspa?messageID=481628
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>
[att1.html]

softwaresimian
Offline
Joined: 2010-03-20
Points: 0

I have a number of components with messages on the page which are validated so case (1) is satisfied. I have tried using h:messages to see what happens and the warning message goes away.

Did you find any way to stop the warnings appearing ?

Joel Weight

When I say "other messages that are not associated with a component" I mean
other javax.faces.application.FacesMessage instances created at some point
in the jsf lifecycle that have null as the component id. So, there must be
some message in the context that faces isn't able to display. Once you put
in the h:messages tag you should see what the message is and be able to
address the problem (hopefully!)

Joel

On Wed, Sep 1, 2010 at 4:55 PM, wrote:

> I have a number of components with messages on the page which are validated
> so case (1) is satisfied. I have tried using h:messages to see what
> happens and the warning message goes away.
>
> Did you find any way to stop the warnings appearing ?
> [Message sent by forum member 'softwaresimian']
>
> http://forums.java.net/jive/thread.jspa?messageID=481630
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>
[att1.html]

softwaresimian
Offline
Joined: 2010-03-20
Points: 0

Ah!, I see what you mean now, and unfortunately this is not the case. When I have used h:messages, the only messages shown are those already displayed. [...and shown in my h:message components] There are no extra / undisplayed messages.

Sheetal Vartak

Are you in development mode by any chance? i.e. have you set the following context param in web.xml :

javax.faces.PROJECT_STAGE Development

I vaguely remember seeing what you are seeing when I had not set the above param, but there were some messages that got added to FacesContext which could be displayed only in dev mode.
hth,
Sheetal
On Sep 1, 2010, at 4:27 PM, webtier@javadesktop.org wrote:

> Ah!, I see what you mean now, and unfortunately this is not the case. When I have used h:messages, the only messages shown are those already displayed. [...and shown in my h:message components] There are no extra / undisplayed messages.
> [Message sent by forum member 'softwaresimian']
>
> http://forums.java.net/jive/thread.jspa?messageID=481633
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

softwaresimian
Offline
Joined: 2010-03-20
Points: 0

Its a good idea but I;ve already been there as this is what started my problem. I was running in Development mode and JSF was adding a component when I didn't expect one.

Any other suggestions welcome as I'm a bit stuck on this. It's not impacting the application, but it is annoying to have errant log messages lying around.