ICEfaces 2.0.0 + View Scope + Binding

938 Views Asked by At

I want to migrate a project which is in icefaces 1.7.2 to icefaces 2.0.0. But i am facing problems with binding. Because the entire project uses binding for each and every UI component and it uses request scope in older version. If i want to migrate it, i need to convert the request scope bean to view scope bean. if i do so, binding is not working and it results in unwanted output.

So kindly suggest me a solution to migrate the icefaces 1.7.2 project to icefaces 2.0.0 without using binding or any other ways to migrate the project.

And also window or session scopes are not useful because it consumes more amount of memory space for each user while more number of users access the webpages concurrently.

2

There are 2 best solutions below

4
Mike Braun On

In JSF 2.0 and 2.1, component bindings can't be used with the view scope because of a timing issue.

Bindings are resolved when the component tree is build, but the view scope doesn't become active until view state is applied which happens after the build.

This is fixed in JSF 2.2, but that one hasn't been released yet. If you're feeling adventurous you could try a nightly build.

0
Rodrigo Martin Tato Rothamel On

Or you can use SessionBean... until jsf 2.2 is released