At the end what I did was used an inputtext control to show the value as
readonly and not the select. The problem for me, was that I couldn´t get the
value of a read only select in the bean.
On 8/31/07, Martin Marinschek <[EMAIL PROTECTED]> wrote:
>
> Sorry - this I didn't understand. Please provide some code-snippets.
>
> regards,
>
> Martin
>
> On 8/15/07, daniel ccss <[EMAIL PROTECTED]> wrote:
> > Hi Martin
> >
> > I don´t need to change the value with javascript what I need is to get
> the
> > value of a readOnly <h:inputText, in struts I can do that, why in JSF
> no?
> >
> >
> >
> > On 8/15/07, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > Do you try to change the value on the client-side with javascript?
> Then
> > you shouldn't set readonly/disabled to true. With readonly or disabled
> set
> > to true, your component value will never be decoded on the server.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > >
> > >
> > > On 8/14/07, daniel ccss <[EMAIL PROTECTED] > wrote:
> > > > Hi all:
> > > >
> > > > In my JSP I have:
> > > >
> > > > ....
> > > > <td class="td-contenido" colspan="2">
> > > > <h:selectOneMenu
> > value="#{DiaFeriadoBean.tipFeriado }" readonly="true">
> > > > <f:selectItems value="#{
> > DiaFeriadoBean.tiposFeriadosSelect}" />
> > > > </h:selectOneMenu>
> > > > </td>
> > > > .....
> > > >
> > > > And In the DiaFeriadoBean the value of tipFeriado property is 0, I
> tried
> > with disabled = true, but is the same, If I quit the reaonly="true" then
> I
> > can get the right value, My question is how can I get the value of a
> > property that is read only?
> > > >
> > > > Thanks
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>