[richfaces-issues] [JBoss JIRA] (RF-11355) commandButton doesn't work at first click in popupPanel

Manuel Fehlhammer (JIRA) jira-events at lists.jboss.org
Sun Jan 13 12:12:22 EST 2013


    [ https://issues.jboss.org/browse/RF-11355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745530#comment-12745530 ] 

Manuel Fehlhammer commented on RF-11355:
----------------------------------------

Also stumbled across this problem (form nested inside popupPanel does not work, i.e. a4j:commandButton actionListener NOT called).
Curiously in a different location in my xhtml-files the same artifact worked.
So I had a closer look:

if I have the following structure, the form nested inside the popupPanel seems to work:

{code:xml}
<rich:popupPanel id="popup" modal="true">
...
   <h:form>
      <a4j:outputPanel ajaxRendered="true">
         <!-- some form controls -->
         <a4j:commandButton value="#{bundle.store}" execute="@form"
            actionListener="#{customerManager.saveCurrentCustomer}"
            oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component(popup)}.hide();"/>
      </a4j:outputPanel>
   </h:form>
</rich:popupPanel>
{code}

So it seems that the a4j:outputpanel inside the form wrapping the complete form content including the a4j:commandButton somehow fixes the problem.

Best regards,
Manuel



                
> commandButton doesn't work at first click in popupPanel
> -------------------------------------------------------
>
>                 Key: RF-11355
>                 URL: https://issues.jboss.org/browse/RF-11355
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 4.0.0.Final
>         Environment: OS : Windows Seven
> Virtual server : easy php
> Server JEE : Glassfish 3.1
> JSF 2.0
>            Reporter: Loïc TALON
>             Fix For: 5-Tracking
>
>
> Hi,
> Sorry i don't speak very well english.
> I have a problem with a4j:commandButton in popupPanel.
> The first click doesn't work for action to commandButton but the first clic work. That doesn't work only in popupPanel.
> {code}
> <a4j:commandButton value="Valid"
>     action="#{beanManaged.valid}"
>     id="validButton"
>     render="modalPanelInfo, formCreate"
> />
> {code}
> I think the problem is javax.faces.viewstate, beacause before the first clic doesn't have input hidden with javax.faces.viewstate but after the first clic i have input hidden with javax.faces.viewstate.
> How to solve this problem ?
> THX

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list