-
1. Re: How can we use more than one date formate using rich:calendar
iabughosh Aug 1, 2011 8:15 AM (in response to sunilchaurha)Hi Sunil,
use a condition inside datePattern attribute :
datePattern="#{yourBean.condition ? messages['my.calendar.date.format1']:messages['my.calendar.date.format2'] }"
regards.
-
2. Re: How can we use more than one date formate using rich:calendar
sunilchaurha Aug 1, 2011 8:32 AM (in response to iabughosh)Hi Mr. Ghosh,
Your suggestion is great but here my requirement is different.
Here i will have enableManualInput="true" and user can enter date in the given formate without selecting date from the calendar popup.
--
Sunil
-
3. Re: How can we use more than one date formate using rich:calendar
iabughosh Aug 2, 2011 3:27 AM (in response to sunilchaurha)ok, the previous post is solving this problem too, when manualInput is true, it will validate the date field according to your datePattern attribute.
-
4. Re: How can we use more than one date formate using rich:calendar
sunilchaurha Apr 6, 2012 2:23 AM (in response to sunilchaurha)Hi,
I have created a solution for such requirement.
I have written a javascript which validates the required patterns and if user enters an invalid date then warns to user back before apply request phase itself.
Please refer to my new post.
https://community.jboss.org/wiki/AcceptingMultipleDateFormatsInRichcalendar
I have raised the same issue in Jira, so the same can we available in the later version of richfaces.
--
Sunil C