Problems to use af:InputDate

Hello

I'm on Jdeveloper 11.1.1.6.0. I'm defined af:InputDate and using disableDays to disable a few days. What is the problem with this code below, no compilation error. I get java exception.

Error: javax.el.PropertyNotFoundException: the class ' view. ' MyClass does not have the property "getDateList".

* < af:inputDate label = "choose the valid Date' id = 'id4' disabledDays="#{backingBeanScope.myDateBean.getDateList}"/ > *.

+ import...

Import org.apache.myfaces.trinidad.model.DateListProvider;
public class MyClass implements {DateListProvider}

private list dateList;

public list getDateList (FacesContext facesContext, calendar, Date, date, Date, date2) {}

If (dateList == null) {}
dateList = new ArrayList < Date > ();
Date d;
try {}
d = new SimpleDateFormat("MM/dd/yyyy").parse("01/01/2012");
dateList.add (d);
d = new SimpleDateFormat("MM/dd/yyyy").parse("01/05/2012");
dateList.add (d);

} catch (ParseException exception) e {}
e.printStackTrace ();
}
}
Return dateList;
}

}

For the disabled in date property. MinValue, you need to point to a managed bean class that implements the org.apache.myfaces.trinidad.model.DateListProvider interface.


* disabledDays = "#{backingBeanScope.InputDateBean}" / > *.

Thank you
Nini

Tags: Java

Similar Questions

Maybe you are looking for