[jboss-user] [JBoss Seam] - Re: Component access another component
dhinojosa
do-not-reply at jboss.com
Sun Jan 27 21:48:07 EST 2008
| @Name("componentA")
| public class ComponentA{
|
| private String fieldX;
|
| public void setFieldX(String x) {
| this.fieldX = x;
| }
| }
|
| @Name("ComponentB")
| public class ComponentB{
|
| private ComponentA a;
|
| @In
| public void setComponentA(ComponentA a) {
| this.a = a;
| }
|
| public void method(){
| a.setFieldX(12);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123912#4123912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123912
More information about the jboss-user
mailing list