JavaServer Faces 1.0 Early Access Draft (Page 3)
<< Page 2 (Data Model Duplication)
Request Event Handling
Section JSF 2.3 addresses the request event-handling model. This model pertains to events generated by UI changes or events that are requests for UI changes. For example, a user selects a radio button, which changes the values in a select box.
This has been tried many times and shown to be lacking. Server-side request event models do not scale well because of the overhead of marshalling and un-marshalling an entire form to and from the HttpServletRequest; and with JSF, copying them into the UIComponent Tree; all for the sake of having the action of selecting checkbox change the values in a select box (for example).
The only client-server solution to this problem seems to be the use of selective transmission systems, which transmit only the changed components state to the server and are out of the scope of this article. In order to attempt to accomplish this in a web browser, some very extensive JavaScript needs to be written which can cause enormous amounts of support issues.
I think that there will be very little need for RequestEventHandlers and that most of the work will be done in the ApplicationEventHandlers.
>> Page 4 (Responses and State Saving)
<< Back to Programming
|