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 skitch...@apache.orgmailto: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).

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

JSF EL does not allow method calls

2009-02-16 Thread Madhav Bhargava
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} However when it was not working because

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}

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 skitch...@apache.orgwrote: Madhav Bhargava schrieb: Hi All, I have a

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 madhav_bharg...@infosys.com 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).

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,

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 skitch...@apache.orgwrote: 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