Thanks Gerald,
indeed your method is simpler and cleaner than mine.
Hope it will help Kevin
Regards,
Richard
2006/11/13, Gerald Müllan <[EMAIL PROTECTED]>:
Hi,
in MyFaces the best way to pass some parameters to a backing bean is
the usage of t:updateActionListener:
<h:commandLink value="delete entry" action="#{managedBean.deleteEntry}">
<t:updateActionListener
property="#{managedBean.idOfEntryToDelete}" value="#{entry.id}"/>
</h:commandLink>
The attribute "idOfEntryToDelete" gets the entry-id and following you
can use it for instance in the "deleteEntry" action method to find the
entry object.
cheers,
Gerald
On 11/13/06, kevin_zhai <[EMAIL PROTECTED]> wrote:
>
> hi expert:
> If I use t:commandButton pass some parameter to back bean
> excepte use t:inputHidden,
> can I use some other method implements?
> I try use f:attribute,but it's not support EL expression.
>
> thanks
> --
> View this message in context:
http://www.nabble.com/help%2Cuse-t%3AcommandButton-pass-some-parameter-to-back-bean-tf2619256.html#a7309750
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces