-
1. Re: A bug with ui:repeat with menuItems?
ericjava May 10, 2008 3:47 AM (in response to ericjava)I just now tried it with RF 3.1.5 and had the same result.
-
2. Re: A bug with ui:repeat with menuItems?
ericjava May 10, 2008 3:53 AM (in response to ericjava)And I tried it with 3.2.0 SR1 and got the same result.
-
3. Re: A bug with ui:repeat with menuItems?
sergeysmirnov May 10, 2008 10:31 AM (in response to ericjava)you have to use c:forEach if you want to add menuItems on the page. No chance with ui:repeat.
-
4. Re: A bug with ui:repeat with menuItems?
trixom May 11, 2008 4:00 AM (in response to ericjava)Hi,
I am trying to use something similar, but with a rich:menuItem and a contextMenu/menuGroup:<rich:contextMenu id="dangerContextMenu" event="oncontextmenu" submitMode="none"> <rich:menuGroup value="#{messages.add_dangers}" submitMode="none"> <c:forEach items="#{dangerList.resultList}" var="danger"> <rich:menuItem value="#{danger.name}" /> </c:forEach> </rich:menuGroup> </rich:contextMenu>
The menuGroup however shows only one empty menuitem...
Any ideas?
Thanks,
Tom Rixom -
5. Re: A bug with ui:repeat with menuItems?
ilya_shaikovsky May 12, 2008 10:52 AM (in response to ericjava)and what do you see in generated source ?
-
6. Re: A bug with ui:repeat with menuItems?
trixom May 13, 2008 4:32 AM (in response to ericjava)Hi,
basically my namespace was incorrect:
I had
xmlns:c="http://java.sun.com/jsf/jstl/core"
xmlns:c="http://java.sun.com/jstl/core"
I copied it of an example...
But the nice thing about c:forEach is that it did not show an error as it was embedded in rich tags.
As soon as I tried c:forEach on it's own the namespace error showed up.
Thanks,
Tom -
7. Re: A bug with ui:repeat with menuItems?
ilya_shaikovsky May 13, 2008 4:51 AM (in response to ericjava)Yes this is known issue with namespace and the reason of my previous question :)