You can use the NavigationMenuItems.setActionListener to add an
ActionListener to your NavigationMenuItems You will need to checkout
the current version of MyFaces to get this feature.
eg. navigationItem.setActionListener("#{yourBean.actionListener}");

YourBean
...
 public String actionListener(ActionEvent event)
...

regards
Thomas

On 11/4/05, Alberto Molpeceres <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We are using PanelNavigation2 to show a menu of actions. We have
> populated the menu and works pretty well. It gets rendered and it
> calls backing bean methods as expected. But since we create this menu
> dinamically in a backing bean, we can't define a diferent outcome for
> each menu entry in faces-config.xml.
>
> So, how can we know in the destination JSP which option has been
> selected?. Can we pass any kind of parameter to the NavigationMenuItem
> and retrieve it in the method given as "action" parameter?.
>
> Thank you very much for your attention,
>
>   al.
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to