myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1738517 - in /myfaces/tobago/branches/tobago-3.0.x/tobago-example: pom.xml tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java tobago-example-demo/src/test/tomee/conf/tomcat-users.xml
Date Mon, 11 Apr 2016 06:49:27 GMT
Author: lofwyr
Date: Mon Apr 11 06:49:27 2016
New Revision: 1738517

URL: http://svn.apache.org/viewvc?rev=1738517&view=rev
Log:
tomee login example

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/pom.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/test/tomee/conf/tomcat-users.xml

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/pom.xml?rev=1738517&r1=1738516&r2=1738517&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/pom.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/pom.xml Mon Apr 11 06:49:27 2016
@@ -82,6 +82,7 @@
           <tomeeClassifier>plus</tomeeClassifier>
           <!--<tomeeHttpPort>9090</tomeeHttpPort>-->
           <!--<context>/demo</context>-->
+          <config>${project.basedir}/src/test/tomee/conf</config>
         </configuration>
       </plugin>
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java?rev=1738517&r1=1738516&r2=1738517&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Login.java
Mon Apr 11 06:49:27 2016
@@ -30,7 +30,8 @@ public class Login {
     request.login(username, password);
     LOG.info("Successful login user: '{}'", username);
 
-    response.sendRedirect(response.encodeRedirectURL("/content/30-concept/80-security/content-security-policy.xhtml"));
+    response.sendRedirect(response.encodeRedirectURL(
+            request.getContextPath() + "/faces/content/30-concept/80-security/content-security-policy.xhtml"));
   }
 
   public void logout() throws ServletException, IOException {

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/test/tomee/conf/tomcat-users.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/test/tomee/conf/tomcat-users.xml?rev=1738517&r1=1738516&r2=1738517&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/test/tomee/conf/tomcat-users.xml
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/test/tomee/conf/tomcat-users.xml
Mon Apr 11 06:49:27 2016
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='utf-8'?>
 
 <tomcat-users>
-  <role rolename="addressbook-user"/>
+  <role rolename="demo-user"/>
   <user username="guest" password="guest" roles="demo-user"/>
   <user username="admin" password="admin" roles="demo-user"/>
 </tomcat-users>



Mime
View raw message