Re: help,use t:commandButton pass some parameter to back bean

2006-11-13 Thread Richard Capraro
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: The attribute

Re: help,use t:commandButton pass some parameter to back bean

2006-11-13 Thread Gerald Müllan
Hi, in MyFaces the best way to pass some parameters to a backing bean is the usage of t:updateActionListener: 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

Re: help,use t:commandButton pass some parameter to back bean

2006-11-13 Thread Gerald Müllan
Yes this is a probably other way, but you have to invest little bit more work. Under the hood updateActionListener works something like this but is more convenient. cheers, Gerald On 11/13/06, Richard Capraro <[EMAIL PROTECTED]> wrote: Hello Kevin, maybe you could use the "param" tag, like th

Re: help,use t:commandButton pass some parameter to back bean

2006-11-13 Thread Richard Capraro
Hello Kevin, maybe you could use the "param" tag, like this To get the parameter "id" in your bean, use: FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String employeeID = (String) map.get("id"); Hope it helps yo

help,use t:commandButton pass some parameter to back bean

2006-11-12 Thread kevin_zhai
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%3Acomm