[richfaces-issues] [JBoss JIRA] Resolved: (RF-4980) JavaScript error when using nested ui:repeat tags inside rich:panelBar

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Fri Dec 5 02:15:36 EST 2008


     [ https://jira.jboss.org/jira/browse/RF-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Shaikovsky resolved RF-4980.
---------------------------------

    Resolution: Done


c:forEach or bindings should be used. repeat components isn't suitable at all for this case.

> JavaScript error when using nested ui:repeat tags inside rich:panelBar
> ----------------------------------------------------------------------
>
>                 Key: RF-4980
>                 URL: https://jira.jboss.org/jira/browse/RF-4980
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Tihomir Surdilovic
>            Assignee: Ilya Shaikovsky
>             Fix For: 3.3.0
>
>         Attachments: Panelbarrepeater.java, panelbarrepeater.xhtml, Person.java, Pet.java
>
>
> When having nested ui:repeat tags inside rich:panelBar FireFox 3 shows a JavaScript error and the content of the inner ui:repeat does not render.
> Following is sample xhtml:
> <h:form id="panelbarrepeaterForm">
> 				
> 				<rich:panelBar>
> 					<ui:repeat value="#{allPeople}" var="person">
> 						<rich:panelBarItem label="#{person.fname}, #{person.lname}">
> 							<ul>
> 								<ui:repeat value="#{person.pets}" var="pet">
> 									<li><a4j:commandLink value="#{pet.name} - #{pet.type}">
> 										<f:setPropertyActionListener value="#{pet.name}"
> 											target="#{panelbarrepeater.clickedPet}" />
> 									</a4j:commandLink></li>
> 								</ui:repeat>
> 							</ul>
> 						</rich:panelBarItem>
> 					</ui:repeat>
> 				</rich:panelBar>
> 			</h:form>
> And the JavaScript error:
> Error: this.items[index] is undefined
> Source File: http://localhost:8080/forcustomer/a4j/g/3_2_2.GAscripts/panelbar.js
> Line: 15
> I have uploaded test case which uses a Seam component as backing bean.
> This was tested with both 3.2.2.SR1 and 3.2.2.GA

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

        



More information about the richfaces-issues mailing list