This content has been marked as final.
Show 2 replies
-
1. Re: rich:calendar performance
ronanker Oct 9, 2007 5:54 AM (in response to ronanker)well,
i understand better now... it's just not supposed to act like i thought it would...
the mode doesn't apply for the value, but only for the component...
let's add a4j:support for ondateselected and oninputchange
or add listeners for theses events (in calendar's properties).
So it's just OK but lacks of documentation and exemples...
here is my test code :<h:panelGroup id="components"> <a4j:region id="dat1"> <rich:calendar value="#{handler_test.valeurs1.dateTest}" locale="#{contexte.beanContexte.beanContexteLangue.locale}" popup="true" datePattern="#{contexte.beanContexte.beanContexteLangue.formatDate}" enableManualInput="true" mode="client" inputClass="input colonne_date" buttonIcon="/images/ico_calendrier.gif" > <a4j:support event="ondateselected" reRender="repeater"/> <a4j:support event="oninputchange" reRender="repeater"/> </rich:calendar> <a4j:status startText=" MàJ" stopText=" OK" for="dat1" /> </a4j:region> <%-- ... --%> </h:panelGroup> <h:panelGroup id="repeater"> <h:outputText value="#{handler_test.valeurs1.dateTest}"> <f:convertDateTime pattern="#{contexte.beanContexte.beanContexteLangue.formatDate}" /> </h:outputText> <%-- ... --%> </h:panelGroup>
-
2. Re: rich:calendar performance
ronanker Oct 9, 2007 6:05 AM (in response to ronanker)just for documentation, tomahawk equivalent version :
<t:inputCalendar value="#{handler_test.valeurs2.dateTest}" renderAsPopup="true" renderPopupButtonAsImage="true" popupButtonImageUrl="/images/ico_calendrier.gif" size="#{constantes.SIZE_INPUT_CMS_DATE}" styleClass="input" > <f:convertDateTime pattern="#{contexte.beanContexte.beanContexteLangue.formatDate}" /> <a4j:support event="onchange" reRender="repeater"/> </t:inputCalendar>
but in current versions the RichFaces one is better.