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

[jsr372-experts] Re: 1099-ViewsInDedicatedFolder

From: Frank Caputo <frank_at_frankcaputo.de>
Date: Tue, 3 Feb 2015 16:22:28 +0100

> Am 03.02.2015 um 15:35 schrieb arjan tijms <arjan.tijms_at_gmail.com>:
>
> Hi,
>
> I'd like to resume the discussion for this issue. Since 1099 talks
> about a default views folder, default mapping the facelets servlet and
> extensionless mapping all at the same time, I thought it was better to
> create a new issue for just loading views. This became:
> https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1359
>
> While this issue is still related to 1099, I'd like to focus there
> only on a /views folder.
>
> The idea of /views is a folder for which the runtime can be sure that
> it contains only top-level views, i.e. no templates, includes,
> composite components or non-JSF files that happen to have the .xhtml
> extension.
>
> As such there is a relation with /contracts, which if I'm not mistaken
> does (or should) only contain templates and resources, but not
> top-level views.

/contracts can have any resource, thus it can have top level views. From a technical perspective a view is just a facelet. Currently a view can be replaced in a contract.

Ciao Frank