ICEfaces
  1. ICEfaces
  2. ICE-5239

JSF selectInputDate Validation

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP Professional, NetBeans 6.5.1

      Description

      Hi!
      I'm facing a validation problem.
      I've a selectInputDate. I've attached a custom date validator with it.

      <ice:selectInputDate id="inputFromDate" renderMonthAsDropdown="true"
                              renderYearAsDropdown="false"
                              title="date"
                              renderAsPopup="true"
                              partialSubmit="true"
                              value="#{CommissionPayTrustee.fromDate}">
                              <f:convertDateTime pattern="dd/MM/yyyy" />
                              <f:validator validatorId="dateValidator" />
                          </ice:selectInputDate>
                          <ice:message id="datemsg" errorClass="iceErrorMessage" for="inputFromDate"/>

      I've verified that my validator works.
      The message I set to display is "Invalid Date".
      The issue is that when an invalid date is entered, another message is displayed instead of my custom message. e.g. when I enter a date like
      "41/01/2000", the message displayed is:

      formCommissionPayTrust:inputFromDate: '41/01/2000' could not be understood as a date. Example: 07/01/2010

      and my own custom message is not displayed. Is there any way to display my own message or any way to change this message? I mean this message is fine to me if "formCommissionPayTrust:inputFromDate:" is removed from the message.

      Please help.

      Thanks.

      Asad.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Muhammad Asad Ullah Bhatti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: