javaee / mojarra

PLEASE NOTE: This project has moved to Eclipse Foundation and will be archived under the JavaEE GitHub Organization. After Feb. 1, 2021, the new location will be github.com/javaee/mojarra. Mojarra - Oracle's implementation of the JavaServer Faces specification
https://github.com/eclipse-ee4j/mojarra
Other
164 stars 58 forks source link

Nested UI:Repeat ajax action fails when top level ui:repeat has no items for the nested ui:repeat #1993

Closed javaserverfaces closed 11 years ago

javaserverfaces commented 13 years ago

given the following code

<ui:repeat value="#

{bean.items}

" var="item"> <ui:repeat value="#

{item.subItems}

" var="subItem"> <h:commandButton value="#

{subItem.name}

" action="#

{bean.action}

">

</h:commandButton> </ui:repeat> </ui:repeat>

With a collection of items 3 items where the first one has some nested subItems, the second one does not (empty collection) but the third one does have some subItems. The action will not be called on any element that occurs AFTER the element with no subItems.

If you add a subItem to the second element, everything works as expected. It is always rendered as expected but the ajax breaks for every element that occurs after an element with no subItems.

VERY VERY Annoying. Can't test it on any later versions due to serious regressions in 2.0.3+ (nested ui:repeats don't work). It is however a different issue.

Environment

glassfish 3.0.1

Affected Versions

[2.0.2]

javaserverfaces commented 13 years ago

Reported by adriaaaaan

javaserverfaces commented 13 years ago

adriaaaaan said: just it make it clear, any ajax button before the element with the empty collection of subItems works fine. This bug totally breaks both our dynamic menus (any menuItem without a submenu breaks every menuitem below it) and our "igoogle" style dashboard (any dashboard column that is empty breaks every widget to the right of it).

javaserverfaces commented 13 years ago

rogerk said: triage

javaserverfaces commented 11 years ago

@manfredriem said: Can you please attach a simple example application (with sources) that demonstrates the problem?

javaserverfaces commented 11 years ago

@manfredriem said: Lowering priority because of no response

javaserverfaces commented 11 years ago

@manfredriem said: Lowering priority because of no response

javaserverfaces commented 11 years ago

adriaaaaan said: Sorry for the lack of reply but we had to mostly abandon jsf because of all of the breaking issues.

javaserverfaces commented 11 years ago

@manfredriem said: Closing issue as reporter is not interested in a fix

javaserverfaces commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES-1989

javaserverfaces commented 11 years ago

Marked as incomplete on Monday, February 11th 2013, 6:42:51 am