jsr344-experts@javaserverfaces-spec-public.java.net

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

From: Edward Burns <edward.burns_at_oracle.com>
Date: Thu, 15 Nov 2012 19:46:01 -0800

>>>>> On Wed, 14 Nov 2012 20:55:48 +0100, Frank Caputo <frank_at_frankcaputo.de> said:

EB> I'd also like to introduce a convention. If there are no
EB> <resource-library-contracts> in the application configuration resources,
EB> the templates of any resource library contracts are implicitly available to
EB> be used template clients anywhere in the app.

FC> I really love convention over configuration, but I don't understand
FC> this. E.g. if the runtime finds contractA and contractB with the
FC> same resources, which one is chosen?

I'll explicitly say something like the following.

  In the case where there is no <resource-library-contracts> element in
  the application configuration resources, ordering of contracts is
  unspecified, which may lead to unexpected behavior in the case of
  multiple contracts that have the same contract declaration

Basically, that's why it's just a convention, and one reason why you'd
need configuration.

Ed

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