myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Nady <marco_n...@yahoo.com>
Subject Question ?
Date Mon, 21 Nov 2005 14:44:04 GMT
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?











		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
Mime
View raw message