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

[jsr372-experts] JSF 2.3 ViewDeclarationLanguage.getViews(...) requires define web config param for JSP VDL (.jsp)

From: Leonardo Uribe <leonardo.uribe_at_irian.at>
Date: Fri, 24 Mar 2017 13:26:58 -0500

Hi Kito

I tried this:

        ViewDeclarationLanguage jspVDL =
facesContext.getApplication().getViewHandler()
                .getViewDeclarationLanguage(facesContext, "/simple.jsp");

        Stream<String> stream = jspVDL.getViews(facesContext,
"/",ViewVisitOption.RETURN_AS_MINIMAL_IMPLICIT_OUTCOME);
        stream.forEach(s -> {
            System.out.println(s);
        });

This should work, but it doesn't return anything (empty stream). I checked
getAllViewDeclarationLanguages() to see if JSP VDL is missing and it's
there.

So, the answer is Mojarra is not doing anything. Is it ok? could be but if
that so, why bother bundle JSP VDL in JSF 2.3? In my eyes this is a bug,
but my only concern is get it right in MyFaces.

regards,

Leonardo Uribe

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>