Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ManagedBean conversion error  RSS feed

 
Liming Xu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!