[richfaces-issues] [JBoss JIRA] Commented: (RF-1854) if a page contains multiple HtmlSimpleTogglePanels, only the first one on the page actually works (i.e. expands or collapses when the toggle icon is clicked)

Ian Springer (JIRA) jira-events at lists.jboss.org
Fri Jan 25 09:08:21 EST 2008


    [ http://jira.jboss.com/jira/browse/RF-1854?page=comments#action_12396818 ] 
            
Ian Springer commented on RF-1854:
----------------------------------

Note, we add the HtmlSimpleTogglePanels to the view programmatically (in a custom component of ours). Here's the code we use:
      
      Application application = FacesContext.getCurrentInstance().getApplication();
      String componentType = getComponentType(HtmlSimpleTogglePanel.class);
      HtmlSimpleTogglePanel panel = (HtmlSimpleTogglePanel)application.createComponent(componentType);
      panel.setId("jon_id" + UUID.randomUUID());
      panel.setLabel(label);
      panel.setSwitchType("client");
      parent.getChildren().add(panel);
      panel.setOpened(!group.isDefaultHidden());
      panel.setHeaderClass(PROPERTY_GROUP_HEADER_STYLE_CLASS);
      panel.setBodyClass(PROPERTY_GROUP_BODY_STYLE_CLASS);

Hopefully, this provides some sort of clue.


> if a page contains multiple HtmlSimpleTogglePanels, only the first one on the page actually works (i.e. expands or collapses when the toggle icon is clicked)
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-1854
>                 URL: http://jira.jboss.com/jira/browse/RF-1854
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>            Reporter: Ian Springer
>         Assigned To: Alexander Francuzov
>             Fix For: 3.2.0
>
>         Attachments: bug.html
>
>
> I saw this when I upgraded JON to RichFaces 3.1.3.GA. The toggle panels were working fine w/ RF 3.1.2.GA. We'd like to use some of the new components in 3.1.3 in JON 2.0, so it would be great if this could be fixed in 3.1.4.

-- 
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 richfaces-issues mailing list