dev@javaserverfaces.java.net

Re: [mojarra trunk] support for "virtual" views

From: Jason Lee <jason_at_steeplesoft.com>
Date: Tue, 31 Mar 2009 08:15:55 -0500

Hi, Martin. Have you tried a nightly? I had a similar issue with
JSFTemplating (which can, and often does in our usage, pull the view
markup from the classpath as opposed to the doc root). Ryan Lubke
filed two issues on the topic, which Ed Burns addressed. We've not
had any further issue with that as far as I know.

On Mar 31, 2009, at 7:02 AM, Martin Kočí wrote:

> Hi,
>
> JSF libraries for 1.2 version can use "virtual" view - those views are
> not real resources like .jsp or .xhtml but something created
> programatically. For example Trinidad uses __ADFv__ view for dialogs
> (popups).
>
> But there is a new check for resources in mojarra trunk:
> com.sun.faces.util.Util.deriveViewId(FacesContext, String) - if
> resource
> doesn't exist viewId will be null.
>
> What is the best way to deal with this:
>
> 1) implementing custom ViewHandler.deriveViewId(FacesContext, String)
>
> 2) using ExternalContextWrapper and return not null for this case
>
> 3) implementing own VDL
>
>
> Does UIViewRoot with null-viewId mean something special for JSF?
>
>
>
> Thanks,
>
> Martin
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>

Jason Lee, SCJP
Senior Java Developer, Sun Microsystems
Mojarra and Mojarra Scales Dev Team
https://mojarra.dev.java.net
https://scales.dev.java.net
http://blogs.steeplesoft.com