Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10586

togglePanel : ignores validation on ajax switching

    Details

      Description

      <h:form>
      <rich:togglePanel switchType="ajax">
      <rich:togglePanelItem name="wstep1">
      <h:outputText value="Page 1" />
      <h:inputText value="" required="true"/>
      <rich:messages></rich:messages>
      <a4j:commandButton value="Next >>">
      <rich:toggleControl disableDefault="true" targetItem="wstep2" event="click"/>
      </a4j:commandButton>
      </rich:togglePanelItem>
      <rich:togglePanelItem name="wstep2">
      <ui:include src="/richfaces/togglePanel/samples/wstep2.xhtml" />
      </rich:togglePanelItem>
      </rich:togglePanel>
      </h:form>

      after clicking the button all seems fine at server side. messages appears and current 1 item encoded. But the problem seems at JS oncomplete which still switches the panel to the second(empty) item.

      !Additionally: what about tabs and accordion?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Alex.Kolonitsky Alex Kolonitsky
                Reporter:
                ilya_shaikovsky Ilya Shaikovsky
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: