[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-707) Filters for managed PCs don't work

Gavin King (JIRA) jira-events at jboss.com
Sun Jan 28 13:19:57 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-707?page=comments#action_12351791 ] 
            
Gavin King commented on JBSEAM-707:
-----------------------------------

Ouch! We don't currently support EL inside <value>, and it will take quite a bit of thinking to figure out how to make that work. But we need to make it work for 1.1.5.

> Filters for managed PCs don't work
> ----------------------------------
>
>                 Key: JBSEAM-707
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-707
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Christian Bauer
>         Assigned To: Gavin King
>            Priority: Blocker
>             Fix For: 1.1.5.GA
>
>
>     <core:filter name="onlyMenuItemsFilter">
>         <core:name>Node.onlyMenuItems</core:name>
>     </core:filter>
>     <core:managed-persistence-context name="entityManager"
>                                       persistence-unit-jndi-name="java:/wikiEntityManagerFactory"/>
>     <core:managed-persistence-context name="filteringMenuItemsEntityManager"
>                                       persistence-unit-jndi-name="java:/wikiEntityManagerFactory">
>         <core:filters><value>#{onlyMenuItemsFilter}</value></core:filters>
>     </core:managed-persistence-context>
> Startup:
> java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.core.ManagedPersistenceContext.filters
>         at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:179)
>         at org.jboss.seam.Component.initInitializers(Component.java:373)
>         at org.jboss.seam.Component.<init>(Component.java:264)
>         at org.jboss.seam.Component.<init>(Component.java:205)
>         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:760)
>         at org.jboss.seam.init.Initialization.addComponents(Initialization.java:677)
>         at org.jboss.seam.init.Initialization.init(Initialization.java:425)
>         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
> After making the setter and getter public (why would they be protected?):
> java.lang.NullPointerException
>         at org.jboss.seam.util.Conversions$ListConverter.toObject(Conversions.java:188)
>         at org.jboss.seam.util.Conversions$ListConverter.toObject(Conversions.java:178)
>         at org.jboss.seam.Component$ConstantInitialValue.<init>(Component.java:1977)
>         at org.jboss.seam.Component.getInitialValue(Component.java:401)
>         at org.jboss.seam.Component.initInitializers(Component.java:379)
>         at org.jboss.seam.Component.<init>(Component.java:264)
>         at org.jboss.seam.Component.<init>(Component.java:205)
>         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:760)
>         at org.jboss.seam.init.Initialization.addComponents(Initialization.java:677)
>         at org.jboss.seam.init.Initialization.init(Initialization.java:425)
>         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list