myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "daniel ccss" <danielcc...@gmail.com>
Subject Re: Readonly + Validator
Date Wed, 15 Aug 2007 14:49:48 GMT
Thanks!!!

1- When the select have the attribute of readonly in true when i use
getTipFeriado() I get a 0 value, when i put it in false I get 21 (the
correct value), this is the select:

                            <h:selectOneMenu value="#{
DiaFeriadoBean.tipFeriado}">
                                <f:selectItems value="#{
DiaFeriadoBean.tiposFeriadosSelect}" />
                            </h:selectOneMenu>

2-
I have somenthing very similar but it dosnĀ“t works:

String valor = (String)value;

((EditableValueHolder)uIComponent).setSubmittedValue(value.toUpperCase())

It change the value but when i get back to the bean it steal have the value
in lowercase

I use your code, but a I recived a Sintaxis error: getSubmittedValue not
found, do I have to do another cast:

((EditableValueHolder)uIComponent).setSubmittedValue(uIComponent.*
getSubmittedValue*().toUpperCase())

Mime
View raw message