dev@javaserverfaces.java.net

[mojarra trunk] support for "virtual" views

From: Martin Kočí <Martin.Koci_at_aura.cz>
Date: Tue, 31 Mar 2009 14:02:21 +0200

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