myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angel Miralles Arevalo <>
Subject Re: commandButton
Date Thu, 09 Aug 2007 12:55:51 GMT
I don't undestand very well what you want to do but try with:

<t:commandLink id="save1_buttom" forceId="true" value="save1">
        <f:param name="operation" value="1" />
<t:commandLink id="save2_buttom" forceId="true" value="save2">
        <f:param name="operation" value="2" />

Then in backing bean you can get param value like this:

this.operation = (String)getApplication().createValueBinding("#{param.operation}").getValue(facesContext);

I hope it will help you.

----- Mensaje original ----
De: ignicolist <>
Enviado: jueves, 9 de agosto, 2007 14:05:34
Asunto: commandButton

Hi, i have this code: 

<h:selectOneRadio id="mode" value="#{scheduleSettings2.mode}">
                <f:selectItem itemValue="0" itemLabel="day"/>
                <f:selectItem itemValue="1" itemLabel="workweek"/>
                <f:selectItem itemValue="2" itemLabel="week" />
                <f:selectItem itemValue="3" itemLabel="month" />
    <h:commandButton action="#{}" value="save" />    

when i do save just pass the value that is selected in selectItem (0,1,2, or

So what i want its something like having 4 commandButton or 4 commandLink
that each one have the value 0,1,2 and 3, for when a click in each one make
the save and send the respective value. 

Its thar possible? how?


View this message in context:
Sent from the MyFaces - Users mailing list archive at

Sé un Mejor Amante del Cine                         
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
View raw message