I am very much a beginner with JSF and have been asked to do some dev work on an application (original devloper has left the company) and no one here knows JSF that well. So Its time for me to learn and get to grips with the framework.
I been working through quite well and googling and reading has normally found the answer to any problems, however im stuck on one particular probem.
I basically have the following rich:calender component below :
This works fine and sets the backing bean attrubute correctly (viewBooking.fromRange). However is it possible in JSF that this component can set "two" backing bean attributes"? I.E. After the user action I not only set (viewBooking.fromRange) but also (viewBooking.toRange) too?
You can set the the "toRange" backing bean property by copying the "fromRange" property into it in your "resetForm" action method.
That's half the battle. However, presumably there's a separate calendar control that displays and controls "toRange", so your a4j:support tag needs to ensure that that control is updated in the View. Use the "reRender" attribute to indicate the id of that control so that it will be refreshed from the updated backing bean.
Sources may include data from the Fakebook Research Foundation with support from Gargle University