• Post Reply Bookmark Topic Watch Topic
  • New Topic

RichFaces calendar issue  RSS feed

 
wadha alketbi
Ranch Hand
Posts: 56
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;

How i can solve this issue about the calendar in the JSP JSF application (the calendar shows English and Arabic at the same time, I want it Arabic only)

Thank you.
 
Knute Snortum
Sheriff
Posts: 3961
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post some details about your issue?
 
wadha alketbi
Ranch Hand
Posts: 56
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post some details about your issue?


It showed with me like this:
http://store2.up-00.com/2016-07/1470033195431.png
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everything seems to be there according to the documentation at

https://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_calendar.html

Note that the actual supported RichFaces release is 4, but much of the documentation still applies. It's just that Red Hat JBoss never did anything to push RF4 to the top of search engines, so the old stuff is stiff what comes up first in a quick search.

To change the text for "Today" on the calendar, for example, you'd need to define an override property value for RICH_CALENDAR_TODAY_LABEL in your application properties bundle. You would probably also have to redefine the test font and direction styles in the {todayControl} like the example given right below Figure 6.121.

I think that you should also be able to render the Hindu numerals if you add a few more style overrides, although this one is trickier, since the Unicode values for the digits 0-9 as expressed in Arabic are different.

The trickiest part of all would be to get it to render a hijra calendar, if that's your goal. I think it might require a specialized CalendarModel class. If you can get it to render the year, month and day-of-month properly, then it would be fairly simple to also do things like highlight Ramadan. Since RichFaces Calendar already supports holiday styles, highlighting things like the Eids would be fairly straightforward too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!