I have a strange problem with one of my bean methods. If I give a date data type from java.util.Date
to java.sql.Dat
e, one of the methods in my managedBean named actionEdit
does not start when I click the button on the jsf page.
My actionEdit () method
public void actionEdit(){ try { beanValues.add(selectedRow); for (Schedule editValues : beanValues) { editValues.setStartDate(selectedRow.getStartDate()); editValues.setRemarks(selectedRow.getRemarks()); } ScheduleDAO.editSchedule(beanValues); beanValues.clear(); } catch (Exception e) {
and it is called in jsf as follows
<p:commandButton value="Save" action="#{schedule.actionEdit()}"> </p:commandButton>
What could be causing this behavior? Any ideas?
thanks
source share