Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binding a variable in ManagedBean with the binding attribute in ice:selectInputDate

Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using <ice:selectInputDate value="#{bean.someDate} binding="#{bean.otherDate}" .......... />

Now when i set variables in the bean
for value it looks something like this
private Date someDate;

And now when i set variable for the binding in the bean
private Date otherDate;
Now it throws an IllegalArgumentException, becuase the returnType of otherDate should be something other than Date.

I came to know for the inputText tag there is HtmlInputText class as return type when we use binding attribute.

Can anyone tell me how to use the binding attribute in the <ice:selectInputDate....../> tag.

Thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic