You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Scott Cannon (JIRA)" <de...@myfaces.apache.org> on 2008/03/06 15:38:58 UTC

[jira] Created: (TRINIDAD-994) Have to click twice on commandButton if it's in a facet and a tr:panelAccordion had been expanded or collapsed

Have to click twice on commandButton if it's in a facet and a tr:panelAccordion had been expanded or collapsed
--------------------------------------------------------------------------------------------------------------

                 Key: TRINIDAD-994
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-994
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
         Environment: Fedora Core 8 - JBoss 4.0.5 Application Sever, Trinidad-1.0.6 (also tried 1.0.1)
            Reporter: Scott Cannon
            Priority: Minor


If you have a commandButton that exists inside of a facet and also have a panelAccordian on the same screen.  If you expand the panelAccordian then try clicking the button the first time nothing happens.  I've put an example below

<tr:panelPageHeader>
	<f:facet name="navigation2">
          <tr:commandButton action="#{Quote.cancel}" text="Cancel" />	
      </f:facet>
</tr:panelPageHeader>	

<tr:panelAccordion discloseNone="true" discloseMany="true">
   <tr:showDetailItem text="Test" >
	<tr:outputText value="Full Container Load"/>					
   </tr:showDetailItem>
</tr:panelAccordion>

My commandButton returns from a dialog with the following code in the action method:
	public String cancel() {
		RequestContext.getCurrentInstance().returnFromDialog(null, null);
		return null;
	}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.