3 Replies Latest reply on May 27, 2009 6:15 AM by Nick Belaevski

    Cannot get the input value on backing bean!

    kw wong Newbie

      I have a problem on getting the value from inputtext on backing bean.

      The text field is not shown by default (the equation of rendered return false) , when I change the combo box value and call ajax to update the backing bean which make the input text shown after re-rendered.

      When I change the qty and submit the form, the backing bean cannot get the new value of qty .

      <h:panelGroup id=ppqty>
      <h:inputText value="#{bean.qty}" id="qty"
      label="#{msg.qty}" rendered="#{bean.id=='0'}"
      maxlength="3" size="5">
      <f:validateDoubleRange minimum="1" maximum="100"></f:validateDoubleRange>
      </h:inputText>

      ............

      <h:panelGroup id="qty2" rendered="#{bean.id!='0'}">
      <h:outputText value="#{msg.product_qty} :"></h:outputText>
      <h:outputText value="1"></h:outputText>
      </h:panelGroup>
      </h:panelGroup>

      <h:selectOneMenu>
      <a4j:support event="onchange" reRender="ppqty">
      </h:selectOneMenu>
      .............

      <h:commandLink action="#{bean.add}">

      .........

      At backing bean, the new value of qty cannot get.