Closed javaserverfaces closed 11 years ago
Reported by adriaaaaan
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).
rogerk said: triage
@manfredriem said: Can you please attach a simple example application (with sources) that demonstrates the problem?
@manfredriem said: Lowering priority because of no response
@manfredriem said: Lowering priority because of no response
adriaaaaan said: Sorry for the lack of reply but we had to mostly abandon jsf because of all of the breaking issues.
@manfredriem said: Closing issue as reporter is not interested in a fix
This issue was imported from java.net JIRA JAVASERVERFACES-1989
Marked as incomplete on Monday, February 11th 2013, 6:42:51 am
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]