Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1e750d8a
authored
Feb 08, 2017
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prettyfaces for url redirecting for angular integration
1 parent
a1ec3ca7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
50 deletions
code/moya-mgmt-web/WebContent/WEB-INF/pretty-config.xml
code/moya-mgmt-web/WebContent/WEB-INF/web.xml
code/moya-mgmt-web/pom.xml
code/moya-web/WebContent/WEB-INF/pretty-config.xml
code/moya-web/WebContent/WEB-INF/web.xml
code/moya-web/pom.xml
code/moya-mgmt-web/WebContent/WEB-INF/pretty-config.xml
deleted
100644 → 0
View file @
a1ec3ca
<pretty-config
xmlns=
"http://ocpsoft.org/prettyfaces/3.3.3"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://ocpsoft.org/prettyfaces/3.3.3"
>
<!--
// Tell prettyfaces to use this bean when the pattern matches and show the manageUsers page. Also support a Query Param (cid).
@URLMapping(id = "manageUsers", pattern = "/us2ers/manage", viewId = "/pages/users/manageUsers.xhtml")
...
@SuppressWarnings("unused")
@URLQueryParameter("cid")
private String cid;
TAI
<url-mapping id="some-page">
<pattern value="/some/page" />
<query-param name="cid">#{convid.cid}</query-param>
<view-id value="/some/page.xhtml" />
</url-mapping>
-->
<url-mapping
id=
"index"
>
<pattern
value=
"/index"
/>
<view-id
value=
"/index.xhtml"
/>
</url-mapping>
</pretty-config>
\ No newline at end of file
code/moya-mgmt-web/WebContent/WEB-INF/web.xml
View file @
1e750d8
...
...
@@ -82,21 +82,9 @@
<form-error-page>
/auth/loginError.jsf
</form-error-page>
</form-login-config>
</login-config>
<filter>
<filter-name>
Pretty Filter
</filter-name>
<filter-class>
com.ocpsoft.pretty.PrettyFilter
</filter-class>
<async-supported>
true
</async-supported>
</filter>
<filter-mapping>
<filter-name>
PrimefacesFileupload
</filter-name>
<servlet-name>
Faces Servlet
</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>
Pretty Filter
</filter-name>
<url-pattern>
/*
</url-pattern>
<dispatcher>
FORWARD
</dispatcher>
<dispatcher>
REQUEST
</dispatcher>
<dispatcher>
ERROR
</dispatcher>
<dispatcher>
ASYNC
</dispatcher>
</filter-mapping>
</web-app>
\ No newline at end of file
code/moya-mgmt-web/pom.xml
View file @
1e750d8
...
...
@@ -29,11 +29,7 @@
<artifactId>
primefaces
</artifactId>
<version>
${primefaces.version}
</version>
</dependency>
<dependency>
<groupId>
com.ocpsoft
</groupId>
<artifactId>
prettyfaces-core
</artifactId>
<version>
3.3.2
</version>
</dependency>
</dependencies>
<parent>
<groupId>
fi.codecrew.moya
</groupId>
...
...
code/moya-web/WebContent/WEB-INF/pretty-config.xml
0 → 100644
View file @
1e750d8
<pretty-config
xmlns=
"http://ocpsoft.org/schema/rewrite-config-prettyfaces"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd"
>
<rewrite
match=
"^/angular/.*"
substitute=
"/angular.jsf"
redirect=
"chain"
/>
</pretty-config>
\ No newline at end of file
code/moya-web/WebContent/WEB-INF/web.xml
View file @
1e750d8
...
...
@@ -20,6 +20,7 @@
</resource-ref>
<!-- Handle hostname filter BEFORE jsonp so errors are transmitted correctly -->
<absolute-ordering>
<name>
com_ocpsoft_rewrite
</name>
<name>
jsonpFilter
</name>
<name>
hostnameFilter
</name>
</absolute-ordering>
...
...
code/moya-web/pom.xml
View file @
1e750d8
...
...
@@ -12,7 +12,7 @@
<configuration>
<warSourceDirectory>
WebContent
</warSourceDirectory>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<packagingIncludes>
WEB-INF/lib/moya-restpojo*,WEB-INF/lib/primefaces*,WEB-INF/lib/all-themes-*.jar,**/*.xml,**/*.xhtml,**/*.properties,**/*.class,**/*.png,**/*.css,**/*.js,resources/*,swagger/**
</packagingIncludes>
<packagingIncludes>
WEB-INF/lib/
rewrite-*.jar,WEB-INF/lib/
moya-restpojo*,WEB-INF/lib/primefaces*,WEB-INF/lib/all-themes-*.jar,**/*.xml,**/*.xhtml,**/*.properties,**/*.class,**/*.png,**/*.css,**/*.js,resources/*,swagger/**
</packagingIncludes>
</configuration>
</plugin>
</plugins>
...
...
@@ -63,7 +63,16 @@
<version>
2.16
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.ocpsoft.rewrite
</groupId>
<artifactId>
rewrite-servlet
</artifactId>
<version>
3.4.1.Final
</version>
</dependency>
<dependency>
<groupId>
org.ocpsoft.rewrite
</groupId>
<artifactId>
rewrite-config-prettyfaces
</artifactId>
<version>
3.4.1.Final
</version>
</dependency>
</dependencies>
<parent>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment