-
1. Re: calendar onchange
ilya_shaikovsky Oct 27, 2010 2:24 AM (in response to ajanz)checked at demosite for 3.3.3.Final.4
<rich:calendar value="#{calendarBean.selectedDate}"locale="#{calendarBean.locale}"popup="#{calendarBean.popup}"datePattern="#{calendarBean.pattern}" enableManualInput="true"showApplyButton="#{calendarBean.showApply}"><a4j:support event="onchanged"/><a4j:support event="oninputchange"/></rich:calendar><rich:calendar value="#{calendarBean.selectedDate}"
locale="#{calendarBean.locale}"
popup="#{calendarBean.popup}"
datePattern="#{calendarBean.pattern}" enableManualInput="true"
showApplyButton="#{calendarBean.showApply}">
<a4j:support event="onchanged"/>
<a4j:support event="oninputchange"/>
</rich:calendar>
works fine for me.
-
2. Re: calendar onchange
ajanz Oct 27, 2010 3:54 AM (in response to ilya_shaikovsky)ok, thank you for checking this.
my pages a generated via code.
how can i put multiple ajaxsupport to a component. i know i must use facet, right?
my code is
if (type.compareTo(DynamicContent.TYPE_A4J_SUPPORT) == 0) {
HtmlAjaxSupport
this.createAjaxSupport(map);
log.debug("add aj4sup to " + last_comp.getId());
last_comp.getFacets().put("a4jsupport", ret);
}
-
3. Re: calendar onchange
ajanz Oct 27, 2010 6:29 AM (in response to ajanz)ok, got it. for multiple a4jsupport i must use numbered a4jsupport for id and facet
so
last_comp.getFacets().put("a4jsupport1", comp1);
and so on will work. but note comp.getId() must be same as facet name