4 Replies Latest reply on Sep 24, 2007 4:17 PM by Waseem Quraishi

    How to getapplicationContext scoped variable in JSF?

    Waseem Quraishi Newbie

      Hello all,

      I have an application scoped variable which I would like to use in my JSF code. It contains a server specific value indicating the base URL for the apache server serving the static content (images). The variable gets set in a filter and I want to add it as part of the URL for an h:graphicImage something like:

      <h:graphicImage url="#{APACHE_BASE_URL}/#{blogPhoto.photoUrl}" rendered="#{blogPhoto.photoUrl ne null}" styleClass="boxed"/>

      Apache Base URL is correctly populated in the filter. But I can't seem to get anything out in the XHTML page.

      Thanks for your help.