Because s is private..

Mvgr,
Martin

Marco Nady wrote:
I have two classes A,B
public class A
{
    private B b = new B() ;
public B getB() { return b; }
    public void setB(B b) { this.b = b ; }
}
public class B
{
   public static final String STR = "My String" ;
   private String s = new String() ;
public String getS() { return s; } ;
   public void setS(String s) { this.s = s ; } ;
}
i registered A as a managed bean in faces-config
 <managed-bean>
  <managed-bean-name>a</managed-bean-name>
  <managed-bean-class>mypackage.A</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
why <h:outputText value="#{a.b.STR }" /> is working correctly ,
and <h:inputText value="#{a.b.s}" /> is not working?


Marco

------------------------------------------------------------------------
Yahoo! FareChase - Search multiple travel sites in one click. <http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/>

Reply via email to