The short answer is to move that to a managed bean. The longer, more helpful answer depends on what you're trying to do. In a nutshell, though, you would probably create a method, getBar(), on your bean, Foo, which you would then reference in your page via #{foo.bar}. Does that help? :)
[Message sent by forum member 'jdlee' (jasondlee_at_sun.com)]
http://forums.java.net/jive/thread.jspa?messageID=382031