Man I should not write early in the morning, ignore that last message, good grief that was bad. Is <h:outputText value=#{a.b.s}"/> working?

By not working, what exactly do you mean, is the value not posting back or something else?

On 11/21/05, Andrew Robinson < [EMAIL PROTECTED]> wrote:
Your 's' is private and STR is public.


On 11/21/05, Sean Schofield < [EMAIL PROTECTED]> wrote:
This should be posted to the users list.

sean

On 11/21/05, Marco Nady <[EMAIL PROTECTED] > 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.




Reply via email to