| Author |
ManagedBean conversion error
|
Liming Xu
Greenhorn
Joined: Jan 22, 2002
Posts: 19
|
|
Hello, I have a drop down with values from 10000 to 20000, and the dropdown value is mapped to a managedbean property which takes a float parameter. When I tried to submit, it gives me a cast exception, java.lang.Float. What should I do? I also have another proprety Date of birth (h:inputText) which sets to a method with "java.util.Date" parameter, seems like I get null point exception. Btw, I used teh converter for it, does it matter? <f:convertDateTime pattern="MM-dd-yyyy" /> then submit, seems to also have problem.
|
 |
Liming Xu
Greenhorn
Joined: Jan 22, 2002
Posts: 19
|
|
solved the problem by moving it from tbe .xml to a custome java file and initalizd the value to Float type directly. date problem was fine.
|
 |
 |
|
|
subject: ManagedBean conversion error
|
|
|