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: Get the value of a ReadOnly
Date Fri, 31 Aug 2007 19:19:52 GMT
Sorry - this I didn't understand. Please provide some code-snippets.

regards,

Martin

On 8/15/07, daniel ccss <danielccss2@gmail.com> 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 <martin.marinschek@gmail.com> 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 <danielccss2@gmail.com > 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

Mime
View raw message