On Thu, 2009-02-19 at 11:16 +0530, Madhav Bhargava wrote:
> On Mon, Feb 16, 2009 at 2:48 PM, Simon Kitching
> wrote:
>
> Madhav Bhargava schrieb:
>
> > Hi All,
> >
> >
> >
> > I have a requirement wherein I have to disable UI components based
> on
> > whether there are any error messages in the
On Mon, Feb 16, 2009 at 2:48 PM, Simon Kitching
mailto:skitch...@apache.org>> wrote:
Madhav Bhargava schrieb:
> Hi All,
>
>
>
> I have a requirement wherein I have to disable UI components based on
> whether there are any error messages in the Message Queue (t:messages).
>
> facesContext is an imp
On Mon, Feb 16, 2009 at 2:48 PM, Simon Kitching wrote:
> Madhav Bhargava schrieb:
> > Hi All,
> >
> >
> >
> > I have a requirement wherein I have to disable UI components based on
> > whether there are any error messages in the Message Queue (t:messages).
> >
> > facesContext is an implicit object
You will not be able to use faceContext.messages because messages is not a
property in FacesContextImpl class. I am using Sun JSF RI and i cannot find
any property named messages/message and therefore when you invoke
facesContext.messages then it will throw a PropertyNotFoundException.
THanks,
Mad
FYI
http://blogs.sun.com/kchung/entry/jsr_245_mr_part_i
On Mon, Feb 16, 2009 at 9:47 AM, Madhav Bhargava
wrote:
> Hi All,
>
>
>
> I have a requirement wherein I have to disable UI components based on
> whether there are any error messages in the Message Queue (t:messages).
>
> facesContext is an
It looks to me you can use "#{not empty facesContext.messages}" in this
case.
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
On Mon, Feb 16, 2009 at 6:18 AM, Simon Kitching wrote:
> Madhav Bhargava schrieb:
> > Hi All,
> >
> >
> >
> > I have a requirement
Madhav Bhargava schrieb:
> Hi All,
>
>
>
> I have a requirement wherein I have to disable UI components based on
> whether there are any error messages in the Message Queue (t:messages).
>
> facesContext is an implicit object so I thought of using it like -
> #{facesContext.getMessages.hasNext
7 matches
Mail list logo