Hi axel,
As far as i can tell by using f:param you were just misled by the tag name
"param" :)
The one you are looking for is,
f:attribute, which is attached to its parent uiInputComponent (f:attribute
value=#{myEnum.VALUE})
If the attribute doesnt get updated, just use the actionlistener of your
commandlink reading the attribute map of the event source.
Or
t:updateActionListener... I think its name is selfexplaining.
Hope this hint helps...
-----Ursprüngliche Nachricht-----
Von: Axel Karst [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 30. Oktober 2006 16:16
An: [email protected]
Betreff: NavigationMenuItem, dynamic action
Hi all,
is there a possibilty to pass another hidden command to the action method of
NavigationMenuItem? I want to create NavigationMenuItems in a loop, going
through an enum. The actions should also be dependant on that enum. Now, the
problem is that you can't pass parameters in EL, like
testItem.setAction("#{testpatternSelectorBean.doStuff(myEnum.VALUE)}");
<f:param> seems not to work, either.
Is there another way to pass a parameter to the backing bean, because I want it
to react dynamically, just like the menu was created dynamically.
Thanks in advance,
Axel