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

[jsr372-experts] Re: 1099-ViewsInDedicatedFolder

From: Frank Caputo <frank_at_frankcaputo.de>
Date: Wed, 4 Feb 2015 14:57:32 +0100

Hi Leonardo,


> Am 04.02.2015 um 04:35 schrieb Leonardo Uribe <leonardo.uribe_at_irian.at>:
>
> …snip

thanks for the clarification.

>
> One proposal could be this:
>
> - Allow load views from /views folder
> - Allow load views from META-INF/views from the classpath.
> - Allow load views from a resource library contract like this:
> <contract-name>/views . This would make the libraryName "views"
> reserved, so we need to take care about this to do not leak views from
> createResource(...) (potential security hazard).
> - Keep the existing rules as is.

I don’t like the /views folder, because this forces JSF developers to structure their facelets technically. If the developers work domain driven, they usually structure by the domain. E.g. a folder /account will have all facelets belonging to the domain account including the corresponding views.

Ciao Frank