This content has been marked as final.
Show 2 replies
-
1. Re: Construct Toolbar programmatically
r4nd7263 Mar 10, 2010 9:35 AM (in response to r4nd7263)Found one example here.
http://thoughtsillustrated.blogspot.com/2008/08/richfaces-dynamic-menu-finding-form-and.html
-
2. Re: Construct Toolbar programmatically
ajanz Mar 10, 2010 9:40 AM (in response to r4nd7263)yes i have, i have an application where the whole form with all elements is created by code.
use a binding on your page like
<h:panelGroup id="menu" binding="#{Page.toolbargroup}"></h:panelGroup>
in the get Method of your Bean create the children.
HtmlToolBarGroup toolbargroup =
new HtmlToolBarGroup();
toolbargroup.setId(getID(
"TOOLBARGROUP"));
toolbargroup.getChildren().add(toolbargroup);