10 Replies Latest reply on Oct 18, 2009 8:16 AM by Sachin Parnami

    Does param.someValue in rendered option effects in passing value to bean?

    Sachin Parnami Newbie

      Hi All,

      I have a form some of its inputText field contains


      whose value (someValue) generated by previous page and rendered option works fine.

      Now my problem is that, when i use

      <h:inputText id="userName" value="#{user.userName}" rendered="#{param.someValue}"/>

      with rendered option of param value i dont get entered userName value in my action class, it gives null :(
      and if i try it without rendered option or render option with some bean value it works just fine like here

      <h:inputText id="userName" value="#{user.userName}" />
      <h:inputText id="userName" value="#{user.userName}" rendered="#{abc.shouldRender}"/>

      both works just fine

      please guide whats wrong here?