IntelliJ IDEA 2016.2.3 does not recognize the PrimeFaces Framework

1

IntelliJ IDEA 2016.2.3 at the time of running a Java Enterprise- > Web project application- > JSF- > PrimeFaces I do not recognize the libraries of the latter considering that I already add to the library PrimeFaces.Jar version 5.2 The server I am using is Weblogic 12.0. You could indicate with a basic example the steps that I must follow to run without problems PrimeFaces in IntelliJ IDEA.    

<f:view contentType="text/html">
    <h:head>
        <f:facet name="first">
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>PrimeFaces</title>
        </f:facet>
    </h:head>

    <h:body>

        <p:layout fullPage="true">

            <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                Header
            </p:layoutUnit>

            <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                Footer
            </p:layoutUnit>

            <p:layoutUnit position="west" size="175" header="Left" collapsible="true">
                <p:menu>
                    <p:submenu label="Resources">
                        <p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
                        <p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
                        <p:menuitem value="Forum" url="http://forum.primefaces.org/" />
                        <p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />

                    </p:submenu>

                </p:menu>
            </p:layoutUnit>

            <p:layoutUnit position="center">
                Welcome to PrimeFaces
            </p:layoutUnit>

        </p:layout>

    </h:body>

</f:view>

What it shows IntelliJ IDEA

What should show Compiled in Netbeans 8

    
asked by afal3d 02.09.2016 в 06:46
source

1 answer

0

Check the web.xml of your application, specifically the value of welcome-file-list. If it exists, modify it so that it looks like this:

<welcome-file-list>
    <welcome-file>faces/welcomePrimefaces.xhtml</welcome-file>
</welcome-file-list>

(And if it does not exist, add it)

    
answered by 19.12.2016 / 14:37
source