eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
162 stars 110 forks source link

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

Closed ren-zhijun-oracle closed 11 years ago

ren-zhijun-oracle 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]

ren-zhijun-oracle commented 6 years ago
ren-zhijun-oracle commented 13 years ago

@javaserverfaces Commented Reported by adriaaaaan

ren-zhijun-oracle commented 13 years ago

@javaserverfaces Commented 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).

ren-zhijun-oracle commented 13 years ago

@javaserverfaces Commented rogerk said: triage

ren-zhijun-oracle commented 11 years ago

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

ren-zhijun-oracle commented 11 years ago

@javaserverfaces Commented @manfredriem said: Lowering priority because of no response

ren-zhijun-oracle commented 11 years ago

@javaserverfaces Commented @manfredriem said: Lowering priority because of no response

ren-zhijun-oracle commented 11 years ago

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

ren-zhijun-oracle commented 11 years ago

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

ren-zhijun-oracle commented 7 years ago

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

ren-zhijun-oracle commented 11 years ago

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