myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1406130 [2/2] - in /myfaces/extensions/scripting/trunk: extscript-core-root/ extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/api/ extscript-core-root/extscript-weld/ extscript-core-root/extscri...
Date Tue, 06 Nov 2012 13:32:18 GMT
Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/faces-config.xml?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/faces-config.xml
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/faces-config.xml
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+ * 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.
+-->
+<faces-config 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-facesconfig_2_0.xsd"
+              version="2.0">
+</faces-config>
\ No newline at end of file

Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/glassfish-web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/glassfish-web.xml?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/glassfish-web.xml
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/glassfish-web.xml
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server
3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
+<glassfish-web-app error-url="">
+  <class-loader delegate="true"/>
+  <jsp-config>
+    <property name="keepgenerated" value="true">
+      <description>Keep a copy of the generated servlet class' java code.</description>
+    </property>
+  </jsp-config>
+</glassfish-web-app>

Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/java/JavaHello.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/java/JavaHello.java?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/java/JavaHello.java
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/java/JavaHello.java
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ */
+
+
+
+import javax.inject.Named;
+
+/**
+ * @author Werner Punz (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ *
+ * Hello world CDI Java Bean for testing purposes
+ */
+@Named
+public class JavaHello
+{
+    String helloWorld = "Hello world from Java Bean";
+
+    public String getHelloWorld()
+    {
+        return helloWorld;
+    }
+
+    public void setHelloWorld(String helloWorld)
+    {
+        this.helloWorld = helloWorld;
+    }
+}

Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/sun-web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/sun-web.xml?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/sun-web.xml
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/sun-web.xml
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD GlassFish Application Server
3.0 Servlet 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd">
+<sun-web-app error-url="">
+  <context-root>/testenterpriseweb2</context-root>
+  <class-loader delegate="false"/>
+  <jsp-config>
+    <property name="keepgenerated" value="true">
+      <description>Keep a copy of the generated servlet class' java code.</description>
+    </property>
+  </jsp-config>
+  <property name="useMyFaces" value="true"/>
+  <property name="useBundledJsf" value="true"/>
+</sun-web-app>
\ No newline at end of file

Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/web.xml?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/web.xml
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/web.xml
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,157 @@
+<?xml version="1.0"?>
+
+<!--
+ * 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.
+-->
+<web-app version="2.5" 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">
+
+
+    <description>Webproject.xml</description>
+
+
+    <!--
+    Note this entry is vital it plugs the ext-scripting system into
+    a myfaces extension point
+    -->
+    <context-param>
+        <description>
+            Initializes the plugins for our groovy handlers
+        </description>
+        <param-name>org.apache.myfaces.FACES_INIT_PLUGINS</param-name>
+        <param-value>org.apache.myfaces.extensions.scripting.jsf.startup.StartupServletContextPluginChainLoader
+        </param-value>
+    </context-param>
+
+
+    <context-param>
+          <description>Additional comma separated loader paths to allow direct editing
on the sources directory instead
+              of the deployment dir
+          </description>
+          <param-name>org.apache.myfaces.extensions.scripting.java.LOADER_PATHS</param-name>
+          <param-value>
+              /Users/werpu2/development/workspace/extscript_trunk/extscript-examples/weld-example/src/main/webapp/WEB-INF/java
+          </param-value>
+      </context-param>
+
+
+    <!--
+    <context-param>
+        <description>Additional comma separated loader paths to allow direct editing
on the sources directory instead
+            of the deployment dir
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.groovy.LOADER_PATHS</param-name>
+        <param-value>
+            /whatever/development/workspace/extensions-scripting3/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/groovy
+        </param-value>
+    </context-param>
+
+
+    <context-param>
+        <description>Additional comma separated loader paths to allow direct editing
on the sources directory instead
+            of the deployment dir
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.java.LOADER_PATHS</param-name>
+        <param-value>
+            /whatever/development/workspace/extensions-scripting3/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/java
+        </param-value>
+    </context-param>
+
+    <context-param>
+        <description>resource paths for our custom JSF2 resource resolver</description>
+        <param-name>org.apache.myfaces.extensions.scripting.resources.LOADER_PATHS</param-name>
+        <param-value>
+            /whatever/development/workspace/extensions-scripting3/extscript-examples/myfaces20-example/src/main/webapp
+        </param-value>
+    </context-param>
+
+    <context-param>
+        <description>a redirecting Facelet resource resolver which allows to pick up
templates and resources from our
+            source dir
+        </description>
+        <param-name>facelets.RESOURCE_RESOLVER</param-name>
+        <param-value>org.apache.myfaces.extensions.scripting.jsf.facelet.MyFacesReroutingResourceResolver</param-value>
+    </context-param>
+    -->
+    <!--
+    <context-param>
+        <description>a comma separated whitelist of root packages which are compiled
those and nothing else
+            will be compiled during all compile stages, all other files stay permanently
as they are
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.PGK_WHITELIST</param-name>
+        <param-value>org.apache.myfaces.groovyloader.blog</param-value>
+    </context-param>
+    -->
+
+
+    <context-param>
+        <param-name>javax.faces.PROJECT_STAGE</param-name>
+        <param-value>Development</param-value>
+    </context-param>
+
+
+    <context-param>
+        <description>State saving method: "client" or "server" (= default)
+            See JSF Specification 2.5.3
+        </description>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>server</param-value>
+    </context-param>
+
+
+    <!--
+    Note, this servlet filter is vital without it Ext-Scripting will not work,
+    if you do not set it you will get an appropriate warning in the command line
+    -->
+    <listener>
+        <listener-class>org.apache.myfaces.extension.scripting.weld.startup.WeldBootstrapListener</listener-class>
+    </listener>
+
+
+    <!-- Listener, to allow Jetty serving MyFaces apps -->
+    <listener>
+        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+    </listener>
+
+    <!-- Faces Servlet -->
+    <servlet>
+        <servlet-name>Faces Servlet</servlet-name>
+        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <!-- Faces Servlet Mapping -->
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>*.jsf</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>/faces/*</url-pattern>
+    </servlet-mapping>
+
+
+    <!-- Welcome files -->
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

Added: myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/helloWorld.xhtml?rev=1406130&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/helloWorld.xhtml
(added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/weld-example/src/main/webapp/helloWorld.xhtml
Tue Nov  6 13:32:16 2012
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * 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.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+        >
+<h:head>
+    <title>Hello World</title>
+</h:head>
+<h:body>
+
+    <h:outputText value="#{javaHello.helloWorld}" />
+
+</h:body>
+</html>

Modified: myfaces/extensions/scripting/trunk/src/site/mdtext/download.mdtext
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/src/site/mdtext/download.mdtext?rev=1406130&r1=1406129&r2=1406130&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/src/site/mdtext/download.mdtext (original)
+++ myfaces/extensions/scripting/trunk/src/site/mdtext/download.mdtext Tue Nov  6 13:32:16
2012
@@ -220,7 +220,7 @@
 
 # Manual Checkout and Build
 
- For manual checkout and building instructions of the Ext-Scripting Trunk  {{{installation.html}Ext-Scripting
installation page}}
+ For manual checkout and building instructions of the Ext-Scripting Trunk  [Ext-Scripting
installation page](./installation.html)
 
 
 # Latest source code from SVN repository
@@ -257,7 +257,7 @@ Verifying signatures
  PGP verification ensures that the file came from a certain person.  We strongly recommend
   you verify your downloads with both PGP and MD5.
 
- The PGP signatures can be verified using {{{http://www.pgpi.org/}PGP}} or
+ The PGP signatures can be verified using [PGP](http://www.pgpi.org/) or
  [GPG](http://www.gnupg.org/).  First download the Apache MyFaces
  [KEYS](http://www.apache.org/dist/myfaces/KEYS)	as well as the <<<asc>>>
signature file
  for the particular distribution. It is important that you get these files from the ultimate



Mime
View raw message