[richfaces-issues] [JBoss JIRA] (RF-12212) Accordion - Javascript error - "this.getTogglePanel() is undefined" with ui:repeat

Jean ANDRE (JIRA) jira-events at lists.jboss.org
Thu Apr 26 17:33:18 EDT 2012


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

Jean ANDRE commented on RF-12212:
---------------------------------

Step to reproduce with the workbench

1) http://localhost:9080/NestedWeb2/index.html - Read the file readme.txt
2) Select the tab "Item management"
3) Enter a number at number of items field and press "new list" button
4) A new dynamic tab is created with the list - From the list click "open" on any item listed
5) The tab content is refreshed. then select the tab "sub-tab #2"
6) A list of accordions is displayed - some are static, some other are dynamic.
7) If you click on the last 3 accordion items, you will get the java script error.
9) Edit the page viewItem.xhtml from NestedWeb2\WebContent\pages\ to see the source code
    - in this page we have created
         1) One static accordion
         2) Two dynamic accordion - one with c:forEach, the second with ui:repeat

Regards,

                
> Accordion - Javascript error - "this.getTogglePanel() is undefined"  with ui:repeat
> -----------------------------------------------------------------------------------
>
>                 Key: RF-12212
>                 URL: https://issues.jboss.org/browse/RF-12212
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: WAS/RAD - Firefox 12 - JSF 2.1.7 - commons-lang-2.4 - commons-logging-1.1.1 - cssparser-0.9.6 - guava-11.0.1 - hibernate-validator-4.2.0.Final - junit-4.10 - log4j-1.2.16 - org.springframework 3.0.6 - sac-1.3
>            Reporter: Jean ANDRE
>             Fix For: 4.2.0.Final, 4.2.1.Final
>
>         Attachments: NestedWeb2_RF_12212.zip
>
>
> When we use accordion inside an ui:repeat we got a javascript exception - The accordion does not work at all.
> Error is : togglePanelItem.js.jsf?ln=org.richfaces (ligne 43)
> {code}
> this.getTogglePanel() is undefined
> [Stopper sur une erreur] 	
> >>>>>>> this.getTogglePanel().getItems()[this.index] = this;
> this.disabled = this.options.disabled || false;
> this.index = options["index"];
> this.getTogglePanel().getItems()[this.index] = this;
> this.__addUserEventHandler("enter");
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list