[jboss-user] [JBoss Seam] - Re: Seam components in different jars
Ci
do-not-reply at jboss.com
Tue Nov 14 11:21:36 EST 2006
I have a similar problem, a component is in the second jar.
Seam from cvs, JBoss 4.0.5.GA.
Component at Scope(ScopeType.STATELESS)
| @Name("localeStuff")
| @Intercept(InterceptionType.NEVER)
| public class LocaleStuff {
| public void select(ValueChangeEvent event) {...}
| }
lives in add.jar. It is set up similar to jboss-seam.jar in application.xml:
...
| <module>
| <java>jboss-seam.jar</java>
| </module>
|
| <module>
| <java>add.jar</java>
| </module>
| ...
The add.jar is put into ear file as jboss-seam.jar is.
The component is used in xhtml file:
...
| <h:selectOneMenu valueChangeListener="#{localeStuff.select}"
| onchange="submit();" styleClass="smallselect">
| <f:selectItems value="#{localeSelector.supportedLocales}"/>
| </h:selectOneMenu>
| ...
But when I access a page, I had:
/abc.xhtml @40,72 valueChangeListener="#{localeStuff.select}": Target Unreachable, identifier 'localeStuff' resolved to null
Can components be put into different jars and how to do it correctly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985832#3985832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985832
More information about the jboss-user
mailing list