Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Its cool how the EL automatically searches different scopes to find my domain objects. Can it look in other places besides PageContext, request, session, and application?

0
Posted

Its cool how the EL automatically searches different scopes to find my domain objects. Can it look in other places besides PageContext, request, session, and application?

0

Yes. In fact, that is a big part of the secret sauce in JBoss Seam. You can extend the EL to resolve names in any context you can think of (JMX, LDAP, EJB3, etc.). You extend the EL by implementing an ELResolver. See the JSP 2.1 JavaDoc for details on the ELResolver interface. The ELResolver is typically installed in a ServletContextListener. If using JSF 1.2, it can be installed using the tag in faces-config.xml.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.