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

how to change color of a date in calendar  RSS feed

 
shree lk
Greenhorn
Posts: 14
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...

I have added <rich: calendar> using RichFaces. I also have 3 radio buttons for different holiday types like general, festival, public like that. I want assign these holiday to calendar dates and change color of the date to specific color.
Suppose I select date 24-Mar-2011 on Calender and Festival holiday with radio button it would change the color of date 24-mar-2011 to red. like that...

I am working with eclipse and tomcat7.

Please help
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither your J2EE server nor your IDE have any connection with this.

You can adjust colors on calendar components by adding CSS style information. However, I'm not sure you can arbitrarily color a single day in the calendar to one of a multitude of colors. Then again, I haven't read that part of the RichFaces manual lately.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!