users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: [1142-ResourceLibraryContracts] How the property is used (was: [971-MultiTemplate])

From: Edward Burns <edward.burns_at_oracle.com>
Date: Tue, 13 Nov 2012 19:16:18 -0800

>>>>> On Wed, 14 Nov 2012 00:57:45 +0100, Ian Hlavats <ian_at_tarantulaconsulting.com> said:

IH> Hi Ed,
IH> I hope that the resource library contract spec will support scenarios where resources can be loaded from outside the filesystem or classpath, e.g. from any InputStream (JCR node, database, etc).

IH> The use case I have in mind is where an end user uploads resources as part of a template/resource contract and later assigns the template/resource contract to one or more JSF views at runtime.

IH> Is this possible in the current spec?

Yes, with the tried and true trick of decorating the ResourceHandler.

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/