[richfaces-issues] [JBoss JIRA] (RF-12594) rich:calendar defaultText causes conversion error if not populated.
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Nov 14 19:06:24 EST 2012
[ https://issues.jboss.org/browse/RF-12594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12594:
-------------------------------
Workaround Description:
This can be handled by custom JavaScript to clear value before submission.
On a4j:commandButton add onclick="clearEmptyDate();"
Then clear the date if it still matches defaultLabel. Example using JQuery:
{code}
<h:outputScript>
function clearEmptyDate() {
if('MMDDYYYY' == jQuery("#searchParticipant\\:dobInputDate").val()) {
jQuery("#searchParticipant\\:dobInputDate").val('');
}
}
</h:outputScript>
{code}
was:
This can be handled by custom JavaScript to clear value before submission.
On a4j:commandButton add onclick="clearEmptyDate();"
Then clear the date if it still matches defaultLabel. Example using JQuery:
<h:outputScript>
function clearEmptyDate() {
if('MMDDYYYY' == jQuery("#searchParticipant\\:dobInputDate").val()) {
jQuery("#searchParticipant\\:dobInputDate").val('');
}
}
</h:outputScript>
> rich:calendar defaultText causes conversion error if not populated.
> -------------------------------------------------------------------
>
> Key: RF-12594
> URL: https://issues.jboss.org/browse/RF-12594
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.2.2.Final, 4.2.3.Final, 4.3.0.M2
> Reporter: Justin Rosenberg
>
> If the defaultText attribute is set for a rich:calendar object and no value is entered, a conversion error occurs. It seems like the submission is trying to parse the defaultText value into a date.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list