[jboss-user] [JBoss Seam] - Re: ouject a non seam bean
mousstik
do-not-reply at jboss.com
Thu Apr 19 04:26:08 EDT 2007
ok
| @Name("seam1")
| @Scope(ScopeType.CONVERSATION)
| public class Seam1Action {
|
| private Model model;
| ....
| private String updateModel{ // method called on an actionCommand in JSF
| // ....
| setModel(model);
| }
| }
|
@Name("seam2")
| @Scope(ScopeType.CONVERSATION)
| public class Seam2Action {
| @In
| private Seam1Action seam1;
|
| public Seam2Action() {
| sysout(seam1.getModel().toString());
| }
|
| ...
| }
|
This code returns a null pointerException.
When I comment the sysout and put
<h:outputText value="#{seam2.seam1.model.attribute}" />
|
it works ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038768#4038768
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038768
More information about the jboss-user
mailing list