[jboss-user] [JBoss Seam] - Component access another component

gersonk do-not-reply at jboss.com
Thu Jan 24 21:19:01 EST 2008


Is there a way to access a variable context defined in a component A's fields/methods from the component B's method?

It might look like this:


  | @Name("componentA")
  | public class ComponentA{
  |    
  |    @Out
  |    private String fieldX;
  | 
  | }
  | 
  | @Name("ComponentB")
  | public class ComponentB{
  | 
  |    public void method(){
  | 
  |       // set a new value to #{componentA.fieldX}
  | 
  |    }
  | }
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123298#4123298

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123298



More information about the jboss-user mailing list