myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: f:param and commandButton
Date Thu, 27 Apr 2006 13:06:37 GMT
Hi Uri,

commandButtons can't send parameters.

regards,

Martin

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
> ______________________________________________________________________
>



--

http://www.irian.at

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

Professional Support for Apache MyFaces

Mime
View raw message