-
1. Re: Why I have problems with some RichFaces components?
abafna.bafna.amit.gmail.com Mar 3, 2009 6:33 PM (in response to akopylov)Try adding a4j support to the component like:
<rich:calendar id="dayCalendar" value="#{accounting.fromDate}" currentDate="#{accounting.fromDate}" popup="true" datePattern="dd.MM.yyyy" showApplyButton="false" cellWidth="24px" cellHeight="22px" style="width:200px" immediate="true"> <a4j:support ajaxSingle=true event="onchange" /> <a4j:support ajaxSingle=true event="oninputchange" /> </rich:calendar>
-
2. Re: Why I have problems with some RichFaces components?
cash1981 Mar 3, 2009 6:56 PM (in response to akopylov)Are you sure posting the form?
Do you have h:form and h:commandButton? -
3. Re: Why I have problems with some RichFaces components?
akopylov Mar 4, 2009 10:33 AM (in response to akopylov)Of course I use h:form.
But don't need in h:commandButton. I want to change variable in the bean when user changes value in rich:calendar component.I don't understant why you said about h:commandButton.
And about a4j:support. It doesn't work in the previos example. Also I think I shouldn't use it in my case.
All I need, I want to change variable in the bean when user changes date in rich:calendar. How to make it?
-
4. Re: Why I have problems with some RichFaces components?
akopylov Mar 4, 2009 1:20 PM (in response to akopylov)Thanks for all. I solved my problem by adding this string:
<a4j:support event="onchanged" ajaxSingle="true"/>
-
5. Re: Why I have problems with some RichFaces components?
labory Mar 4, 2009 5:51 PM (in response to akopylov)Use mode attribute (default is client)
<rich:calendar mode="ajax"/>
-
6. Re: Why I have problems with some RichFaces components?
waquin Nov 18, 2009 10:13 PM (in response to akopylov)Does anyone know why the rich:calendar uses event
onchanged
and where this is documented?(This is prob more of a question for the richfaces forum but I would appreciate any answers!)
-
7. Re: Why I have problems with some RichFaces components?
hendinas.hendinas.gmail.com Feb 1, 2010 1:01 AM (in response to akopylov)Yeah,
onchanged
instead of the standardonchange
event... think someone should be shot for that. -
8. Re: Why I have problems with some RichFaces components?
gvorsterman May 12, 2010 3:35 PM (in response to akopylov)Using onchange event works for me:
<rich:calendar ...> <a:support event="onchanged" reRender="createDiv2" ajaxSingle="true"/> </rich:calendar>
When I select a date the reRender works.
When I manually delete the text in the calendar the reRender does nothing.
How can I make it work when deleting the text manually?