[jboss-user] [JBoss Seam] - SeamSelectItems - 1.1.1beta4
petemuir
do-not-reply at jboss.com
Fri Dec 15 07:27:34 EST 2006
http://wiki.jboss.org/wiki/attach?page=SeamSelectItemsNewDesign%2Fselectitems-1.1.1beta4.zip
I've updated this package, for now marked as a draft release (there are quite a few changes to the core code and I would like to get feedback).
To upgrade
As long as you are using a SMPC called entityManager (i.e. you do @In(create=true) EntityManager entityManager; normally), you can just update the jars and delete
<component class="org.jboss.seam.selectitems.SelectItemsConfig">
| <property name="persistenceUnitJndiName">...</property>
| </component>
from components.xml.
If you use a different SMPC (e.g. called em - @In(create=true) EntityManager em;) then you'll need to let SeamSelectItems know about it:
<component name="org.jboss.seam.selectitems.selectItemsConfig">
| <property name="entityManager">#{em}</property>
| </component>
(n.b. the change from component class= to component name=)
Post any problems here.
The docs have also been updated http://www.jboss.com/wiki/Edit.jsp?page=SeamSelectItemsNewDesign
Changes
* BUG Remove need for id equality
* BUG Remove need to configure persistenceUnitJndiName
- The EntityConverter now uses the same SMPC as is used in the rest of the applicaiton.
- If the SMPC is called entityManager (as generated by seam-gen) no configuration is needed, otherwise it must be configured in components.xml
- Can no longer set persistenceUnitJndiName on si:convertEntity
* Remove @SelectItems annotation
* FEATURE Can now outject an array or DataModel (using @DataModel) as the list of selectitems
* BUG Automatically instatiate SelectItemsConfig
* BUG Don't error if @Entity is missing, on entity class, but, if cannot find @Id notify the user that @Entity is missing (due to Seam proxying)
* BUG Fix ResourceNotFoundException thrown if an error is to be displayed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994204#3994204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994204
More information about the jboss-user
mailing list