I think that should be possible... how would you recommend I point
VDLFactory at the file on the classpath. Is there a way to get it to accept
a URL, or a resource?
Util.notNull("context", context);
String actualViewId = derivePhysicalViewId(context, viewId, false);
return
vdlFactory.getViewDeclarationLanguage(actualViewId).createView(context,
actualViewId);
Or do I even need to do this as long as all of the Handlers know to
translate the custom ViewId into something real?
I guess I'm a little lost since it looks like everything I would do to
"Build a UIViewRoot" requires a String viewId... which I'm not sure would
let me do what I need to with the classpath.
--Lincoln
On Thu, Nov 5, 2009 at 4:30 PM, Jason Lee <jasondlee_at_sun.com> wrote:
> On Nov 5, 2009, at 3:07 PM, webtier_at_javadesktop.org wrote:
>
> I'm wondering what it would take to load a JSF2 .xhtml View File from the
> Classpath included in a JAR file, and set that as the ViewRoot.
>
> It's got to be possible, but how?
>
>
> Can you decorate the ViewHandler and override createView() ?
>
> <http://www.java.com> * Jason Lee *
> Senior Java Developer
> GlassFish Administration Console
>
> *Sun Microsystems, Inc.*
> Phone x31197/+1 405-343-1964
> Email jasondlee_at_sun.com
> Blog http://blogs.sun.com/jasondlee
> Blog http://blogs.steeplesoft.com
>
>