RE: JSF EL does not allow method calls

2009-02-18 Thread Simon Kitching
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

RE: JSF EL does not allow method calls

2009-02-18 Thread Madhav Bhargava
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

Re: JSF EL does not allow method calls

2009-02-16 Thread Madhav Bhargava
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

Re: JSF EL does not allow method calls

2009-02-16 Thread Madhav Bhargava
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

Re: JSF EL does not allow method calls

2009-02-16 Thread Matthias Wessendorf
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

Re: JSF EL does not allow method calls

2009-02-16 Thread Walter Mourão
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

Re: JSF EL does not allow method calls

2009-02-16 Thread Simon Kitching
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