it works in this wa<: public String sel(Object sel){ Long value = (Long) sel; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033830#4033830 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033830