Tim Holloway wrote:I'm not actually sure about the validity of the "render()" javascript function, but that's not something I usually do, since I've always used the a4j:support method to supply dynamic re-rendering. In RF4, that would probably mean adding an "f:ajax" sub-element to your radio button. And, as a general rule, I've found it simpler and safer to let AJAX update the Model (backing bean) and then re-render the control from the model than to meddle with the control values on the page.
Incidentally, the "language="javascript"" attribute on the script tag is deprecated as of HTML5.
Thanks a lot for the reply Tim.
My application has two options. we can select the date range either through the radio buttons which have 30days(default), 60days etc options or directly set the date from the rich:calendar component.
When I have tried with ajax and backing bean, the radio buttons work fine and update the calendar dates. Following is my code:
But I am failing the other way, I could not set the calender directly, because when i click the search, the dates are reset to the dates selected by the radio button.
Please suggest. The examples that I saw online does not give much details about the javascript functions of the calendar component.
Thanks in advance.