users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: [1142-ResourceLibraryContracts] config options: property name, time and location (was: [971-MultiTemplate])

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Mon, 12 Nov 2012 14:35:46 -0500

Hi

2012/11/12 Frank Caputo <frank_at_frankcaputo.de>:
> Hi Leonardo,
>
> Am 12.11.2012 um 19:23 schrieb Leonardo Uribe <lu4242_at_gmail.com>:
>
>>>> CONDITIONALLY_RESOLVED: Define a read-only property located on
>>>> UIViewRoot whose type is List<String>. Specify that if it is not set,
>>>> it must return an empty List. This property is accessible by doing
>>>> FacesContext.getViewRoot().getResourceLibraryContracts().
>>>
>>> OK.
>>>
>>
>> +1. Just remember each string should have the following structure:
>>
>> [contract-library-name]:[contract-resource-prefix]
>>
>> For example
>>
>> my.custom.resourceLibraryContract:implA
>>
>> and so on.
>
> I thought the contractLibraryName and resourcePrefix is the same.
>

The contractLibraryName defines which contract implementation the
resourcePrefix relates to. In that way, resourceLibraryContracts has
both the contracts to use and the implementations of those contracts.

regards,

Leonardo

> Ciao Frank
>