[JBoss JIRA] Created: (RF-2560) It's not possible to create menu items with the help of <a4j:repeat />
by Bj?rn Weinbrenner (JIRA)
It's not possible to create menu items with the help of <a4j:repeat />
----------------------------------------------------------------------
Key: RF-2560
URL: http://jira.jboss.com/jira/browse/RF-2560
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: windows, jboss, ff/ie, jsf ri
Reporter: Bj?rn Weinbrenner
It seems that its not possible to use <ui:repeat /> or <a4j:repeat /> to create menus. if you iterate to add menuItems to a a menu e.g. contextmenu they won't appear.
That seems to depend on the implementation of org.richfaces.renderkit.html.AbstractMenuRenderer
Only direct children are search for items. Repeat-Components are ignored and their childs aren't found.
public void encodeItems(FacesContext context, UIComponent component) throws IOException {
List kids = component.getChildren();
Iterator it = kids.iterator();
while (it.hasNext()) {
UIComponent kid = (UIComponent)it.next();
if (kid instanceof UIMenuGroup || kid instanceof UIMenuItem || kid instanceof UIMenuSeparator) {
renderChild(context, kid);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (RF-1870) Need to allow for single set of headers with datatable and embedded datatable
by David M. Karr (JIRA)
Need to allow for single set of headers with datatable and embedded datatable
-----------------------------------------------------------------------------
Key: RF-1870
URL: http://jira.jboss.com/jira/browse/RF-1870
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.1.3
Reporter: David M. Karr
Priority: Minor
I have a need to present a datatable that models the information in a spreadsheet. As such, some of the columns are "scalars", which represent a single value per entity, and some of the columns are multi-valued, such that multiple row values correspond to a single entity.
For instance, consider the notion of a "Project" entity with "name" and "department" fields, along with a "servers" list property. Each server has "hostname", "cpuCount", and "platform" fields. I want to display a table with a single list of column headers, being "name", "department", "host name", "cpu count", and "platform" (and some others).
One row in the "projects" table will have an embedded table for servers.
In current functionality in v3.1.2, I can have a single header in the main datatable that corresponds to the embedded datatable (like "Servers"), and I can have headers in the embedded datatable (which would repeat for every project row), but there appears to be no way to just have a single set of headers representing all the existing columns unioned from the main datatable and the embedded datatable.
I've looked at the "subTable" component, but this doesn't appear to do what I need.
I will attach some artifacts that demonstrate what I'm trying to achieve.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months