[
https://issues.jboss.org/browse/RF-12594?page=com.atlassian.jira.plugin.s...
]
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