users@javaserverfaces.java.net

Re: multiple view instances?

From: noah <iamnoah_at_gmail.com>
Date: Tue, 15 May 2007 16:48:53 -0500

On 5/15/07, Jay Houghton <jhoughton_at_limebrokerage.com> wrote:
> 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.
>

You're looking for something like Seam's conversationScope or Apache
Trinidad's pageFlowScope. I believe Trinidad works in 1.2 without any
major issues. Seam is supposed to as well.

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>