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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to