Easiest way is to use a Seam component
| @Name("myConverter") @BypassInterceptors @Converter
| public class MyConverter implements Converter{
|
| @In EntityManager entityManager;
|
| @Transactional
| public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
| entityManager.joinTransaction();
| ...
| }
| }
<h:selectOneMenu ... converter="myConverter">
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058647#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...