Some suggestions:
1) Association fetching in Hibernate is lazy by default AFAIK
2) How are you getting the EntityManager in your converter? I had problems with getting a reference to the EntityManager from JNDI and found that getting an EntityManagerFactory from JNDI worked better (otherwise the entity became detached)
3) '"xxx": Value is not a valid option' validation error occurs because the newly submitted converted selection is not a member of the original list. Have you overridden equals() on the OrgUnit so that it uses Id equality rather than object equality (you create a new OrgUnit from the database when you em.find()).
4) You could try the EntityConverter as it does this all for you for any EJB3 entity.
HTH
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983254#3983254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983254
jscookmenu control is simply broken in 1.1.3 (they just commented out some code related to "dummy form" workaround, removed in that release). You can try last snapshot of tomahawk 1.1.5, looks like they fixed this issue (i didn't test). Or if you are using facelets then you can simply add required form field:
| <h:form>
| <input type="hidden" name="jscook_action" />
| <t:jscookMenu layout="hbr" theme="ThemeIE">
| <t:navigationMenuItems value="#{menu.mainMenu}" />
| </t:jscookMenu>
| </h:form>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983248#3983248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983248
I just saw this...
System.out.println("Artikelnummer:" + getSelectedSearchArticle().getArtName());
Why are you using getSelectedSearchArticle()... where are you defining this? - I don't see it in your class (I'm wondering why it would even compile, unless you deliberately left this out in this post)... Nevertheless, why can't you just use:
System.out.println("Artikelnummer:" + selectedSearchArticle.getArtName());
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983246#3983246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983246