[
http://jira.jboss.com/jira/browse/RF-2023?page=comments#action_12396501 ]
Richard Kennard commented on RF-2023:
-------------------------------------
Thanks Nick.
That's great news about locale, but can we roll something ourselves for pattern? For
example in web.xml I could do...
<context-param>
<param-name>calendar-default-pattern</param-name>
<param-value>dd/MM/yyyy</pattern-value>
</context-param>
...then I would just be able to do...
<rich:calendar value="..."/>
...in my code?
set Locale/DatePattern for Calendar globally (eg. in a web.xml
context-param or something)
------------------------------------------------------------------------------------------
Key: RF-2023
URL:
http://jira.jboss.com/jira/browse/RF-2023
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.1.3
Environment: All
Reporter: Richard Kennard
Assigned To: Nick Belaevski
Priority: Optional
Fix For: 3.2.0
Original Estimate: 4 hours
Remaining Estimate: 4 hours
It would be great if you could set the Locale/DatePattern for the Calendar control
globally (eg. in a web.xml context-param or something), rather than having to put...
<rich:calendar locale="..." datePattern="..."/>
...every time you use the tag? I know you can currently use an EL expression, like...
<rich:calendar locale="#{globals.locale}"
datePattern="#{globals.pattern}"/>
...but that requires extra plumbing on the part of the developer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira