[
https://issues.jboss.org/browse/RF-12594?page=com.atlassian.jira.plugin.s...
]
Justin Rosenberg updated RF-12594:
----------------------------------
Summary: rich:calendar defaultLabel causes conversion error if not
populated. (was: rich:calendar defaultText causes conversion error if not populated.)
Description: If the defaultLabel 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 defaultLabel value into a date. (was: 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.)
Steps to Reproduce:
{code}
<h:form id="searchParticipant">
<rich:calendar enableManualInput="true" value="#{bean.value}"
id="dob" locale="US" popup="true"
datePattern="MMddyyyy" defaultLabel="MMDDYYYY"
showApplyButton="false" />
<a4j:commandButton type="submit" value="Search"
id="searchButton" execute="@form"
render=":searchResutPanel"
action="#{participantSummaryManagedBean.search}" />
</h:form>
{code}
After submitting the form without inputting any data the converterMessage message is
displayed. Expected result is that "null" is submitted for the calendar value.
was:
{code}
<h:form id="searchParticipant">
<rich:calendar enableManualInput="true" value="#{bean.value}"
id="dob" locale="US"
popup="true" datePattern="MMddyyyy"
showApplyButton="false"
converterMessage="Use MMDDYYYY format" />
<a4j:commandButton type="submit" value="Search"
id="searchButton" execute="@form"
render=":searchResutPanel"
action="#{participantSummaryManagedBean.search}" />
</h:form>
{code}
After submitting the form without inputting any data the converterMessage message is
displayed. Expected result is that "null" is submitted for the calendar value.
rich:calendar defaultLabel 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
Labels: waiting_on_user
If the defaultLabel 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
defaultLabel 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