users@javaserverfaces.java.net

multiple view instances?

From: Jay Houghton <jhoughton_at_limebrokerage.com>
Date: Tue, 15 May 2007 08:24:22 -0400

Hi,

I'm looking to run multiple instances of the same view using session
scope. Is this something that the 1.2RI supports? It would require
distinct backing beans and compontent tree per view instance, correct?

This is something that is addressed for Portals via a JSF bridge (like
myfaces or portal-bridges); but I'm not using a JSR168 container.

I've seen mention of a "window identifier" in the 1.2 spec and some RI
patches (Issue 28
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=28) but the
latest RI code no longer contains reference to this functionality
(removed?). I've attempted to test this case, bringing up the same view
in two frames (or two browsers - same session, or two divs using Dojo).
But the state is still shared between the two views.

What configuration and/or calls need to be made to support multiple
instances of the same view?

Using request scope isn't an option I'd like to consider, as I'd like
some of these views use state and have some non-trivial navigation.

I see that Tiles may have solved this also, by implementing a
ViewHandler to manipulate the view ids.

Any help/pointers is much appreciated.

-Jay