Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error message throwing on start date as "The date must be on or before the 22/07/2016"

pradeep .nJul 9 2016 — edited Jul 9 2016

Hi everyone,

                    I had created a form which contains an attributes start date and end date and added a validation on these date attributes as shown below. Then i entered start date as 22/07/2016 and end date as 25/07/2016.  when I am trying to change the start date to 25/07/2016 as i required then, it throwing an exception on start date as "The date must be on or before the 25/07/2016". but it is allowing me to select the  date till 24/07/2016. I using JDeveloper 11.1.7.1.  please suggest me how can i resolve this issue.

<af:inputDate value="#{row.bindings.StartDate.inputValue}"

                      label="#{bindings.EmployeeCategoryVO1.hints.StartDate.label}"

                      required="true" autoSubmit="true"

                      maxValue="#{row.bindings.EndDate.inputValue}"

                      shortDesc="#{bindings.EmployeeCategoryVO1.hints.StartDate.tooltip}"

                      id="id2">

          <f:validator binding="#{row.bindings.StartDate.validator}"/>

          <af:convertDateTime pattern="#{bindings.EmployeeCategoryVO1.hints.StartDate.format}"/>

        </af:inputDate>

      </af:column>

      <af:column sortProperty="#{bindings.EmployeeCategoryVO1.hints.EndDate.name}"

                 filterable="true" sortable="true"

                 headerText="#{bindings.EmployeeCategoryVO1.hints.EndDate.label}"

                 id="c2">

        <f:facet name="filter">

          <af:inputDate value="#{vs.filterCriteria.EndDate}" id="id1"/>

        </f:facet>

        <af:inputDate value="#{row.bindings.EndDate.inputValue}"

                      autoSubmit="true"

                      label="#{bindings.EmployeeCategoryVO1.hints.EndDate.label}"

                      minValue="#{row.bindings.StartDate.inputValue}"

                      required="#{bindings.EmployeeCategoryVO1.hints.EndDate.mandatory}"

                      shortDesc="#{bindings.EmployeeCategoryVO1.hints.EndDate.tooltip}"

                      id="id4">

          <f:validator binding="#{row.bindings.EndDate.validator}"/>

          <af:convertDateTime pattern="#{bindings.EmployeeCategoryVO1.hints.EndDate.format}"/>

        </af:inputDate>

      </af:column>

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2016
Added on Jul 9 2016
2 comments
1,017 views