[
https://issues.jboss.org/browse/RF-11730?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-11730:
-------------------------------
Comment: was deleted
(was: Sounds like the conditional drag-source/drop-target rendering problem resolved in
RF-10994 with 4.1.0.CR1.
Would you please try the recently releases 4.1.0.CR1 release, and see if this resolves
your problem?
----
Nevermind - I completely mis-read the issue description!)
DropDowm - dynamic menu item is not rendered when using ui:fragment
-------------------------------------------------------------------
Key: RF-11730
URL:
https://issues.jboss.org/browse/RF-11730
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.1.0.Milestone4
Environment: Websphere 8 - RAD 8 - JSF Mojorra 2.1.4 - Spring 3.0.6 Final - Use
@Inject @Named @SessionScoped as annotations - Firefox 7.0.1 - Windows 7 (6.1 sp1)
Reporter: Jean ANDRE
Labels: waiting_on_user
The dropdown menu does not display any item when we use jsf tag ui:fragment. Under
firebug, there is some javacript error such as Popup menu is null. This error does not
appear when we use c:if tag instead of ui:fragment and the dropdown menu is working
correctly. here is an extract of the involved code.
The following code build dynamically a list of menu item based on opened tabs. When there
is no tab, the dropdown menu is empty but we display a menu-item with an "empty"
label. When there are opened tabs, the dropdown menu contains a list of opened tabs - One
menu-item per tab. The behavior of this dropdown menu is similar to the menu Windows in
MDI user interface style.
To make a summary, dropdown menu seems to not support ui:fragment tag.
{code}
<!-- -->
<!-- OPENED TABS -->
<!-- -->
<rich:toolbarGroup id="openedTabs" location="right">
<rich:dropDownMenu id="menu-opened-tabs">
<f:facet name="label">
<h:graphicImage value="/images/downBlackArrow.png"
title="#{msg['menu.item.tab.tooltip']}" />
</f:facet>
<c:if test="#{empty
desktopTabController.desktopTabBean.tabElements}">
<!-- -->
<!-- EMPTY MENU - NO TAB -->
<!-- -->
<rich:menuItem label="#{msg['menu.item.tab.empty']}" />
</c:if>
<c:if test="#{not empty
desktopTabController.desktopTabBean.tabElements}">
<!-- -->
<!-- DYNAMIC MENU ITEMS -->
<!-- -->
<c:forEach items="#{desktopTabController.desktopTabBean.tabElements}"
var="tab">
<c:set var="headerStr"
value="#{msg['desktop.tab.List']} (#{tab.serialNumber})" />
<rich:menuGroup id="menu-group-#{tab.id}"
label="#{(tab.isModeList == true) ? headerStr :
tab.header}">
<rich:menuItem label="#{msg['menu.item.tab.activate']}"
/>
<rich:menuItem label="#{msg['menu.item.tab.close']}"
/>
</rich:menuGroup>
</c:forEach>
</c:if>
</rich:dropDownMenu>
</rich:toolbarGroup>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira