Load Manhatan templete as an Web Project?

Post Reply
chatzipavlidis
Posts: 1
Joined: 24 Nov 2020, 20:12

24 Nov 2020, 21:07

Hello everyone. I m new to web development and i 've just started building simple web apps in JSF using Eclipse . So i bought this Templete and i can't figure out how to set it up on Wildfly. Is there a guide, how to create the Demo page so i can start ?

mert.sincan
Posts: 4638
Joined: 29 Jun 2013, 12:38

02 Dec 2020, 10:22

Hi,

Our sample demo uses maven. Therefore, you need to remove maven dependencies from pom.xml and web.xml.

Code: Select all

//Remove the following lines from pom.xml
<plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>9.4.27.v20200227</version>
                <configuration>
                    <webAppConfig>
                        <contextPath>/manhattan</contextPath>
                    </webAppConfig>
                    <scanIntervalSeconds>5</scanIntervalSeconds>
                    <webXml>${project.build.directory}/web.xml</webXml>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.2.0</version>
                <configuration>
                    <webResources>
                        <resource>
                            <filtering>true</filtering>
                            <directory>src/main/webapp</directory>
                            <includes>
                                <include>**/web.xml</include>
                            </includes>
                        </resource>
                    </webResources>
                    <warSourceDirectory>src/main/webapp</warSourceDirectory>
                    <webXml>${project.build.directory}/web.xml</webXml>
                </configuration>
            </plugin>

Code: Select all

//Remove the following line from web.xml
<listener>
        <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
   </listener>
Then, please provide css files using SASS command and then run server.

Best Regards,

Post Reply

Return to “Manhattan - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests