• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

Date Compoent

Hi,
We are using Myfaces 1.1.1 <t:inputdate> to show the Dates fields.
We need to invoke an event (Javascript or Bean method)  once a day has been selected on the calendar pop up.
Here is our code,

<t:inputDate   id="startDateOfVisit" type="date"
                                 value="#{travelLogEntryBean.startDateOfVisit}"
                                 popupCalendar="true" styleClass="valueDropDownBox"
                                 onchange="submit();"
                                 valueChangeListener="#{travelLogEntryBean.populateCountryLE}"/>

In the above code, the valueChangeListener gets fired whenever the date is typed explictly i.e. not selected using the pop up calendar.
However it does not get fired when a day has been selected on the calendar pop up.

Please help.
0
csjoyce
Asked:
csjoyce
1 Solution
 
TimYatesCommented:
This is with IE right?

Apparently it's a problem that "onchange" only gets called in IE when the control loses focus:

http://www.nabble.com/%3Ct:inputDate%3E:-how-to-trigger-script-when-date-selected-from-popup--t1441845.html

Tim
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now