Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binding tomahawk t:inputCalendar to a date object but not display default current date

 
Sanket Bhatt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I have a problem using tomahawk t:inputCalendar tag.
I have bound it to a backing bean date object.
But if I do date = new Date(), the tag renders current date by default.
If I keep the date reference null, the current date doesn render but then while submitting the page, the value chosen by user also doesn get stored.
Any suggestions over this??

Is it possible to bind the tag to a string object in backing bean using custom converter?
So that the empty string can be taken by the tag to display empty value on the web page and then when the user enters value, it can be stored in the string in backing bean?
M badly stuck.
Any help will be greatly appreciated.
 
Sanket Bhatt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue resolved.
It was a silly mistake.
Just had to keep the initial backing bean date reference as null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic