No. You should not inject render time variables into your backing beans.
Just do
#{my:compare(var1, var2)} - this is all in the facelets documentation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098216#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...