How to correctly declare on the JSF page that the object is present in the sesion object with the specified type?

I have an outdated JSF 1.0 application (using JSP, not facelets) that I have now migrated from MyEclipse to Eclipse 3.5 Java EE, and I get a lot of errors from code like the following:

<f:view locale="#{foo.connection.langLocale}">

where the problem is that "foo" is explicitly inserted into the session object from Java code and not injected by JSF or the like, therefore Eclipse Java EE considers that "foo" is undefined and marks this as an error. What is the correct way to tell Eclipse Java EE that "foo" is great, fits in a session object and of type Foo?

+3
source share
2

faces-config.xml, JSP/JSF Eclipse. epic . "" > "" > "" > " JavaServerFaces" > " JSP " > "". . , , .

+2

JSF EL .

, , beans, , faces-config.xml.

0

Source: https://habr.com/ru/post/1731013/


All Articles