The value before is 21, the only problem is that when I put it readonly I
can´t access his value and recived a 0.
I have a datatable and in each row i of the datatable I have a commandLink
to edit, when I click on the edit link I fill the form in an action listener
that will be edit (look for the bold text), then I show the jsp:
public void establecerFormEditar(ActionEvent event){
//Se obtiene el parámetro del día
UIParameter parametro =
(UIParameter)event.getComponent().findComponent("parDia");
this.parDia = Integer.parseInt(parametro.getValue().toString());
//Se obtiene el parámetro del mes
parametro =
(UIParameter)event.getComponent().findComponent("parMes");
this.parMes = Integer.parseInt(parametro.getValue().toString());
//Se obtiene el parámetro del anio
parametro =
(UIParameter)event.getComponent().findComponent("parAnio");
this.parAnio =
Integer.parseInt(parametro.getValue().toString());
//Se obtiene el parámetro del motivo
parametro =
(UIParameter)event.getComponent().findComponent("dscFeriado");
this.dscFeriado = parametro.getValue().toString();
//Se obtiene el parámetro del logAplicaSiempre
parametro =
(UIParameter)event.getComponent().findComponent("logAplicaSiempre");
this.logAplicaSiempre =
Integer.parseInt(parametro.getValue().toString());
//Se obtiene el parámetro del tipFeriado
parametro =
(UIParameter)event.getComponent().findComponent("tipFeriado");
this.tipFeriado = Integer.parseInt(parametro.getValue
().toString());
//Se obtiene el parámetro del logActivo
parametro =
(UIParameter)event.getComponent().findComponent("logActivo");
this.logActivo =
Integer.parseInt(parametro.getValue().toString());
}
On 8/16/07, Volker Weber <[EMAIL PROTECTED]> wrote:
>
> Which value has getTipFeriado() BEFORE rendering the html to the Browser?
> Why did you expect this is changed to the value displayed in the Browser?
>
> 2007/8/16, daniel ccss <[EMAIL PROTECTED]>:
> > The scope is session,
> >
> > If i see the page source code from the browser I get this, as you see
> the 21
> > is the first value, but it brings me a 0 if is read only. What I just
> notice
> > is that in the JSP I have readonly="true" and in this source code I see:
> > disabled="disabled" is that right?? Again if I erase the readonly=true I
> get
> > the correct value 21:
> >
> > <select name="agregarDiaFeriadoForm:_idJsp12" size
> > ="1" disabled=
> > "disabled">
> > <option value
> > ="21">RELIGIOSO....</option
> > >
> > <option value="1">DEL ESTADO</option>
> > <
> > option value="2">POR VACACIONES</option>
> > <option
> > value="3">PATRONALES</option>
> > <option value=
> > "15">POR DESATRES NATURALES</option>
> > <option value="62"
> > >BE</option></select>
> >
> >
> >
> > On 8/16/07, Volker Weber < [EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > is the value of getTipFeriado() truely 21 BEFORE rendering the page?
> > > Which scope is the bean?
> > >
> > >
> > > Regards,
> > > Volker
> > >
> > > 2007/8/15, daniel ccss <[EMAIL PROTECTED]>:
> > > > On a readonly component the model value will not change!
> > > >
> > > > I know, I try to explain my point better with an image, as you can
> see
> > when
> > > > I load the edit form the select have a value selected readOnly, the
> code
> > of
> > > > the value selected is 21. Ok then I modify some others value and
> click
> > on
> > > > the <h:commandLink when in my backing_bean I get the value of the
> > selected
> > > > code in the select if (when the select is readonly) is 0! If I
> modify
> > the
> > > > jsp code and put readonly=false, in the backing_bean i get a 21
> (correct
> > > > value).
> > > >
> > >
> >
> >
>