Hi ,
I have doublespinner component defined in zul :
<doublespinner id="tbSpamThreshold" mold="rounded" constraint="no negative, min 0.00, max 1.00"/>
and entering numbers such 0.01 , 0.03 , etc , then i trying to get it's value in controller ( tbSpamThreshold.getValue() ) it fails with :
SEVERE: >>java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
>> at org.zkoss.zul.Doublespinner.coerceFromString(Doublespinner.java:133)
>> at org.zkoss.zul.impl.InputElement.setText(InputElement.java:270)
>> at org.zkoss.zul.impl.InputElement.checkUserError(InputElement.java:639)
>> at org.zkoss.zul.impl.InputElement.getTargetValue(InputElement.java:478)
>> at org.zkoss.zul.Doublespinner.getValue(Doublespinner.java:60)
Fixed since 2011/7/4.
But i can repeat it on the live demo running on ZK 5.0.7 released on May 11, 2011.
Or this fix is not included to ZK 5.0.7 ?
evilsunz,
The fix is in 5.0.8. You can try with the latest freshly here:
https://sourceforge.net/projects/zk1/files/ZK%20Freshly/zk-5.0.8-FL-2011-07-05/