myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r992358 - in /myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20: ./ src/main/java/org/apache/myfaces/blank2/ src/main/java/org/apache/myfaces/examples/ src/main/java/org/apache/myfaces/examples/conversation/grouped...
Date Fri, 03 Sep 2010 16:26:42 GMT
Author: struberg
Date: Fri Sep  3 16:26:41 2010
New Revision: 992358

URL: http://svn.apache.org/viewvc?rev=992358&view=rev
Log:
EXTCDI-49 add a list sample

* also downgrade to jetty 6.1.22 which is bug free 
* use the geronimo EL-2.2. jasper-el version to allow f:viewParam


Added:
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/
      - copied from r992313, myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/blank2/
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleList.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleListEntry.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleList.xhtml
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleListEntry.xhtml
Removed:
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/blank2/
Modified:
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/pom.xml
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationDemoBean1.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationGroup1.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean1.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean2.java
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/WEB-INF/web.xml
    myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/helloMyFacesCodi.xhtml

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/pom.xml?rev=992358&r1=992357&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/pom.xml (original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/pom.xml Fri
Sep  3 16:26:41 2010
@@ -35,6 +35,10 @@
         <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <properties>
+        <maven.jetty.plugin.version>6.1.22</maven.jetty.plugin.version>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>org.apache.myfaces.extensions.cdi.core</groupId>
@@ -204,7 +208,7 @@
                 </repository>
             </repositories>
         </profile>
-    
+
         <profile>
             <id>jettyConfig</id>
             <build>
@@ -212,11 +216,35 @@
                     <plugin>
                         <!--This plugin allows to run the example using mvn jetty:run
-->
                         <groupId>org.mortbay.jetty</groupId>
-                        <artifactId>jetty-maven-plugin</artifactId>
+                        <artifactId>maven-jetty-plugin</artifactId>
                         <version>${maven.jetty.plugin.version}</version>
                         <configuration>
                             <scanIntervalSeconds>10</scanIntervalSeconds>
                         </configuration>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.apache.geronimo.specs</groupId>
+                                <artifactId>geronimo-el_2.2_spec</artifactId>
+                                <version>1.0</version>
+                            </dependency>
+                            <dependency>
+                                <groupId>org.apache.geronimo.ext.tomcat</groupId>
+                                <artifactId>jasper-el</artifactId>
+                                <version>7.0.0.1</version>
+                            </dependency>
+                            <dependency>
+                                <groupId>org.mortbay.jetty</groupId>
+                                <artifactId>jsp-2.1-jetty</artifactId>
+                                <version>${maven.jetty.plugin.version}</version>
+                                <type>jar</type>
+                                <scope>test</scope>
+                            </dependency>
+                            <dependency>
+                                <groupId>jstl</groupId>
+                                <artifactId>jstl</artifactId>
+                                <version>1.2</version>
+                            </dependency>
+                        </dependencies>
                     </plugin>
                 </plugins>
             </build>

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationDemoBean1.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationDemoBean1.java?rev=992358&r1=992313&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationDemoBean1.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationDemoBean1.java
Fri Sep  3 16:26:41 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.myfaces.blank2.conversation.grouped;
+package org.apache.myfaces.examples.conversation.grouped;
 
 import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.WindowContext;
 import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.Conversation;

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationGroup1.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationGroup1.java?rev=992358&r1=992313&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationGroup1.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/grouped/ConversationGroup1.java
Fri Sep  3 16:26:41 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.myfaces.blank2.conversation.grouped;
+package org.apache.myfaces.examples.conversation.grouped;
 
 /**
  * @author Gerhard Petracek

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean1.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean1.java?rev=992358&r1=992313&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean1.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean1.java
Fri Sep  3 16:26:41 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.myfaces.blank2.conversation.viewaccess;
+package org.apache.myfaces.examples.conversation.viewaccess;
 
 import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ViewAccessScoped;
 

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean2.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean2.java?rev=992358&r1=992313&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean2.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/conversation/viewaccess/ViewAccessDemoBean2.java
Fri Sep  3 16:26:41 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.myfaces.blank2.conversation.viewaccess;
+package org.apache.myfaces.examples.conversation.viewaccess;
 
 import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ViewAccessScoped;
 

Added: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleList.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleList.java?rev=992358&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleList.java
(added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleList.java
Fri Sep  3 16:26:41 2010
@@ -0,0 +1,57 @@
+/*
+ * 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.examples.listsample;
+
+import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ViewAccessScoped;
+
+import javax.annotation.PostConstruct;
+import javax.inject.Named;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.logging.Logger;
+
+/**
+ * backing bean which holds the list of our SampleListEntry beans
+ */
+@ViewAccessScoped
+@Named
+public class SampleList implements Serializable
+{
+    private Logger log = Logger.getLogger(SampleList.class.getName());
+
+    /**
+     * This just logs a INFO for each bean creation
+     */
+    @PostConstruct
+    public void init()
+    {
+        log.info("SampleList bean got created");
+    }
+    
+    public List<Integer> getEntryIds()
+    {
+        List<Integer> entries = new ArrayList<Integer>();
+        entries.add(1);
+        entries.add(2);
+        entries.add(3);
+
+        return entries;
+    }
+}

Added: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleListEntry.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleListEntry.java?rev=992358&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleListEntry.java
(added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/java/org/apache/myfaces/examples/listsample/SampleListEntry.java
Fri Sep  3 16:26:41 2010
@@ -0,0 +1,78 @@
+/*
+ * 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.examples.listsample;
+
+import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ViewAccessScoped;
+
+import javax.annotation.PostConstruct;
+import javax.inject.Named;
+import java.io.Serializable;
+import java.util.logging.Logger;
+
+/**
+ * backing bean which holds one single SampleListEntry
+ */
+@ViewAccessScoped
+@Named
+public class SampleListEntry implements Serializable
+{
+    private Logger log = Logger.getLogger(SampleListEntry.class.getName());
+
+    private Integer id;
+    private String value;
+
+    /**
+     * This just logs a INFO for each bean creation
+     */
+    @PostConstruct
+    public void init()
+    {
+        log.info("SampleListEntry bean got created");
+    }
+
+    public Integer getId()
+    {
+        return id;
+    }
+
+    public void setId(Integer id)
+    {
+        this.id = id;
+    }
+
+    public String getValue()
+    {
+        return value;
+    }
+
+    public void setValue(String value)
+    {
+        this.value = value;
+    }
+
+    public String back()
+    {
+        return "sampleList";
+    }
+
+    public String reload()
+    {
+        return "sampleListEntry";
+    }
+}

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/WEB-INF/web.xml?rev=992358&r1=992357&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/WEB-INF/web.xml
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/WEB-INF/web.xml
Fri Sep  3 16:26:41 2010
@@ -40,6 +40,12 @@
         <load-on-startup>1</load-on-startup>
     </servlet>
 
+    <!-- we use geronimos jasper-el version for now as EL-2.2 implementation -->
+    <context-param>
+        <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
+        <param-value>de.apache.el.ExpressionFactoryImpl</param-value>
+    </context-param>
+
     <!-- Faces Servlet Mapping -->
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>

Modified: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/helloMyFacesCodi.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/helloMyFacesCodi.xhtml?rev=992358&r1=992357&r2=992358&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/helloMyFacesCodi.xhtml
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/helloMyFacesCodi.xhtml
Fri Sep  3 16:26:41 2010
@@ -35,8 +35,9 @@
         <h:outputText value="#{conversationDemoBean1.value}"/><br/>
 
         <h:link value="ViewAccessScoped example" outcome="viewAccessBeanPage.xhtml"/><br/>
-        <h:outputLink value="noCodiPage.xhtml">Page without Codi scoped beans</h:outputLink>
-
+        <h:outputLink value="noCodiPage.xhtml">Page without Codi scoped beans</h:outputLink><br/>
+        <h:outputLink value="listsample/sampleList.xhtml">List sample</h:outputLink>
+        
         <h:messages globalOnly="true"/>
     </body>
 </html>
\ No newline at end of file

Added: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleList.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleList.xhtml?rev=992358&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleList.xhtml
(added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleList.xhtml
Fri Sep  3 16:26:41 2010
@@ -0,0 +1,49 @@
+<!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:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+
+    <head><title>CODI JSF 2.0 List Demo</title></head>
+
+    <body>
+        <f:view>
+
+            <h:form>
+                <h3>A sample List </h3>
+                <h:dataTable value="#{sampleList.entryIds}" id="list" var="entryId">
+                    <h:column>
+                        <h:link outcome="sampleListEntry">
+                            <h:outputText value="#{entryId}"/>
+                            <f:param name="entryId" value="#{entryId}"/>
+                        </h:link>
+                    </h:column>
+                </h:dataTable>
+
+            </h:form>
+
+            <h:messages globalOnly="true"/>
+
+        </f:view>
+    </body>
+</html>
\ No newline at end of file

Added: myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleListEntry.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleListEntry.xhtml?rev=992358&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleListEntry.xhtml
(added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-examples/hello_myfaces-codi_jsf20/src/main/webapp/listsample/sampleListEntry.xhtml
Fri Sep  3 16:26:41 2010
@@ -0,0 +1,54 @@
+<!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:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+
+    <head><title>CODI JSF 2.0 List Demo</title></head>
+
+    <f:metadata>
+        <f:viewParam name="entryId" value="#{sampleListEntry.id}"/>
+    </f:metadata>
+
+    <body>
+        <f:view>
+
+            <h:form>
+                <h3>A sample List Entry</h3>
+                <h:panelGrid columns="2">
+                    <h:outputLabel value="id"/>
+                    <h:outputText value="#{sampleListEntry.id}"/>
+
+                    <h:outputLabel value="value"/>
+                    <h:inputText value="#{sampleListEntry.value}"/>
+                </h:panelGrid>
+
+                <h:commandButton action="#{sampleListEntry.back}" value="back"/>
+                <h:commandButton action="#{sampleListEntry.reload}" value="reload"/>
+            </h:form>
+
+            <h:messages globalOnly="true"/>
+
+        </f:view>
+    </body>
+</html>
\ No newline at end of file



Mime
View raw message