[jboss-user] [JBoss Seam] - How to getapplicationContext scoped variable in JSF?

wquraishi do-not-reply at jboss.com
Mon Sep 24 15:39:15 EDT 2007

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088143#4088143

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088143

More information about the jboss-user mailing list