You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2014/06/05 18:12:49 UTC
svn commit: r911443 - in /websites/staging/tomee/trunk: cgi-bin/ content/
content/examples-trunk/datasource-versioning/
content/examples-trunk/myfaces-codi-demo/src/main/java/org/superbiz/myfaces/startup/
content/examples-trunk/myfaces-codi-demo/src/ma...
Author: buildbot
Date: Thu Jun 5 16:12:48 2014
New Revision: 911443
Log:
Staging update by buildbot for tomee
Added:
websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/java/org/superbiz/myfaces/startup/ExtValLifecycleFactory.java
Modified:
websites/staging/tomee/trunk/cgi-bin/ (props changed)
websites/staging/tomee/trunk/content/ (props changed)
websites/staging/tomee/trunk/content/examples-trunk/datasource-versioning/pom.xml
websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/resources/META-INF/persistence.xml
websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/webapp/WEB-INF/faces-config.xml
websites/staging/tomee/trunk/content/examples-trunk/realm-in-tomee/pom.xml
websites/staging/tomee/trunk/content/tomee-mp-getting-started.html
Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun 5 16:12:48 2014
@@ -1 +1 @@
-1599295
+1600692
Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun 5 16:12:48 2014
@@ -1 +1 @@
-1599295
+1600692
Modified: websites/staging/tomee/trunk/content/examples-trunk/datasource-versioning/pom.xml
==============================================================================
Binary files - no diff available.
Added: websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/java/org/superbiz/myfaces/startup/ExtValLifecycleFactory.java
==============================================================================
--- websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/java/org/superbiz/myfaces/startup/ExtValLifecycleFactory.java (added)
+++ websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/java/org/superbiz/myfaces/startup/ExtValLifecycleFactory.java Thu Jun 5 16:12:48 2014
@@ -0,0 +1,137 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.superbiz.myfaces.startup;
+
+import org.apache.myfaces.extensions.validator.core.DefaultExtValCoreConfiguration;
+import org.apache.myfaces.extensions.validator.core.ExtValCoreConfiguration;
+import org.apache.myfaces.extensions.validator.core.proxy.DefaultProxyHelper;
+import org.apache.myfaces.extensions.validator.core.proxy.ProxyHelper;
+import org.apache.myfaces.extensions.validator.core.startup.AbstractStartupListener;
+
+import javax.faces.FacesException;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseListener;
+import javax.faces.lifecycle.Lifecycle;
+import javax.faces.lifecycle.LifecycleFactory;
+import java.util.Iterator;
+
+//TODO remove it after upgrading to ExtVal r8+
+public class ExtValLifecycleFactory extends LifecycleFactory
+{
+ private final LifecycleFactory wrapped;
+
+ public ExtValLifecycleFactory(LifecycleFactory wrapped)
+ {
+ this.wrapped = wrapped;
+ }
+
+ @Override
+ public void addLifecycle(String lifecycleId, Lifecycle lifecycle)
+ {
+ wrapped.addLifecycle(lifecycleId, lifecycle);
+ }
+
+ @Override
+ public Lifecycle getLifecycle(String lifecycleId)
+ {
+ return new LifecycleWrapper(wrapped.getLifecycle(lifecycleId));
+ }
+
+ @Override
+ public Iterator<String> getLifecycleIds()
+ {
+ return wrapped.getLifecycleIds();
+ }
+
+ @Override
+ public LifecycleFactory getWrapped()
+ {
+ return wrapped;
+ }
+
+ private static class LifecycleWrapper extends Lifecycle
+ {
+ private final Lifecycle wrapped;
+ private static boolean firstPhaseListener = true;
+
+ private LifecycleWrapper(Lifecycle wrapped)
+ {
+ this.wrapped = wrapped;
+ }
+
+ @Override
+ public void addPhaseListener(PhaseListener listener)
+ {
+ if (firstPhaseListener)
+ {
+ //forced order independent of any other config
+ firstPhaseListener = false;
+ wrapped.addPhaseListener(new ExtValStartupListener());
+ }
+ wrapped.addPhaseListener(listener);
+ }
+
+ @Override
+ public void execute(FacesContext context) throws FacesException
+ {
+ wrapped.execute(context);
+ }
+
+ @Override
+ public PhaseListener[] getPhaseListeners()
+ {
+ return wrapped.getPhaseListeners();
+ }
+
+ @Override
+ public void removePhaseListener(PhaseListener listener)
+ {
+ wrapped.removePhaseListener(listener);
+ }
+
+ @Override
+ public void render(FacesContext context) throws FacesException
+ {
+ wrapped.render(context);
+ }
+ }
+
+ public static class ExtValStartupListener extends AbstractStartupListener
+ {
+ @Override
+ protected void init()
+ {
+ ExtValCoreConfiguration.use(new DefaultExtValCoreConfiguration() {
+ @Override
+ public ProxyHelper proxyHelper() {
+ return new DefaultProxyHelper() {
+ @Override
+ public boolean isProxiedClass(Class currentClass) {
+ if (currentClass == null || currentClass.getSuperclass() == null) {
+ return false;
+ }
+ return currentClass.getName().startsWith(currentClass.getSuperclass().getName()) &&
+ currentClass.getName().contains("$$");
+ }
+ };
+ }
+ }, true);
+ }
+ }
+}
Modified: websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/resources/META-INF/persistence.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/examples-trunk/myfaces-codi-demo/src/main/webapp/WEB-INF/faces-config.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/examples-trunk/realm-in-tomee/pom.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/tomee-mp-getting-started.html
==============================================================================
--- websites/staging/tomee/trunk/content/tomee-mp-getting-started.html (original)
+++ websites/staging/tomee/trunk/content/tomee-mp-getting-started.html Thu Jun 5 16:12:48 2014
@@ -135,9 +135,9 @@
<p>TomEE provides a maven-archetype for generating a maven based project. This template-project is preconfigured with <code>javaee-api</code> (scope provided) and with the <code>tomee-maven-plugin</code> for starting the application with TomEE.</p>
-<p>The current version of the archetype is '1.6.0'. So the needed command to generate an application is:</p>
+<p>The current version of the archetype is '1.6.0.2'. So the needed command to generate an application is:</p>
-<pre><code>mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven -DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.6.0
+<pre><code>mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven -DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.6.0.2
</code></pre>
<p>The first time you run this command maven downloads the archetype and some parts related to it. Afterwards you see a prompt which allows you to specify the groupId, artifactId, version and package of your application.