This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am havin a textfield with the value 0.0. In my action i have a X variable of type Float. When the textfield is non-zero, the conversion is made correctly and the X variable is initialised in the action. When it is 0 it gives an exception because it is searching for a setter of type String (for the variable X I only have one of type Float).
I have tried to create a setX(String y) method but the result is the same.