Message Boards

Liferay Date Selector Event

thumbnail
Dan Griffiths, modified 3 Years ago.

Liferay Date Selector Event

New Member Posts: 8 Join Date: 6/25/20 Recent Posts
Hi,I am writing a simple portlet containing a JSP page to select a date. The control I am using is Liferay input-date:
 <liferay-ui:input-date name="sdate" required="true" dayValue="<%= gcSdate.get(Calendar.DAY_OF_MONTH) %>" monthValue="<%= gcSdate.get(Calendar.MONTH) %>" yearValue="<%= gcSdate.get(Calendar.YEAR) %>">
<aui:validator name="required"/>
 </liferay-ui:input-date>
I was  wondering if there is a way to capture the event  when the date is changed as adding the 'onChange=...' attribute just seems to cause an error.
I am just evaluating the value of this control using code triggered from a button but is there an event I could use instead?