[richfaces-issues] [JBoss JIRA] Updated: (RF-2560) It's not possible to create menu items with the help of <a4j:repeat />

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Jan 13 11:16:49 EST 2011


     [ https://issues.jboss.org/browse/RF-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-2560:
-------------------------------

    Fix Version/s: Post_4.F
                       (was: Future_4.X)


> It's not possible to create menu items with the help of <a4j:repeat />
> ----------------------------------------------------------------------
>
>                 Key: RF-2560
>                 URL: https://issues.jboss.org/browse/RF-2560
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.1.4
>         Environment: windows, jboss, ff/ie, jsf ri
>            Reporter: Bj?rn Weinbrenner
>            Assignee: Nick Belaevski
>             Fix For: Future_3.X, Post_4.F
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list