I am using liferay-ui datepicker. When my page loads the date is current date in the datepicker and data of the current date is loaded on the page. What I want to do is allow the user to view data such that when user selects any other date, data of the selected date is dispayed. How should I go about this? SHould I refresh the entire page? how? Or should I use ajax? how should i go about? if ajax is to be used how should i pass the data?
EDIT:
I will explain my problem in detail. I am using liferay:ui:date . I want user to select a date from it. Once the user selects date, I want to pass the date to custom-sql. I am calling the finder function in the same jsp as follows:
List<Object[]> ObjdisplayAttListName = AttendanceLocalServiceUtil.findAttendance(currentdate);
I want to pass the user selected date in the above function. Right now what I am doing is only passing the current date in the above line of code. Iwant to pass the user selected date.