Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2658

s:defaultAction only works 1 submit

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.1.GA
    • Fix Version/s: 2.0.2.CR1, 2.1.0.BETA1
    • Component/s: JSF Controls
    • Labels:
      None
    • Environment:

      JBoss 4.2.2, RichFaces 3.1.4, Firefox 2.0.0.12, Windows XP

      Description

      I use the s:defaultAction and it works the first time i hit enter, but if the inputtextfield is not validated and/or I get an error message, and then hit enter in the inputtextfield again it does not work. But if I click the submitbutton instead the second time it works. So there is a difference between clicking the button and hit enter the second time.

      This is my code:
      <h:form>
      <s:validateAll>
      <h:panelGrid columns="2">
      <h:outputLabel value="#

      {messages['programkey.writePin']}:" for="pinCode" title="#{messages['handin.pinCode.title']}" />
      <s:decorate for="pinCode">
      <h:inputSecret id="pinCode" label="#{messages['programkey.writePin']}

      " value="#

      {agentHandler.pinCode}

      " size="4" required="true" />
      <h:message for="pinCode" styleClass="errorMessage" />
      </s:decorate>

      <a4j:commandButton action="#

      {handin.handin}

      " value="#

      {messages['generic.button.ok']}

      " reRender="pollForProgrammingResult, pinCodePanel, feedbackPanel">
      <s:defaultAction/>
      </a4j:commandButton>

      <s:button value="#

      {messages['generic.button.cancel']}

      " onclick="Richfaces.hideModalPanel('programModalPanel')"/>
      </h:panelGrid>
      </s:validateAll>
      </h:form>

      I have this form in a RichFaces modal panel.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                susnet Susanne Jarl
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: