Interesting. Thanks Leonardo!
On Mon, Dec 17, 2012 at 12:06 PM, Leonardo Uribe <lu4...@gmail.com> wrote: > Hi > > I can remember this issue. It is related to the way how EL expressions > are resolved. In some cases, EL cannot get the type of the expression > (sometimes return null, or the property comes from a map), so > f:convertNumber cannot guess the type properly. > > In those cases, the solution is use <mcc:convertNumber> from myfaces > commons and set destType property to java.lang.Integer: > > > http://myfaces.apache.org/commons20/myfaces-converters20/tagdoc/mcc_convertNumber.html > > regards, > > Leonardo Uribe > > 2012/12/17 Howard W. Smith, Jr. <smithh032...@gmail.com>: > > removing the following, fixed the problem. I am using f:convertNumber on > > many other pages, it seems to only occur on the page that contains the > > xhtml i in my previous email. > > > > > > <f:convertNumber groupingUsed="false" integerOnly="true" type="number"/> > > > > > > > > On Mon, Dec 17, 2012 at 11:18 AM, Howard W. Smith, Jr. < > > smithh032...@gmail.com> wrote: > > > >> xhtml (please note the f:convertNumber) below: > >> > >> <p:inputText id="totalMilesInOtherStates" size="10" > >> styleClass="number_alignright" > >> disabled="#{pf_rollingStockController.view}" > >> > >> value="#{pf_rollingStockController.selected.totalMilesInOtherStates}"> > >> <f:convertNumber groupingUsed="false" integerOnly="true" > >> type="number"/> > >> </p:inputText> > >> >