myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: f:param and commandButton
Date Thu, 27 Apr 2006 13:22:21 GMT
+1 on t:updateActionListener since params is an *ugly* way...

On 4/27/06, Murat Hazer <murathazer@gmail.com> wrote:
>
> You can use t:updateActionListener with command button, also you can read http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters
 for additional info.
>
>
> regards
>
>
>
> On 4/27/06, Uri Kalish <ukalish@mercury.com> wrote:
>
> >
> >
> >
> >
> > When I send a parameter from a commandButton I get a string containing the word
"null" from the parameters map.
> >
> > If I use a commandLink instead - it works.
> >
> > Any ideas?
> >
> >
> >
> >
> >
> >  <h:commandButton
> >
> >  id="addNewLoadTestReservationButton"
> >
> >        action="#{userReservationsTableViewBean.createNewLoadTestReservation}"
> >
> >        value="#{msgs.addNewLoadTestReservationButton}"
> >
> >        styleClass="button_action" >
> >
> >              <f:param name="reservation" value="0"/>
> >
> >  </h:commandButton>
> >
> >  <h:commandLink
> >
> >  id="addNewLoadTestReservationLink"
> >
> >        action="#{userReservationsTableViewBean.createNewLoadTestReservation}">
> >
> >              <h:outputText value="#{msgs.addNewLoadTestReservationButton}"/>
> >
> >              <f:param name="reservation" value="0"/>
> >
> >  </h:commandLink>
> >
> >
> >
> >
> >
> >
> >
> >
> >  ______________________________________________________________________
> >  This email has been scanned by the MessageLabs Email Security System.
> >  For more information please visit http://www.messagelabs.com/email
> >  ______________________________________________________________________
> >
>
>
>
>
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Mime
View raw message