This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RichFaces calendars (start date = end date)  RSS feed

 
Michael Cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form containing 2 RichFaces calendar components. When a user changes the start date, I want to default the end date to equal the start date. Both calendar linked to Java Beans.

How can that be done?

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a4j:support to rerender the 2nd calendar on change of the 1st calendar.
 
Tim Holloway
Bartender
Posts: 18702
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there's also a way to use validators to limit the end date range, but I'd have to RTFM.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!