RichFaces components + JSF 2.2 Stateless views: how to test?

Jiri Stefek jstefek at redhat.com
Thu Jan 30 04:02:26 EST 2014


Hi guys,

the JSF 2.2 has introduced a new feature of stateless views. It is done by setting a transient attribute of f:view to true. All components in such tree become stateless.

Some features of using stateless views [1, 2]:
* It should bring memory and performance advantages (bigger views -> bigger advantage).
* Preventing of view expired exceptions.
(* The @ViewScoped bean in such view will behave like @RequestScoped.)
* no state is saved and applied to components


Questions:
How should we test this feature with RichFaces components and which components should be tested?
Some components will probably not fully work since they are dependent on its state (tables?), how do we handle this? By throwing an exception?


Regards,

JS



[1] http://jdevelopment.nl/jsf-22/#1055
[2] http://jsfcorner.blogspot.cz/2013/05/jsf-22-stateless-views-explained.html


More information about the richfaces-dev mailing list