myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Bohmann <bernd.bohm...@atanion.com>
Subject Re: [Tobago] Use static Variables in Tobago Pages
Date Mon, 04 Jun 2007 06:59:10 GMT
Hello Madan,

you can use a ManagedBean with application scope.

Regards

Bernd

Madan Narra wrote:
> Hi All,
> 
> I have a class which has some static variables .
> 
> I tried to use these variables in Tobago pages for some validation.
> 
> This is the class i used to hold the static varibales --> 
> ErrorMessages.java
> 
> Static variable is defined as follows --> *public* *static* String 
> *required
> * = "0002";
> 
> <tc:out rendered="#{login.errorValidatingLogin == errorMessages.required}"
> value="#{bundle.requiredFieldsErrorMessage}" />
> 
> But was getting this error as follows:
> Caused by: javax.servlet.jsp.el.ELException: Unable to find a value for
> "loginError" in object of class 'com.mycompany.ErrorMessages" using 
> operator
> "."
> 
> Is there any possibility of using Static Variables in JSF/JSP using EL ?
> 

Mime
View raw message