1 2 Previous Next 23 Replies Latest reply on Nov 22, 2006 7:13 AM by pmuir

    UPDATED: SelectItems (the one with the EntityConverter)

    pmuir

      I've updated the SelectItems for Seam selectitems component. Major changes are: Support for a 'Please Select...' label at the top, EnumConverter.

      http://www.jboss.com/wiki/Edit.jsp?page=SeamSelectItems

      I find that the EntityConverter and EnumConverter cover all my selectitem needs :) Thanks to everyone who has helped test this and Mikko Koponen for supplying the 'Please Select...' label support.


      • FEATURE: Patch from Mikko Koponen to support 'noSelectionLabel'. This places a SelectItem at the top of the list which has a value null. Combined with the use of required="true" this allows the UI to force the user to select a value from the list.
      • BUG FIX: Patch from Mikko Koponen to correct error in jsfValue (Thanks to others for spotting this)
      • BUG FIX: Patch from Mikko Koponen to search superclasses for @Id (Thanks also to Jarkko for finding the bug)
      • FEATURE: Use of Seam Messages resource bundle. By default any label is interpreted as a key for the Seam message bundle. As usual with the Seam message bundle if the key/value pair isn't defined the key is used.
      • FEATURE: An EnumConverter to complement the EntityConverter
      • BUG FIX: Example upgraded to show new features
      • BUG FIX: Upgrade Ant Build to support build numbers
      • FEATURE: Move homepage of project to Seam Wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamSelectItems


        • 1. Re: UPDATED: SelectItems (the one with the EntityConverter)
          pmuir

          I've put up a version that works with 1.1BETA1

          • 2. Re: UPDATED: SelectItems (the one with the EntityConverter)
            pmuir

            I've put up a version http://wiki.jboss.org/wiki/attach?page=SeamSelectItems%2Fselectitems-1.1.0rc2.zip that allows you to cache the outjected selectitems. It uses pojocache, and requires you to use a

            <si:selectItems cacheKey="..." />


            rather than f:selectItems.

            N.B. The config class name has changed to org.jboss.seam.selectitems.SelectItemsConfig

            • 3. Re: UPDATED: SelectItems (the one with the EntityConverter)
              forumer

              I have posted this in more details at jroller.com as well.

              selectItems 1.0rc4 built with JBoss-Seam-1.0.1.GA and deployed on JBoss-4.0.4.CR2 is not working! I am getting the following error - a strange Statful bean name!

              I'd appreciate any help in getting this working.

              Thanks

              javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4oa3-xkn3ck-eu9347cz-1-eu958wrp-9
              


              Bean is showing up in JMX console as:

               +- jboss-seam-selectitems (class: org.jnp.interfaces.NamingContext)
               | +- ClientActionBean (class: org.jnp.interfaces.NamingContext)
               | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
               | | +- local (class: java.lang.Object)
              


              • 4. Re: UPDATED: SelectItems (the one with the EntityConverter)
                forumer

                After I annotated ClientActionBean with:

                @Local ({ClientAction.class})
                @LocalBinding (jndiBinding="ClientActionBean/local")
                


                I am now getting a less "bizarre" error. Hopefully, this gives you more clue.

                
                20:47:06,837 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
                20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
                20:47:06,837 DEBUG [Contexts] found in conversation context: client
                20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
                20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
                20:47:06,837 DEBUG [Contexts] found in conversation context: client
                20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
                20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
                20:47:06,837 DEBUG [Contexts] found in conversation context: client
                20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
                20:47:06,847 DEBUG [SeamVariableResolver] resolving name: clientTypes
                20:47:06,847 DEBUG [Component] instantiating Seam component: clientAction
                20:47:06,847 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.j
                np.interfaces}
                20:47:06,857 ERROR [STDERR] Nov 7, 2006 8:47:06 PM com.sun.facelets.FaceletViewHandler handleRenderException
                SEVERE: Error Rendering View[/selectitems.xhtml]
                org.jboss.seam.InstantiationException: Could not instantiate Seam component: clientAction
                 at org.jboss.seam.Component.newInstance(Component.java:735)
                 at org.jboss.seam.Component.newInstance(Component.java:1308)
                 at org.jboss.seam.Component.getInstance(Component.java:1263)
                 at org.jboss.seam.Component.getInstance(Component.java:1246)
                 at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1292)
                 at org.jboss.seam.Component.getInstance(Component.java:1260)
                 at org.jboss.seam.Component.getInstance(Component.java:1246)
                 at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
                 at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                 at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
                 at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                 at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
                 at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
                 at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:103)
                 at org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:485)
                 at org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:461)
                 at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:272)
                 at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderListbox(HtmlRendererUtils.java:235)
                 at org.apache.myfaces.renderkit.html.HtmlListboxRendererBase.encodeEnd(HtmlListboxRendererBase.java:73)
                 at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
                


                • 5. Re: UPDATED: SelectItems (the one with the EntityConverter)
                  pmuir

                  As suggested elsewhere, I suggest you use a supported JBossAS/Seam config as recommended by the getting started guide.

                  • 6. Re: UPDATED: SelectItems (the one with the EntityConverter)
                    forumer

                    Hi Peter,

                    Thanks for your reply. I am having a little better luck with 1.1.0rc2. But looks like "em" is coming up NULL. Must be something I am not configuring right. I looked at components.xml but can't figure out what to modify, if anything. FYI, I use "em" annotated with @PersistenceContext in my other applications and it works. You must have some other way of achieving the same result.

                    BTW, JBoss-4.0.4.CR2 is installed with JEMS installer and ejb3 option.

                    Here is debug-level stack-trace. I am looking forward to your reply... Thanks

                    ce'
                    04:17:39,889 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.4.CR2/server/all/deploy/jboss-seam-selectitems.ear
                    04:17:42,783 INFO [Ejb3Deployment] EJB3 deployment time took: 40
                    04:17:42,783 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=jboss-seam-selectitems.ear,jar=jboss-seam-selectitems.jar,unitName=selectItemsDatabase with depend
                    encies:
                    04:17:42,783 INFO [JmxKernelAbstraction] jboss.jca:name=selectItemsDatasource,service=ManagedConnectionFactory
                    04:17:42,793 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
                     name: selectItemsDatabase
                     ...]
                    04:17:42,793 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.selectitems.Branch
                    04:17:42,803 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.selectitems.Client
                    04:17:42,803 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.selectitems.ClientCategory
                    04:17:42,803 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.selectitems.ClientType
                    04:17:42,803 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.selectitems.Branch
                    04:17:42,803 INFO [EntityBinder] Bind entity org.jboss.seam.example.selectitems.Branch on table Branch
                    04:17:42,803 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.selectitems.Client
                    04:17:42,813 INFO [EntityBinder] Bind entity org.jboss.seam.example.selectitems.Client on table Client
                    04:17:42,823 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.selectitems.ClientCategory
                    04:17:42,823 INFO [EntityBinder] Bind entity org.jboss.seam.example.selectitems.ClientCategory on table ClientCategory
                    04:17:42,823 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.selectitems.ClientType
                    04:17:42,823 INFO [EntityBinder] Bind entity org.jboss.seam.example.selectitems.ClientType on table ClientType
                    04:17:42,843 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
                    04:17:42,843 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
                    04:17:42,854 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
                    04:17:42,854 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
                    04:17:42,854 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
                    04:17:42,854 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
                    04:17:42,854 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
                    04:17:42,854 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
                    04:17:42,854 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
                    04:17:42,854 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
                    04:17:42,854 INFO [SettingsFactory] JDBC batch size: 15
                    04:17:42,854 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
                    04:17:42,854 INFO [SettingsFactory] Scrollable result sets: enabled
                    04:17:42,854 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
                    04:17:42,854 INFO [SettingsFactory] Connection release mode: auto
                    04:17:42,854 INFO [SettingsFactory] Default batch fetch size: 1
                    04:17:42,854 INFO [SettingsFactory] Generate SQL with comments: disabled
                    04:17:42,854 INFO [SettingsFactory] Order SQL updates by primary key: disabled
                    04:17:42,854 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                    04:17:42,854 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
                    04:17:42,854 INFO [SettingsFactory] Query language substitutions: {}
                    04:17:42,854 INFO [SettingsFactory] Second-level cache: enabled
                    04:17:42,864 INFO [SettingsFactory] Query cache: disabled
                    04:17:42,864 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
                    04:17:42,864 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
                    04:17:42,864 INFO [SettingsFactory] Structured second-level cache entries: disabled
                    04:17:42,864 INFO [SettingsFactory] Echoing all SQL to stdout
                    04:17:42,864 INFO [SettingsFactory] Statistics: disabled
                    04:17:42,864 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
                    04:17:42,864 INFO [SettingsFactory] Default entity-mode: pojo
                    04:17:42,864 INFO [SessionFactoryImpl] building session factory
                    04:17:42,884 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
                    04:17:42,884 INFO [SchemaExport] Running hbm2ddl schema export
                    04:17:42,884 INFO [SchemaExport] exporting generated schema to database
                    04:17:42,884 INFO [SchemaExport] Executing import script: /import.sql
                    04:17:42,894 INFO [SchemaExport] schema export complete
                    04:17:42,894 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming
                    :org.jnp.interfaces}
                    04:17:42,934 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=jboss-seam-selectitems.ear,jar=jboss-seam-selectitems.jar,name=ClientActionBean,service=EJB3 with depende
                    ncies:
                    04:17:43,284 INFO [EJBContainer] STARTED EJB: org.jboss.seam.example.selectitems.ClientActionBean ejbName: ClientActionBean
                    04:17:43,414 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jboss-seam-selectitems.jar
                    04:17:43,414 INFO [TomcatDeployer] deploy, ctxPath=/seam-selectitems, warUrl=.../tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jboss-seam-selectitems-exp.war/
                    04:17:43,504 INFO [ServletContextListener] Welcome to Seam 1.0.1.GA
                    04:17:43,524 INFO [Initialization] reading components.xml
                    04:17:43,534 INFO [Initialization] reading properties from: /seam.properties
                    04:17:43,534 INFO [Initialization] reading properties from: /jndi.properties
                    04:17:43,534 DEBUG [Initialization] not found: /seam-jndi.properties
                    04:17:43,534 INFO [Initialization] initializing Seam
                    04:17:43,565 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
                    04:17:43,565 DEBUG [Component] org.jboss.seam.core.init.myFacesLifecycleBug=false
                    04:17:43,565 DEBUG [Component] org.jboss.seam.core.init.debug=true
                    04:17:43,575 DEBUG [Component] org.jboss.seam.core.init.jndiPattern=jboss-seam-selectitems/#{ejbName}/local
                    04:17:43,575 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.init
                    04:17:43,585 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
                    04:17:43,595 INFO [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
                    04:17:43,595 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
                    04:17:43,605 DEBUG [Component] org.jboss.seam.core.manager.conversationTimeout=120000
                    04:17:43,615 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
                    04:17:43,615 INFO [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
                    04:17:43,625 INFO [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
                    04:17:43,625 INFO [Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
                    04:17:43,635 INFO [Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
                    04:17:43,635 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
                    04:17:43,645 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
                    04:17:43,655 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
                    04:17:43,655 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
                    04:17:43,655 INFO [Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
                    04:17:43,665 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
                    04:17:43,665 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
                    04:17:43,665 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
                    04:17:43,675 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
                    04:17:43,685 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
                    04:17:43,685 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
                    04:17:43,685 INFO [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
                    04:17:43,695 INFO [Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
                    04:17:43,695 INFO [Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
                    04:17:43,695 INFO [Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
                    04:17:43,705 INFO [Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
                    04:17:43,705 DEBUG [Component] resourceBundle.bundleName=messages
                    04:17:43,715 INFO [Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
                    04:17:43,725 INFO [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
                    04:17:43,725 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.Subs
                    criptionRegistry
                    04:17:43,725 INFO [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
                    04:17:43,755 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
                    04:17:43,765 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
                    04:17:43,775 INFO [Component] Component: org.jboss.seam.selectitems.selectItemsConfig, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.selectitems.SelectItemsConfig
                    04:17:43,775 DEBUG [Component] org.jboss.seam.selectitems.selectItemsConfig.persistenceUnitJndiName=java:/selectItemsEntityManagerFactory
                    04:17:43,785 INFO [Component] Component: em, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
                    04:17:43,785 DEBUG [Component] em.persistenceUnitJndiName=java:/selectItemsEntityManagerFactory
                    04:17:43,785 INFO [Scanner] scanning: /C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jboss-seam-selectitems.jar
                    04:17:43,795 DEBUG [Scanner] archive: C:\jboss-4.0.4.CR2\server\all\tmp\deploy\tmp64621jboss-seam-selectitems.ear-contents\jboss-seam-selectitems.jar
                    04:17:43,795 DEBUG [Scanner] found: META-INF/
                    04:17:43,795 DEBUG [Scanner] found: META-INF/MANIFEST.MF
                    04:17:43,795 DEBUG [Scanner] found: org/
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/Branch.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/Client$Discount.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/Client.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/ClientAction.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/ClientActionBean.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/ClientCategory.class
                    04:17:43,795 DEBUG [Scanner] found: org/jboss/seam/example/selectitems/ClientType.class
                    04:17:43,795 DEBUG [Scanner] found: META-INF/persistence.xml
                    04:17:43,795 DEBUG [Scanner] found: import.sql
                    04:17:43,795 DEBUG [Scanner] found: messages.properties
                    04:17:43,795 DEBUG [Scanner] found: seam.properties
                    04:17:43,795 INFO [Component] Component: branch, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.Branch
                    04:17:43,795 INFO [Component] Component: clientType, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.ClientType
                    04:17:43,795 INFO [Component] Component: client, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.selectitems.Client
                    04:17:43,805 INFO [Component] Component: clientAction, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.selectitems.ClientActionBean, JNDI: jboss-se
                    am-selectitems/ClientActionBean/local
                    04:17:43,805 DEBUG [Component] instantiating Seam component: applicationContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: isUserInRole
                    04:17:43,805 DEBUG [Component] instantiating Seam component: statelessContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: userPrincipal
                    04:17:43,805 DEBUG [Component] instantiating Seam component: sessionContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: facesContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: businessProcessContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: eventContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: pageContext
                    04:17:43,805 DEBUG [Component] instantiating Seam component: conversationContext
                    04:17:43,805 INFO [Initialization] done initializing Seam
                    04:17:43,815 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
                    04:17:43,855 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jboss-seam.jar!/META-INF/faces-
                    config.xml
                    04:17:43,865 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/face
                    s-config.xml
                    04:17:43,865 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/selectitems-1.1.0rc2.jar!/META-
                    INF/faces-config.xml
                    04:17:43,885 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
                    04:17:43,895 ERROR [LocaleUtils] Locale name null or empty, ignoring
                    04:17:43,975 INFO [StartupServletContextListener] ServletContext 'C:\jboss-4.0.4.CR2\server\all\.\tmp\deploy\tmp64621jboss-seam-selectitems.ear-contents\jboss-seam-selectitems-exp
                    .war\' initialized.
                    04:17:43,995 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.4.CR2/server/all/deploy/jboss-seam-selectitems.ear
                    04:18:01,781 DEBUG [Lifecycle] >>> Begin web request
                    04:18:02,211 DEBUG [Lifecycle] Session started
                    04:18:02,241 DEBUG [Component] instantiating Seam component: localeSelector
                    04:18:02,261 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.manager
                    04:18:02,261 DEBUG [Manager] No stored conversation
                    04:18:02,271 DEBUG [Contexts] found in application context: org.jboss.seam.core.init
                    04:18:02,271 DEBUG [AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(1)
                    04:18:02,271 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.pages
                    04:18:02,281 INFO [Pages] no pages.xml file found
                    04:18:02,281 DEBUG [Component] instantiating Seam component: facesMessages
                    04:18:07,679 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                    04:18:07,689 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/selectitems-1.1.0rc2.jar!/META-INF/selectitems.taglib.xml
                    04:18:07,699 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                    04:18:07,719 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                    04:18:07,719 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                    04:18:07,739 ERROR [STDERR] Nov 8, 2006 4:18:07 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                    INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/all/tmp/deploy/tmp64621jboss-seam-selectitems.ear-contents/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                    04:18:07,930 DEBUG [Component] instantiating Seam component: pojoCache
                    04:18:07,930 DEBUG [PojoCache] starting JBoss Cache
                    04:18:08,010 INFO [PropertyConfigurator] Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@9873b7
                    04:18:08,010 INFO [PropertyConfigurator] attribute size: 14
                    04:18:08,060 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=48866;mcast_recv_buf_size=80000;mc
                    ast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;
                    min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,
                    2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=fals
                    e):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=tr
                    ue;up_thread=true)
                    04:18:08,060 WARN [TreeCache] Using deprecated configuration element 'UseMarshalling'. See 'UseRegionBasedMarshalling' instead.
                    04:18:08,070 INFO [TreeCache] Not using an EvictionPolicy
                    04:18:08,120 INFO [InterceptorChainFactory] interceptor chain is:
                    class org.jboss.cache.interceptors.CallInterceptor
                    class org.jboss.cache.interceptors.PessimisticLockInterceptor
                    class org.jboss.cache.interceptors.UnlockInterceptor
                    class org.jboss.cache.interceptors.TxInterceptor
                    class org.jboss.cache.interceptors.CacheMgmtInterceptor
                    04:18:08,160 INFO [TreeCache] cache mode is local, will not create the channel
                    04:18:08,160 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
                    04:18:08,160 DEBUG [SeamVariableResolver] resolving name: clientTypes
                    04:18:08,160 DEBUG [Component] instantiating Seam component: clientAction
                    04:18:08,160 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.j
                    np.interfaces}
                    04:18:08,210 ERROR [STDERR] javax.ejb.EJBException: java.lang.NullPointerException
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                    04:18:08,210 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
                    04:18:08,210 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                    04:18:08,210 ERROR [STDERR] at $Proxy141.begin(Unknown Source)
                    04:18:08,210 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    04:18:08,210 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    04:18:08,210 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    04:18:08,210 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1312)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1263)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1246)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1292)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1260)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1246)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                    04:18:08,210 ERROR [STDERR] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
                    04:18:08,210 ERROR [STDERR] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
                    04:18:08,210 ERROR [STDERR] at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
                    04:18:08,210 ERROR [STDERR] at org.jboss.seam.selectitems.jsf.SelectItemsComponentHandler.setAttributes(SelectItemsComponentHandler.java:48)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
                    04:18:08,210 ERROR [STDERR] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    04:18:08,220 ERROR [STDERR] at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
                    04:18:08,220 ERROR [STDERR] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    04:18:08,220 ERROR [STDERR] at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
                    04:18:08,220 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:490)
                    04:18:08,220 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:533)
                    04:18:08,220 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
                    04:18:08,220 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    04:18:08,220 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    04:18:08,220 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                    04:18:08,220 ERROR [STDERR] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
                    04:18:08,220 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
                    04:18:08,220 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                    04:18:08,220 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                    04:18:08,220 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                    04:18:08,220 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                    04:18:08,220 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                    04:18:08,220 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                    04:18:08,220 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
                    04:18:08,220 ERROR [STDERR] Caused by: java.lang.NullPointerException
                    04:18:08,220 ERROR [STDERR] at org.jboss.seam.example.selectitems.ClientActionBean.begin(ClientActionBean.java:56)
                    04:18:08,220 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    04:18:08,220 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    04:18:08,220 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    04:18:08,220 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                    04:18:08,220 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
                    04:18:08,220 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
                    04:18:08,220 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,220 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                    04:18:08,220 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,220 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                    04:18:08,220 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                    04:18:08,220 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                    04:18:08,220 ERROR [STDERR] ... 78 more
                    04:18:08,220 ERROR [STDERR] Nov 8, 2006 4:18:08 AM com.sun.facelets.FaceletViewHandler handleRenderException
                    SEVERE: Error Rendering View[/selectitems.xhtml]
                    javax.ejb.EJBException: java.lang.NullPointerException
                     at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                     at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
                     at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                     at $Proxy141.begin(Unknown Source)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    


                    • 7. Re: UPDATED: SelectItems (the one with the EntityConverter)
                      pmuir

                      In the example the EntityManager is a Seam Managed Persistence Context so is injected using @In. If you look at the getting started guide, you'll see that it tells you to use JBoss 4.0.4.GA not 4.0.4.CR2. I'm not going to waste my time sorting out why the code doesn't work a unsupported platform.

                      • 8. Re: UPDATED: SelectItems (the one with the EntityConverter)
                        forumer

                        Hi Peter,

                        Now I understand a bit more about JBoss versions! I understand that you don't want to waste time supporting a non-GA version. Unfortunately, we are in production with CR2 and will certainly be moving to GA as soon as we can.

                        Your implementation is very crucial to my application. So in an attempt to make it work I have made a few adjustments to a point where I may have it almost working. I'd appreciate if you might have a quick insight into what may be wrong. Please feel free to ignore this if it will take more than a quick tip.

                        Even though the "factory" variables are being processed out of the database as evidenced by log statements as to the number of items for each of the three. But when it comes to resolving #{discounts}, #{branches}, and #{clientTypes} are coming out as NULL:

                        
                        7:44:44,769 INFO [STDOUT] Branch list has 3 entries
                        .
                        .
                        .
                        17:44:44,789 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                        java.lang.IllegalArgumentException: Value binding '#{clientTypes}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /selectite
                        ms.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id3][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: _id18]
                        [Class: javax.faces.component.html.HtmlSelectOneListbox,Id: client_clientType][Class: javax.faces.component.UISelectItems,Id: _id19]} does not reference an Object of type SelectIte
                        m, SelectItem[], Collection or Map but of type : null
                         at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:142)
                        


                        • 9. Re: UPDATED: SelectItems (the one with the EntityConverter)
                          pmuir

                          For some reason the oujection failed.

                          • 10. Re: UPDATED: SelectItems (the one with the EntityConverter)
                            pmuir

                            http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamSelectItemsNewDesign

                            I've redesigned SeamSelectItems such that rather than using the @SelectItems annotation you just outject. The magic now occurs completely in ui:selectItems (which only works with Facelets I'm afraid). @SelectItems is still there if you are tied to JSP.

                            e.g.

                            @Entity public class User {
                            
                             @Id Integer id;
                             String name;
                            
                             //getters and setters
                            }



                            public class ActionBean {
                            
                            ...
                            
                            @Factory("users")
                            public List<User> getUsers() {
                             List<User> users = em.createQuery("select u from User").getResultsList();
                             return users;
                            }


                            <h:selectOneMenu value="#{foo.user}">
                             <si:selectItems value="#{users}" var="user" label="#{user.name} (#{user.id})" />
                            </h:selectOneMenu>


                            I much prefer this design - it seems much simpler to use to me.

                            • 11. Re: UPDATED: SelectItems (the one with the EntityConverter)
                              cavani

                              on application.xml:

                              <module>
                              <java>selectitems-1.1.0rc3.jar</java>
                              </module>
                              


                              should be ... 1.1.1beta1

                              Thanks,

                              • 12. Re: UPDATED: SelectItems (the one with the EntityConverter)
                                pmuir

                                Thanks

                                I've fixed the example build file properly so I don't forget this in the future :)

                                I've also fixed another bug with the example which I missed first time around.

                                Still the same version no

                                • 13. Re: UPDATED: SelectItems (the one with the EntityConverter)
                                  sbublava

                                  One minor glitch: SelectItemsComponentHandler imports org.jboss.cache.CacheException, which causes a java.lang.NoClassDefFoundError exception when Facelets loads the tag library unless JBoss Cache is available.

                                  Maybe could change the catch clauses to Exception or at least mention this requirement in the documentation.

                                  Thanks,
                                  Stephan

                                  • 14. Re: UPDATED: SelectItems (the one with the EntityConverter)
                                    pmuir

                                    Thanks. I'm reworking the si:selectItems component so that it works with JSP as well as facelets. I'll make sure to remove that import in the next release.

                                    1 2 Previous Next