I am using JSF 1.2 with IceFaces 1.8 in the project here.
I have a page that basically represents a large editing grid for a whole group of floating point numbers. This is implemented using inputText fields on a page pointing to a value object with primitive float types
Now that the new requirement will see that some of the fields are null, I wanted to change the value object to use float objects rather than primitive types. I did not think that I would need to do something on the page to post this.
However, when I make the changes, I get the following error:
/pages/page.xhtml @ 79.14 value = "# {row.targetValue}": java.lang.IllegalArgumentException: argument type mismatch
and
/pages/page.xhtml @ 79.14 value = "# {row.targetValue}": java.lang.IllegalArgumentException: java.lang.ClassCastException@1449aa1
The page is as follows:
<ice:inputText value="#{row.targetValue}" size="4"> <f:convertNumber pattern="###.#" /> </ice:inputText>
I also tried adding <f:convert convertId="javax.faces.Float" /> , but that does not work either! Also, the types of value objects are not changed to Double .
I'm sure that I probably missed something very simple, but I looked at it for a while, and no answers are immediately obvious!
floating-point exception jsf converter
user7094
source share