Hi Udo, Thanks first of all for your reply.
I have tried your first suggestion with menuRadio. This behavior is exactly what I had in mind, apart from the fact that menuRadio displays this radio bullet of the currently selected/default item. And this bullet doesn't really fit into the task I have in mind. If it wasn't displayed, it would be perfect. I guess there is no way to "hide" the bullet? Your second suggestion, I couldn't really pursue, since I didn't really know how to make this work with Tobago. Anyway, for the particular task in had in mind, I decided for a completely different set up (i.e. I moved it out of the menu bar and used tx:selectOneChoice). But if you still find some spare time, I think it might be helpful to know how to do it in future :) So this is the exact task I had in mind: I have a list of items to be displayed in the menu. This list can vary in size and is determined when the application is started. Then, when the user clicks on one of the menu items from this list, a popup should open displaying content that is appropriate for the clicked menu item. Ok thanks again for your time. Best, dom -------- Original-Nachricht -------- > Datum: Fri, 22 Oct 2010 11:09:31 +0200 > Von: Udo Schnurpfeil <[email protected]> > An: MyFaces Discussion <[email protected]> > Betreff: Re: [Tobago] Multiple dynamically created menu items. > (ups, pressed wrong key) > > Hi DOM! > > I'm not sure what you are looking for. > > Do you know you can use this? > <tx:menuRadio action="#{clientConfigController.submit}" > value="#{clientConfigController.locale}"> > <f:selectItems value="#{clientConfigController.localeItems}" /> > </tx:menuRadio> > > Are you looking for a similar to create more than one menuItem with > actions? > > If so. I think this will not work, because the selectItems doesn't > contains an action. > > An other solution might be to use <ui:repeat> with facelets, but I > didn't tested it. > > Regards, > > Udo > > Am 20.10.10 18:42, schrieb [email protected]: > > Dear all, > > > > Is it possible to dynamically create multiple "tc:menuItem"s. I am > looking for a similar behavior that can be implemented with "tc:selectItems" > for > e.g. "tx:menuRadio". > > > > Something like: > > > > <tc:menu label="test"> > > <tc:menuItems> > > <tc:selectItems value="foo" /> > > </tc:menuItems> > > </tc:menu> > > > > Where "foo" references to a List<SelectItem> in a backing bean. The > elements in this list should be displayed as individual menu items. > > > > Thanks a lot for any hints. > > Greetings, > > dom -- GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

