2 Replies Latest reply on Aug 17, 2006 1:53 PM by mrohad

    @out with on param

    mrohad

      I've User entity bean
      User (id , name , pass)

      I would like to set only the user name in a SFSB and to send it to the page
      what I did is

       @In(required=false)
       @Out(required=false)
       User user;
      
       public String testSomething()
       {
       User= new User();
       user.setName("Joe");
       return "test";
       }
      

      in the XHTML i've
      <h:inputText value="#{user.name}" />


      the problem is the input is still empty?
      what am i doing wrong?

      Thank you for all your help
      this is the greatest forum ever

        • 1. Re: @out with on param
          bfo81

          Is the User entity bean annotated with @Name("user)?

          btw: you've written User=new User() instead of user=new User(). Sure this is your real code? If not, please copy and paste the whole stuff ;).

          • 2. Re: @out with on param
            mrohad

            I've @Name on my User entity

            actually it's a different more complex story so I just rewrite the code here

            any other idea but @Name?

            Thanks