commit
dc23335a7a
@ -0,0 +1,16 @@
|
||||
<project copywebapp="true"
|
||||
javaclassdirectory="${project}/target/classes"
|
||||
javasourcedirectory="${project}/src/main/java"
|
||||
layoutdefinintionssavedasxml="true"
|
||||
managedbycctoolset="false"
|
||||
propertyfilesdirectory="${project}/src/main/resources"
|
||||
reloadwebapp="true"
|
||||
webappaddonsdirectory="${project}/webcontentcc"
|
||||
webcontentdeploydirectory="${deploytomcatwebappsdir}/${projectname}"
|
||||
webcontentdirectory="${project}/src/main/webapp"
|
||||
webcontextroot="${projectname}"
|
||||
webhostport="localhost:${deploytomcatport}">
|
||||
<deploycopyinfo fromdir="${project}/target/${projectname}"
|
||||
todir="${projectdeploy}"/>
|
||||
<hotdeploymentpackage name="de.tvo.webportal.view"/>
|
||||
</project>
|
||||
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="test" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="test" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
@ -0,0 +1 @@
|
||||
/target/
|
||||
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pageflow:Pageflow xmlns:pageflow="http://www.sybase.com/suade/pageflow" id="pf17137757171500" configfile="/webportal/src/main/webapp/WEB-INF/faces-config.xml"/>
|
||||
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>webportal</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/main/webapp"/>
|
||||
<classpathentry excluding="**/node_modules/*|**/*.min.js|**/bower_components/*" kind="src" path="target/m2e-wtp/web-resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
@ -0,0 +1,11 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
|
||||
org.eclipse.jdt.core.compiler.compliance=21
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||
org.eclipse.jdt.core.compiler.release=disabled
|
||||
org.eclipse.jdt.core.compiler.source=21
|
||||
@ -0,0 +1,4 @@
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="webportal">
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<property name="context-root" value="webportal"/>
|
||||
<property name="java-output-path" value="/webportal/target/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
@ -0,0 +1,7 @@
|
||||
<root>
|
||||
<facet id="jst.jsf">
|
||||
<node name="libprov">
|
||||
<attribute name="provider-id" value="jsf-no-op-library-provider"/>
|
||||
</node>
|
||||
</facet>
|
||||
</root>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="jst.web" version="3.0"/>
|
||||
<installed facet="jst.jsf" version="2.2"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
<installed facet="java" version="21"/>
|
||||
</faceted-project>
|
||||
@ -0,0 +1 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
||||
@ -0,0 +1 @@
|
||||
Window
|
||||
@ -0,0 +1,2 @@
|
||||
disabled=06target
|
||||
eclipse.preferences.version=1
|
||||
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
|
||||
<intAttribute key="M2_COLORS" value="0"/>
|
||||
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
|
||||
<stringAttribute key="M2_GOALS" value="clean deploy"/>
|
||||
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
|
||||
<booleanAttribute key="M2_OFFLINE" value="false"/>
|
||||
<stringAttribute key="M2_PROFILES" value=""/>
|
||||
<listAttribute key="M2_PROPERTIES"/>
|
||||
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
|
||||
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
|
||||
<intAttribute key="M2_THREADS" value="4"/>
|
||||
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
|
||||
<stringAttribute key="M2_USER_SETTINGS" value=""/>
|
||||
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:webportal}"/>
|
||||
</launchConfiguration>
|
||||
@ -0,0 +1,147 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.tvo</groupId>
|
||||
<artifactId>webportal</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>0.0.1</version>
|
||||
<name>webportal Maven Webapp</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>org.eclnt</id>
|
||||
<url>https://www.captaincasa.com/mavenrepository</url>
|
||||
</repository>
|
||||
<!-- Repository for dependent artifacts -->
|
||||
<repository>
|
||||
<id>mvnrepository.com</id>
|
||||
<url>https://mvnrepository.com/repos/central</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>org.outerj</id>
|
||||
<url>https://maven.atlassian.com/3rdparty/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
|
||||
<properties>
|
||||
<!-- This is the CaptainCasa version to be used. -->
|
||||
<cc.version>20240820_2</cc.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.eclnt</groupId>
|
||||
<artifactId>eclntjsfserverRISC_jakarta</artifactId>
|
||||
<version>${cc.version}</version>
|
||||
</dependency>
|
||||
<!-- optional: addon pacakges -->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.eclnt</groupId>
|
||||
<artifactId>eclntccee_jakarta</artifactId>
|
||||
<version>${cc.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclnt</groupId>
|
||||
<artifactId>eclntpbc_jakarta</artifactId>
|
||||
<version>${cc.version}</version>
|
||||
</dependency>
|
||||
<!-- geis shared project -->
|
||||
<dependency>
|
||||
<groupId>de.tvo</groupId>
|
||||
<artifactId>web_shared</artifactId>
|
||||
<version>1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>
|
||||
javax.xml.bind</artifactId>
|
||||
<groupId>jsr173_api</groupId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>
|
||||
jsr173_api</artifactId>
|
||||
<groupId>javax.xml.bind </groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>
|
||||
jakarta.platform</groupId>
|
||||
<artifactId>
|
||||
jakarta.jakartaee-api</artifactId>
|
||||
<version>9.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>webportal</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.12.1</version>
|
||||
<configuration>
|
||||
<source>21</source>
|
||||
<target>21</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>3.1.1</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!--
|
||||
OPTIONAL COPYING OF TOOLSET
|
||||
|
||||
Copies the tools for the version into /cctoolset-directory of project.
|
||||
You may then directly start it, e.g. by batch file:
|
||||
|
||||
/projectdirectory
|
||||
/cctoolset
|
||||
eclnteditor_springboot_jakarta.war
|
||||
start.bat
|
||||
|
||||
In start.bat:
|
||||
|
||||
java -jar eclnteditor_springboot_jakarta.war configDir=../cctoolsetconfig
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>cctoolset-copy</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>copy</goal></goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.eclnt</groupId>
|
||||
<artifactId>eclnteditor_springboot</artifactId>
|
||||
<version>${cc.version}</version>
|
||||
<type>war</type>
|
||||
<overWrite>true</overWrite>
|
||||
<outputDirectory>${project.basedir}/cctoolset</outputDirectory>
|
||||
<destFileName>eclnteditor_springboot_jakarta.war</destFileName>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,56 @@
|
||||
package managedbeans;
|
||||
|
||||
import org.eclnt.workplace.IWorkpageContainer;
|
||||
import org.eclnt.workplace.WorkpageDispatcher;
|
||||
|
||||
/*
|
||||
* The dispatcher is referenced in faces-config.xml. When changing the package
|
||||
* of the dispatcher, then also update the faces-config.xml link!
|
||||
*/
|
||||
public class Dispatcher extends WorkpageDispatcher
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// constructors
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructor that is used for the root dispatcher, e.g. "#{d}".
|
||||
*/
|
||||
public Dispatcher()
|
||||
{
|
||||
// add any implementation...
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatcher that is used for the sub dispatcher objects, e.g. "#{d.d_1}".
|
||||
*/
|
||||
public Dispatcher(IWorkpageContainer workpageContainer)
|
||||
{
|
||||
super(workpageContainer);
|
||||
// add any implementation...
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// public usage
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* This method needs to be implemented if you want to extend the information
|
||||
* within the page bean browser tool. Otherwise leave unchanged.
|
||||
*/
|
||||
public static DispatcherInfo getStaticDispatcherInfo() { return new DispatcherInfo(Dispatcher.class); }
|
||||
|
||||
/**
|
||||
* Convenience access to access the root dispatcher in the current dialog session.
|
||||
*/
|
||||
public static Dispatcher getDialogSessionInstance()
|
||||
{
|
||||
// correctly casting the generic dispatcher into this class
|
||||
return (Dispatcher)WorkpageDispatcher.getDialogSessionInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRootExpression() {
|
||||
return "#{t}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
|
||||
version="2.2">
|
||||
|
||||
<managed-bean>
|
||||
<managed-bean-name>d</managed-bean-name>
|
||||
<managed-bean-class>managedbeans.Dispatcher</managed-bean-class>
|
||||
<managed-bean-scope>session</managed-bean-scope>
|
||||
</managed-bean>
|
||||
|
||||
</faces-config>
|
||||
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
The default configuration of the servlet context is done in class
|
||||
CCInitialiServlets.
|
||||
-->
|
||||
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
id="WebApp_ID"
|
||||
version="3.1">
|
||||
|
||||
<display-name>CaptainCasa based application</display-name>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>default.html</welcome-file>
|
||||
<welcome-file>default.htm</welcome-file>
|
||||
<welcome-file>default.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
<!-- ********** CONTEXT PARAMETERS *************************************** -->
|
||||
|
||||
<!-- JBoss Deployment - use the reference implementation that comes
|
||||
with CapatainCasa by default -->
|
||||
<context-param>
|
||||
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- ********** LISTENERS ************************************************ -->
|
||||
<listener>
|
||||
<listener-class>org.eclnt.jsfserver.util.CCServletContextListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!--
|
||||
PLEASE PAY ATTNETION: the registration of the CCServletContextListener in the web.xml
|
||||
is sufficient for many servlet engines (e.g. Tomcat). For other servlet engines (Glassfish,
|
||||
JBoss) the regsitration needs to be done through a file "META-INF/services/javax.servlet.ServletContainerInitializer".
|
||||
This file needs to be visible to the webapp classloader, i.e. needs to be part of WEB-INF/classes
|
||||
or part of one of the .jar libraries in WEB-INF/lib.
|
||||
<br><br>
|
||||
A template file is coming with CaptainCasa's eclntjsfserver*.jar file, here:
|
||||
"META-INF/services/javax.servlet.ServletContainerInitializer_template".
|
||||
-->
|
||||
|
||||
<!-- ********** SESSION MANAGEMENT *************************************** -->
|
||||
<!--
|
||||
Changing from COOKIE to URL is possible - but must also be done in system.xml!
|
||||
-->
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout>
|
||||
<tracking-mode>COOKIE</tracking-mode>
|
||||
<cookie-config>
|
||||
<http-only>true</http-only>
|
||||
<secure>true</secure>
|
||||
</cookie-config>
|
||||
</session-config>
|
||||
|
||||
</web-app>
|
||||
@ -0,0 +1,4 @@
|
||||
<hotdeploy>
|
||||
<webappdir name="/eclnthotdeploy/classes"/>
|
||||
<webappdir name="/eclnthotdeploy/lib"/>
|
||||
</hotdeploy>
|
||||
@ -0,0 +1,3 @@
|
||||
<sessiondefaults
|
||||
style="default202206risc"
|
||||
/>
|
||||
@ -0,0 +1,3 @@
|
||||
<system>
|
||||
<sessionmanagement type="COOKIE"/>
|
||||
</system>
|
||||
Loading…
Reference in new issue