incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r515274 - in /incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples: ./ blank/ blank/src/ blank/src/main/ blank/src/main/java/ blank/src/main/java/org/ blank/src/main/java/org/apache/ blank/src/main/java/org/apache/myfaces/ blan...
Date Tue, 06 Mar 2007 19:52:47 GMT
Author: matzew
Date: Tue Mar  6 11:52:46 2007
New Revision: 515274

URL: http://svn.apache.org/viewvc?view=rev&rev=515274
Log:
added blank demo and "examples" folder...

Added:
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml   (with
props)
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
  (with props)
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
  (with props)
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
  (with props)
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/index.jspx
    incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/page2.jspx

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml Tue Mar
 6 11:52:46 2007
@@ -0,0 +1,149 @@
+<?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.
+	   
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.myfaces.trinidad</groupId>
+  <artifactId>trinidad-blank</artifactId>
+  <packaging>war</packaging>
+  <version>1.0.0-incubating-SNAPSHOT</version>
+  <name>Apache Trinidad blank demo</name>
+  <url>http://incubator.apache.org/adffaces</url>
+
+  <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not
included by default -->
+  <profiles>
+    <profile>
+      <id>jettyConfig</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>maven-jetty-plugin</artifactId>
+            <version>6.1.0</version>
+            <configuration>
+              <connectors>
+                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+                <port>8181</port>
+                <maxIdleTime>60000</maxIdleTime>
+              </connector>
+              </connectors>            
+              <scanIntervalSeconds>2</scanIntervalSeconds>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+
+      <dependencies>
+        <dependency>
+          <groupId>javax.servlet</groupId>
+          <artifactId>jsp-api</artifactId>
+          <version>2.0</version>
+          <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>tomcat</groupId>
+          <artifactId>jasper-compiler</artifactId>
+          <version>5.5.9</version>
+          <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>tomcat</groupId>
+          <artifactId>jasper-runtime</artifactId>
+          <version>5.5.9</version>
+          <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>tomcat</groupId>
+          <artifactId>jasper-compiler-jdt</artifactId>
+          <version>5.5.9</version>
+          <scope>compile</scope>
+        </dependency>
+      </dependencies>
+
+      <pluginRepositories>
+      <!-- Repository to get the jetty plugin -->
+        <pluginRepository>
+          <id>mortbay-repo</id>
+          <name>mortbay-repo</name>
+          <url>http://www.mortbay.org/maven2/snapshot</url>
+        </pluginRepository>
+      </pluginRepositories>
+
+    </profile>
+  </profiles>
+
+  <repositories>
+    <repository>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <id>apache-maven-snapshots</id>
+      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+    </repository>
+  </repositories>
+
+  <!-- Project dependencies -->
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.myfaces.core</groupId>
+      <artifactId>myfaces-api</artifactId>
+      <version>1.1.5</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.myfaces.core</groupId>
+      <artifactId>myfaces-impl</artifactId>
+      <version>1.1.5</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <!-- Apache Trinidad -->
+    <dependency>
+      <groupId>org.apache.myfaces.trinidad</groupId>
+      <artifactId>trinidad-api</artifactId>
+      <version>1.0.0-incubating-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.myfaces.trinidad</groupId>
+      <artifactId>trinidad-impl</artifactId>
+      <version>1.0.0-incubating-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.0</version>
+      <scope>test</scope>
+    </dependency>
+
+  </dependencies>
+</project>
\ No newline at end of file

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
(added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
Tue Mar  6 11:52:46 2007
@@ -0,0 +1,67 @@
+/*
+ *  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.apache.myfaces.trinidad.blank;
+
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
+import org.apache.myfaces.trinidad.util.Service;
+
+/**
+ * A typical simple backing bean, that is backed to <code>helloworld.jsp</code>
+ * 
+ */
+public class HelloWorldBacking
+{
+
+  //properties
+  private String _name;
+
+  /**
+   * default empty constructor
+   */
+  public HelloWorldBacking()
+  {   
+  }
+
+  //-------------------getter & setter
+  public String getName()
+  {
+    return _name;
+  }
+
+  public void setName(String name)
+  {
+    this._name = name;
+  }
+
+  /**
+   * Method that is backed to a submit button of a form.
+   */
+  public String send()
+  {
+    FacesContext facesContext = FacesContext.getCurrentInstance();
+    ExtendedRenderKitService service = (ExtendedRenderKitService)
+      Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
+    service.addScript(facesContext, "alert('Script added by ExtendedRenderKitService')");
+
+    //do real logic
+    return ("success");
+  }
+}
\ No newline at end of file

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/java/org/apache/myfaces/trinidad/blank/HelloWorldBacking.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
(added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
Tue Mar  6 11:52:46 2007
@@ -0,0 +1,62 @@
+<?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.
+	   
+-->
+<!DOCTYPE faces-config PUBLIC
+  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
+<faces-config>
+  
+  <application>
+    <!-- Use the Trinidad RenderKit -->
+    <default-render-kit-id>
+      org.apache.myfaces.trinidad.core
+    </default-render-kit-id>
+  </application>
+
+  <!-- Global preferences object that proxies to others -->
+  <managed-bean>
+    <managed-bean-name>helloWorldBacking</managed-bean-name>
+    <managed-bean-class>
+       org.apache.myfaces.trinidad.blank.HelloWorldBacking
+    </managed-bean-class>
+    <managed-bean-scope>
+       request
+    </managed-bean-scope>
+  </managed-bean>
+
+  <!-- navigation rules for index.jspx -->
+  <navigation-rule>
+    <from-view-id>/index.jspx</from-view-id>
+    <navigation-case>
+      <from-outcome>success</from-outcome>
+      <to-view-id>/page2.jspx</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+	
+  <!-- navigation rules for page2.jspx -->
+  <navigation-rule>
+    <from-view-id>/page2.jspx</from-view-id>
+    <navigation-case>
+      <from-outcome>back</from-outcome>
+      <to-view-id>/index.jspx</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
+</faces-config>
\ No newline at end of file

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
(added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
Tue Mar  6 11:52:46 2007
@@ -0,0 +1,118 @@
+<?xml version = '1.0' encoding = 'ISO-8859-1'?>
+<!--
+    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 xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+  <!-- Use client-side state saving.  In Trinidad, it is an
+       optimized, token-based mechanism that is almost always a
+       better choice than the standard JSF server-side state saving. -->
+  <context-param>
+    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+    <param-value>client</param-value>
+    <!--param-value>server</param-value-->
+  </context-param>
+
+  <!-- Trinidad by default uses an optimized client-side state saving
+       mechanism. To disable that, uncomment the following -->
+  <!--context-param>
+    <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
+    <param-value>all</param-value>
+  </context-param-->
+
+  <!-- Trinidad also supports an optimized strategy for caching some
+   view state at an application level, which significantly improves
+   scalability.  However, it makes it harder to develop (updates to
+   pages will not be noticed until the server is restarted), and in
+   some rare cases cannot be used for some pages (see Trinidad
+   documentation for more information) -->
+  <context-param>
+    <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
+    <param-value>false</param-value>
+  </context-param>
+
+  <!-- If this parameter is enabled, Trinidad will automatically
+       check the modification date of your JSPs, and discard saved
+       state when they change;  this makes development easier,
+       but adds overhead that should be avoided when your application
+       is deployed -->
+  <context-param>
+    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
+    <param-value>true</param-value>
+  </context-param>
+
+  <!-- Enables Change Persistence at a session scope.  By default,
+       Change Persistence is entirely disabled. The ChangeManager is
+       an API, which can persist component modifications (like,
+       is a showDetail or tree expanded or collapsed). For providing
+       a custom Change Persistence implementation inherit from the 
+       Trinidad API's ChangeManager class. As the value you have 
+       to use the fullqualified class name. -->
+  <context-param>
+    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
+    <param-value>session</param-value>
+  </context-param>
+
+  <filter>
+    <filter-name>trinidad</filter-name>
+    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>trinidad</filter-name>
+    <servlet-name>faces</servlet-name>
+  </filter-mapping>
+
+  <!-- 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-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+  <!-- resource loader servlet -->
+  <servlet>
+    <servlet-name>resources</servlet-name>
+    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
+  </servlet>
+
+  <!-- Faces Servlet Mappings -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>/faces/*</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>resources</servlet-name>
+    <url-pattern>/adf/*</url-pattern>
+  </servlet-mapping>
+
+
+  <!-- Welcome Files -->
+  <welcome-file-list>
+    <welcome-file>index.jspx</welcome-file>
+  </welcome-file-list>
+
+</web-app>
\ No newline at end of file

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/index.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/index.jspx?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/index.jspx
(added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/index.jspx
Tue Mar  6 11:52:46 2007
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    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.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Apache Trinidad Blank Demo">
+       <tr:form>
+       
+        <tr:panelPage>
+          <tr:inputText label="Your name" id="input1" value="#{helloWorldBacking.name}"
required="true"/>
+          <tr:commandButton id="button1" text="press me" action="#{helloWorldBacking.send}"
/>
+        </tr:panelPage>
+       
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>
\ No newline at end of file

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/page2.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/page2.jspx?view=auto&rev=515274
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/page2.jspx
(added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/blank/src/main/webapp/page2.jspx
Tue Mar  6 11:52:46 2007
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    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.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Apache Trinidad Blank Demo">
+       <tr:form>
+       
+        <tr:panelPage>
+          <tr:outputText id="input1" value="Hello #{helloWorldBacking.name}. We hope you
enjoy Apache MyFaces Trinidad"/>
+          <tr:commandLink id="link" text="GO HOME" action="back" />
+        </tr:panelPage>
+       
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>
\ No newline at end of file



Mime
View raw message