myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Alexander \(KBSA 21\)" <alexander.je...@credit-suisse.com>
Subject RE: Question ?
Date Mon, 21 Nov 2005 14:49:35 GMT
Try to give s a better name (== more letters) strictly following the
JavaBean 
Rules...

hth
Alexander 

________________________________

From: Marco Nady [mailto:marco_nady@yahoo.com] 
Sent: Monday, November 21, 2005 3:44 PM
To: dev@myfaces.apache.org
Subject: Question ?


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
<http://ymail.flamingtext.com/ymail/2005/05/13/flamingtext_com_111596562
1_6383.jpg> 

________________________________

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

Mime
View raw message