0 Replies Latest reply on Mar 18, 2008 11:51 AM by mars1412

    rich:tabPanel question

    mars1412 Apprentice

      on a tab I have some input fields included in a form and a submit button
      the input fields are validated onblur via ajax like this:

      <s:decorate id="firstnameDecorate" template="/layout/edit.xhtml">
       <ui:define name="label">#{messages['firstname']}</ui:define>
       <h:inputText id="firstname" value="#{profileEditor.instance.firstName}" required="true">
       <a:support event="onblur" ajaxSingle="true" reRender="firstnameDecorate" ignoreDupResponses="true" bypassUpdates="true"/>
       </h:inputText>
       </s:decorate>
      


      as you can see bypassUpdated is true.

      When I change the input field and press tab to get to the next input field, the ajax event is triggered. The request reaches the server and in the applyRequestValues phase, the new value is set on the inputComponent in the JSF view.
      So when the user now switches to another tab and comes back, he still sees the new value.

      1a) when the users changes a value, and does not leave the field via tab and clicks on another tab and comes back, the new value is NOT remembered
      I suppose, that either

      then I suppose, the onBlur event does not fire in this case - is this correct?
      if so: what can I do about this?

      1a) how could I restore the old values, when the user comes back to tab1?