The RichFaces team, along side the Seam team, are working together to get some important updates into the next version of the JSF specification.
This page will outline the current proposals, and issues, with links to spec issue tracker. The Seam team maintains their own list here: http://seamframework.org/Documentation/JSF21
- Flush out priorities
- Find, or create spec issues, and link to from proposal here
- Remove out of date items
PartialViewContext Interoperability (P0)
- Currently planned for 2.1_gf31_m5
Partial view context is a new entity in JSF 2.0 serving the purposes of controlling AJAX view processing/rendering. However it appears that you need to provide your own implementation in order to be able to use external capabilities of PartialResponseWriter, e.g. rendering of extension elements or addition/removal of elements by AJAX. This can be breaking interoperability of component libraries.
Ajax Request Events
New Event Between Complete and Success (P0)
- Currently planned for 2.1_gf31_m5
We have begin, complete, success and errors handlers. We need additional events "between" complete and success events fired for every component update operation. This will be used for:
- cleanup client-side objects before element removal on update. In other case we will have memory consumption problem which has no accurate workaround(http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158804)
- Some component need to perform some initialization before updating it's DOM elements.
- more careful logging and debug will be available
Granular Update Operations
Currently update operations isn't granular at all(relates to previous point). If some error will occurs during update - nothing after this error will be updated. Problems with this:
- any update error of some element update- causes further update fails. (e.g. absence of some element for update in DOM causes malformed XML exception)
- If we will clean-up all the objects before DOM update - we will not be able to recover component functionality after broken update.
- if we will clean-up the object after DOM update - we could not determine which objects which need to be cleaned-up after success and which were failed and should not be cleaned.
Currently all the event names in js are hardcoded, but we suggest to change this to using constants in order to make wrappers more easily maintainable.
Event Context Additions
Event handlers should contain request context with next info:
- options of the request. (e.g. we should know which status component was activated by the request.)
- options of jsf.ajax.request function - should contains params as
"object containing parameters"according to jsf js-docs. But actually options contains named array of parameters and base parameters(execute, render, etc..) mixed together. It's not good solution because names of some parameters could cross with base ones.
- possibility to cancel the request according to some conditions
- Response not contains jsf version. This will probably cause problems with future versions of jsf.
- Need public api to update/remove nodes in order to be used by various third-party frameworks. This will allow to populate events for all affected listeners.
- Possibility to skip response processing. E.g. new request already fired.
Queue Extension Issues
Parallel requests not possible at all. Only one queue is available. Resolved as "won't fix" serial queue required to maintain state
- Requests could not be combined in jsf queue. (e.g. usage onkeypress as ajax request source.)
- Also option like request delay needed in order to make "combine" feature more useful.
- "similarity" flag should be added in order to mark requests which should be combined.
- Form serialization problem. jsf serializes form right after jsf.ajax.request() call. But the form could be changed after previous request completion. So we prefer to serialize form before actual request submit. We should send actual viewState to server and not one which was generated after event but before some updates.
- Timeout feature not present at all
- Allow application developer to use different transport. For example, if application used jQuery widgets, developer would use jQuery transport for JSF requests too.
- Vendor-specific extensions. Application developer should be able to decide which implementation he wants to use in the same way as other JSF plugable modules.
Miscilanious Implementaiton issues
- Method to get all registered listeners not present.
- Current dynamical scripts loading implementation completely blocks the IE browser including allopened tabs.
- Dynamical style loading not possible.
- Browser history support not possible currently. Now we're investigating the ways to add this functionality.
Clarification of execute=@all
Support for generic types in Composite Component's attributes
Note: This document very closely related to : JSF Ajax points for discussion with EG