/
web-liferay.xml
94 lines (86 loc) · 3.34 KB
/
web-liferay.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0" encoding="UTF-8"?>
<!-- BEGIN: LIFERAY FIX FOR https://issues.apache.org/jira/browse/PORTLETBRIDGE-230 -->
<!-- <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'> -->
<!-- <web-app> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<!-- END: LIFERAY FIX -->
<display-name>bridge_Test_web_section3-2-render-policy-always-delegate</display-name>
<!-- BEGIN: LIFERAY PORTAL -->
<context-param>
<param-name>portletConfigWrapperClass</param-name>
<param-value>com.liferay.faces.bridge.tck.portlet.PortletConfigWrapper</param-value>
</context-param>
<!-- END: LIFERAY PORTAL -->
<!-- BEGIN: LIFERAY FACES BRIDGE -->
<context-param>
<param-name>com.liferay.faces.bridge.bridgeRequestScopeAjaxEnabled</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.liferay.faces.bridge.bridgeRequestScopePreserved</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.liferay.faces.bridge.renderRedirectEnabled</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.liferay.faces.bridge.optimizePortletNamespace</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.liferay.faces.bridge.manageIncongruities</param-name>
<param-value>false</param-value>
</context-param>
<!-- END: LIFERAY FACES BRIDGE -->
<!-- BEGIN: LIFERAY REQUIREMENTS FOR MOJARRA -->
<!-- JAVASERVERFACES-3031 -->
<!--
<context-param>
<param-name>com.sun.faces.namespaceParameters</param-name>
<param-value>true</param-value>
</context-param>
-->
<!-- END: LIFERAY REQUIREMENTS FOR MOJARRA -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>
<context-param>
<param-name>javax.portlet.faces.RENDER_POLICY</param-name>
<param-value>ALWAYS_DELEGATE</param-value>
</context-param>
<!-- Faces Servlet -->
<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<!-- Faces Servlet Mappings -->
<!--
In this demo application, I chose to use suffix mapping. I did this because it makes urls
in the portlet world look nicer in the source. The portlet url should be the same
reguardless.
-->
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<!-- BEGIN: LIFERAY FACES BRIDGE -->
<!-- Prevent direct access to Facelet view XHTML by the userAgent (browser). -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Facelet View XHTML</web-resource-name>
<url-pattern>*.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>nobody</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>nobody</role-name>
</security-role>
<!-- END: LIFERAY FACES BRIDGE -->
</web-app>