Skip to content

Commit

Permalink
FACES-2178 Follow JSF 2.3 convention of having Facelet views under WE…
Browse files Browse the repository at this point in the history
…B-INF/views and composite components under WEB-INF/resources
  • Loading branch information
ngriffin7a committed May 6, 2015
2 parents 1ff965b + 7f535fc commit 98e69d3
Show file tree
Hide file tree
Showing 46 changed files with 28 additions and 28 deletions.
Expand Up @@ -55,17 +55,17 @@
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/views/confirmation.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/confirmation.xhtml</from-view-id>
<navigation-case>
<from-outcome>submit-another-application</from-outcome>
<to-view-id>/views/portletViewMode.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/portletViewMode.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>

Expand Down
Expand Up @@ -56,10 +56,10 @@
</managed-property>
</managed-bean>
<navigation-rule>
<from-view-id>/views/noCustomerSelected.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/noCustomerSelected.xhtml</from-view-id>
<navigation-case>
<from-outcome>ipc.customerSelected</from-outcome>
<to-view-id>/views/bookings.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/bookings.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Expand Up @@ -9,7 +9,7 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/noCustomerSelected.xhtml</value>
<value>/WEB-INF/views/noCustomerSelected.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.bridgeEventHandler</name>
Expand Down
Expand Up @@ -9,7 +9,7 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/customers.xhtml</value>
<value>/WEB-INF/views/customers.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.bridgeEventHandler</name>
Expand Down
Expand Up @@ -9,7 +9,7 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/customers.xhtml</value>
<value>/WEB-INF/views/customers.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.bridgePublicRenderParameterHandler</name>
Expand All @@ -32,7 +32,7 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/bookings.xhtml</value>
<value>/WEB-INF/views/bookings.xhtml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
Expand Down
Expand Up @@ -50,24 +50,24 @@
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>edit-preferences</from-outcome>
<to-view-id>/views/portletEditMode.html?javax.portlet.faces.PortletMode=edit&amp;javax.portlet.faces.WindowState=maximized</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/views/confirmation.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/confirmation.xhtml</from-view-id>
<navigation-case>
<from-outcome>submit-another-application</from-outcome>
<to-view-id>/views/portletViewMode.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/portletViewMode.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
6 changes: 3 additions & 3 deletions demos/bridge/jsf1-portlet/src/main/webapp/WEB-INF/portlet.xml
Expand Up @@ -9,15 +9,15 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/portletViewMode.xhtml</value>
<value>/WEB-INF/views/portletViewMode.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.defaultViewId.edit</name>
<value>/views/portletEditMode.xhtml</value>
<value>/WEB-INF/views/portletEditMode.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.defaultViewId.help</name>
<value>/views/portletHelpMode.xhtml</value>
<value>/WEB-INF/views/portletHelpMode.xhtml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
Expand Down
Expand Up @@ -7,7 +7,7 @@
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/view1.xhtml</value>
<value>/WEB-INF/views/view1.xhtml</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
Expand Down
2 changes: 1 addition & 1 deletion util/src/test/resources/applicant.xhtml
Expand Up @@ -105,7 +105,7 @@
</h:commandButton>
<!-- Test 5.4.2 Encoding PortletMode changes in Faces navigation -->
<h:commandButton
action="/views/portletEditMode.xhtml?javax.portlet.faces.PortletMode=edit&amp;javax.portlet.faces.WindowState=maximized"
action="/WEB-INF/views/portletEditMode.xhtml?javax.portlet.faces.PortletMode=edit&amp;javax.portlet.faces.WindowState=maximized"
immediate="true" value="#{i18n['edit-preferences']}" />
</h:form>
</aui:col>
Expand Down
Expand Up @@ -14,10 +14,10 @@
<phase-listener>com.liferay.faces.util.lifecycle.ViewScopePhaseListener</phase-listener>
</lifecycle>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Expand Up @@ -14,10 +14,10 @@
<phase-listener>com.liferay.faces.util.lifecycle.ViewScopePhaseListener</phase-listener>
</lifecycle>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Expand Up @@ -14,10 +14,10 @@
<phase-listener>com.liferay.faces.util.lifecycle.ViewScopePhaseListener</phase-listener>
</lifecycle>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Expand Up @@ -14,10 +14,10 @@
<phase-listener>com.liferay.faces.util.lifecycle.ViewScopePhaseListener</phase-listener>
</lifecycle>
<navigation-rule>
<from-view-id>/views/portletViewMode.xhtml</from-view-id>
<from-view-id>/WEB-INF/views/portletViewMode.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/views/confirmation.xhtml</to-view-id>
<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>

0 comments on commit 98e69d3

Please sign in to comment.