jsf - rich:calendar displays a date in far future when Thailand is selected -
i have application works 5 countries , local languages. rich:calendar
seems working fine countries. except, when select thailand , thai language. see odd date 1st january 2559
in calendar when click on it. rest of languages works fine. can issue. below code.
<rich:calendar id="schoolstartdate" enablemanualinput="true" datepattern="#{mycontroller.datepattern}" styleclass="inputreqschoolday" showapplybutton="false" defaultvalue="#{actionform.progressform.detailsform.schoolstartdate}" showinput="true" value="#{mycontroller.progressform.detailsform.schoolstartdate}" locale="#{schoolmanagedbean.sessiondata.countrylanguage}" > <f:validator validatorid="validatedateformat" /> <f:converter converterid="caldatestrconverter" /> </rich:calendar>
this seems rich:faces
bug. able solve issue checking date's value going null
(that worked other languages though). dont know if perfect solution.
handlenullvalue function set value currentdate.
i used onshow
attribute
onshow="handlenullvalue('#{rich:clientid('schoolstartdate')}');"
Comments
Post a Comment