You need to be in a FacesRequest for this to work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117472#4117472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117472