Hi All, I am facing some problem while implementing filters. My code:-
| <core:filter name="companyFilter"> | <core:name>companyFilter</core:name> | <core:parameters> | <key>currentCompanyId</key> | <value>#{currentCompanyId}</value> | </core:parameters> | </core:filter> | | <core:managed-persistence-context | name="filteredEntityManager" | persistence-unit-jndi-name="java:/pEntityManagerFactory"> | <core:filters> | <value>#{companyFilter}</value> | </core:filters> | </core:managed-persistence-context> | Exception:- | Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value: userManage.filteredEntityManager Session bean:- | @In | protected EntityManager filteredEntityManager; Entity bean:- | @FilterDef(name = "companyFilter", parameters = [EMAIL PROTECTED](name = "currentCompanyId", type = "integer")}) | @Filter(name = "companyFilter", condition = "icompanyId <= :currentCompanyId") | When I change componets.xml(filter removed) to this | <core:managed-persistence-context | name="filteredEntityManager" | persistence-unit-jndi-name="java:/pEntityManagerFactory"> | </core:managed-persistence-context> it works fine without filters(I know there is no filter). And I also see an error in eclipse saying cvc-complex-type.2.4.c:The matching wild card is strict, but no declaration can be found for element 'code:filter' cvc-complex-type.2.4.c:The matching wild card is strict, but no declaration can be found for element 'core:managed-persistence-context' Can anyone tell me whats going wrong? Thanks in advance. -Vivek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126719#4126719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126719 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user