java - How to properly declare in a JSF page that an object is present in the sesion object with a given type? -


I have a legacy JSF 1.0 application (do not use JSP, not turning) which I have to write from the mileage to Eclipse 3.5 EE, and I get many errors from code like the following:

  & lt; F: visual locale = "# {foo.connection.langLocale}" & gt;  

The problem is that "foo" is explicitly inserted from the Java code into the session object, and is not injected with JSF or similar, the Eclipse JavaEE believes Is that "foo" is undefined and its mark is an appropriate way of telling EEPLIPS JAV EE as an error that "FU" is perfectly fine, is placed in session object, and how Fu?

either declare it in faces-config.xml , or display Disable JSP / JSF Verification in this one . You can do this through window > preferences > the web > JavaServerFaces tool > validation And JSP files > validation simply uncheck those checkmarks at the top if necessary, you can configure them less strictly.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -