• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Issue resolved.
It was a silly mistake.
Just had to keep the initial backing bean date reference as null.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic