[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2658) s:defaultAction only works 1 submit

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Mar 13 14:12:57 EDT 2008

     [ http://jira.jboss.com/jira/browse/JBSEAM-2658?page=all ]

Pete Muir closed JBSEAM-2658.

    Resolution: Cannot Reproduce Bug

I can't reproduce this - works correctly for me both with and without a modal panel.

If you can attach a simple example showing the problem with steps to reproduce, please reopen.

> s:defaultAction only works 1 submit
> -----------------------------------
>                 Key: JBSEAM-2658
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2658
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF Controls
>    Affects Versions: 2.0.1.GA
>         Environment: JBoss 4.2.2, RichFaces 3.1.4, Firefox, Windows XP
>            Reporter: Susanne Jarl
>         Assigned To: Pete Muir
>             Fix For: 2.0.2.GA, 2.1.0.GA
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list