[jboss-user] [JBoss Seam] - EntityConverter documentation flaw

tjakopec do-not-reply at jboss.com
Wed Aug 22 03:51:19 EDT 2007


After 2 hours of wondering what I did wrong, error was in documentation.
I was trying to use <s:convertEntity /> and get null pointer exception all the time.

Bottom of line is

in seam documentation 
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html_single/
in section <s:convertEntity />
says

 If your Managed Persistence Context isn't called entityManager, then you need to set it in components.xml: (my case)

  | <component name="org.jboss.seam.ui.entityConverter">
  |   <property name="entityManager">#{em}</property>
  | </component>
  | 
Problem was solved when I put (big E instead of small e)

  | <component name="org.jboss.seam.ui.EntityConverter">
  |   <property name="entityManager">#{em}</property>
  | </component>
  | 
Should documentation change or should code change?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076641#4076641

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076641



More information about the jboss-user mailing list