1
Hello, I use my application on Tomcat 6, I need to switch to Tomcat 7 but everywhere I use f:convertNumber I get the following error:
/pages/Pvt/ipd/client/consultar.xhtml @37,105 value="#{clientPocketController.cliente.codcustomer}": Can’t set Property 'codcliente' on class 'br.com.Mili.entities.geral.cliente.Client' to value '1.793'
Edited
<h:inputText id="txtCodCliente" value="#{clientePocketController.cliente.codcliente}"
converterMessage="Permitido apenas números.">
<f:convertNumber integerOnly="true" minIntegerDigits="0" pattern="######" locale="pt_BR"/>
<f:validateLength maximum="6" />
</h:inputText>
I am using JSF 1.2. Can anyone help me? Thanks.
Thanks for the feedback Bruno, but I already have the locale configured in the faces-config ( <default-locale>pt_BR</default-locale>) and I also tested with the locale in convertNumber, but it doesn’t change anything. There’s some information missing that could help?
– Alves Felipe
You would have to know in more detail how your project is, such as the EL version in its classpath. If you are using the Tomcat version, you may be making a mistake. Try to list everything that has to do with Binding information, library version, data type in your bean, etc.
– Bruno César
I updated the lib on Tomcat (I did the same for Tomcat 6 and 7), I am using el-api-2.2.0.jar and el-impl-2.2. jar, JSF 1.2. The error on any type of property (Integer, Bidecimal, Double). Would it not be better if I create my own convert?!
– Alves Felipe
I did, I had changed Tomcat’s lib el-api to that el-api-2.2.0, and that was the problem. My mistake. Thanks for the help.
– Alves Felipe