You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2009/09/01 11:21:55 UTC
svn commit: r809922 - in
/myfaces/extensions/scripting/trunk/examples/src/main/webapp: ./ WEB-INF/
WEB-INF/java/org/apache/myfaces/javaloader/blog/
WEB-INF/java/org/apache/myfaces/javaloader/test/
Author: werpu
Date: Tue Sep 1 09:21:55 2009
New Revision: 809922
URL: http://svn.apache.org/viewvc?rev=809922&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-3
added documentation added a tighter convenience method behavior
Modified:
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/faces-config.xml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy-taglib.xml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogEntry.java
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogService.java
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Null.java
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/test/TestBean2.java
myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/blog.xhtml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/helloWorld.xhtml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/index.jsp
myfaces/extensions/scripting/trunk/examples/src/main/webapp/javablog.xhtml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/page2.xhtml
myfaces/extensions/scripting/trunk/examples/src/main/webapp/template.xhtml
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/faces-config.xml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/faces-config.xml Tue Sep 1 09:21:55 2009
@@ -17,11 +17,11 @@
* specific language governing permissions and limitations
* under the License.
-->
-<faces-config version="1.2"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- 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_1_2.xsd">
+<faces-config version = "1.2"
+ xmlns = "http://java.sun.com/xml/ns/javaee"
+ xmlns:xi = "http://www.w3.org/2001/XInclude"
+ 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_1_2.xsd">
<!-- managed beans of the simple hello world app -->
<managed-bean>
@@ -34,27 +34,25 @@
<managed-bean-class>org.apache.myfaces.groovyloader.test.TestBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
-
- <managed-bean>
+
+ <managed-bean>
<managed-bean-name>javatestbean</managed-bean-name>
<managed-bean-class>org.apache.myfaces.javaloader.test.TestBean2</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
-
<managed-bean>
<managed-bean-name>blogView</managed-bean-name>
<managed-bean-class>org.apache.myfaces.groovyloader.blog.Blog</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
-
+
<managed-bean>
<managed-bean-name>blogService</managed-bean-name>
<managed-bean-class>org.apache.myfaces.groovyloader.blog.BlogService</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
-
<managed-bean>
<managed-bean-name>javaBlogView</managed-bean-name>
<managed-bean-class>org.apache.myfaces.javaloader.blog.Blog</managed-bean-class>
@@ -67,8 +65,6 @@
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
-
-
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
<navigation-handler>
@@ -77,7 +73,6 @@
</application>
-
<lifecycle>
<phase-listener>
@@ -85,7 +80,6 @@
</phase-listener>
</lifecycle>
-
<!-- navigation rules for helloWorld.jsp -->
<navigation-rule>
<from-view-id>/helloWorld.jsp</from-view-id>
@@ -104,7 +98,6 @@
</navigation-case>
</navigation-rule>
-
<validator>
<validator-id>org.apache.myfaces.groovyloader.test.TestValidator</validator-id>
<validator-class>org.apache.myfaces.groovyloader.test.TestValidator</validator-class>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy-taglib.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy-taglib.xml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy-taglib.xml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/groovy-taglib.xml Tue Sep 1 09:21:55 2009
@@ -20,7 +20,7 @@
<tag-name>testcomponent</tag-name>
<component>
<component-type>org.apache.myfaces.groovyloader.test.TestComponent</component-type>
- <renderer-type>org.apache.myfaces.groovyloader.test.Test</renderer-type>
+ <renderer-type>org.apache.myfaces.groovyloader.test.Test</renderer-type>
</component>
</tag>
</facelet-taglib>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogEntry.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogEntry.java?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogEntry.java (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogEntry.java Tue Sep 1 09:21:55 2009
@@ -7,7 +7,7 @@
public class BlogEntry {
String firstName = "";
-
+
String lastName = "";
String topic = "";
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogService.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogService.java?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogService.java (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/BlogService.java Tue Sep 1 09:21:55 2009
@@ -17,19 +17,18 @@
* note we cannot cast on dynamically referenced
* and recompiled objects which are shared between beans
* because due to dynamic recompilation
- *
+ * <p/>
* Object a->references b does not reference b of the same class
* as object c->references b, we have to use introspection in this case
* we can use our utils class to make it a tiny bit more comfortable
- *
+ * <p/>
* Statically compiled types always stay the same however
* the same goes for interfaces which are present as compiled code only
- *
*/
List<Object> blogEntries = Collections.synchronizedList(new LinkedList<Object>());
public void addEntry(Object entry) {
- if(entry != null) {
+ if (entry != null) {
blogEntries.add(entry);
}
}
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Null.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Null.java?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Null.java (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/blog/Null.java Tue Sep 1 09:21:55 2009
@@ -1,14 +1,12 @@
package org.apache.myfaces.javaloader.blog;
/**
- *
* Special cast case null
*/
public class Null extends Cast {
public Null(Class clazz) {
- super(clazz, null);
+ super(clazz, null);
}
-
}
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/test/TestBean2.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/test/TestBean2.java?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/test/TestBean2.java (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/test/TestBean2.java Tue Sep 1 09:21:55 2009
@@ -9,12 +9,13 @@
String hello3 = "hello from added attribute 2";
public String getSayHello() {
- return "hello from a Java coded dynamic bean"+TestClass2.hello2+hello3 ;
+ return "hello from a Java coded dynamic bean" + TestClass2.hello2 + hello3;
}
- public String getSayHello2() {
+
+ public String getSayHello2() {
return hello2;
}
-
+
public void setSayHello(String hello) {
this.sayHello = hello;
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/WEB-INF/web.xml Tue Sep 1 09:21:55 2009
@@ -18,10 +18,10 @@
* 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">
+<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">
<description>MyProject web.xml</description>
@@ -35,32 +35,34 @@
<param-value>/WEB-INF/examples-config.xml</param-value>
</context-param-->
-<!-- clean method working for myfaces 1.2.8+ -->
+ <!-- clean method working for myfaces 1.2.8+ -->
<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.scripting.servlet.StartupServletContextPluginChainLoader</param-value>
- </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.scripting.servlet.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>
+ of the deployment dir
+ </description>
<param-name>org.apache.myfaces.scripting.groovy.LOADER_PATHS</param-name>
- <param-value>/Users/werpu2/development/workspace/extensions-scripting/examples/src/main/webapp/WEB-INF/groovy</param-value>
+ <param-value>/Users/werpu2/development/workspace/extensions-scripting/examples/src/main/webapp/WEB-INF/groovy
+ </param-value>
</context-param>
- <context-param>
+ <context-param>
<description>Additional comma separated loader paths to allow direct editing on the sources directory instead
- of the deployment dir</description>
+ of the deployment dir
+ </description>
<param-name>org.apache.myfaces.scripting.java.LOADER_PATHS</param-name>
- <param-value>/Users/werpu2/development/workspace/extensions-scripting/examples/src/main/webapp/WEB-INF/java</param-value>
+ <param-value>/Users/werpu2/development/workspace/extensions-scripting/examples/src/main/webapp/WEB-INF/java
+ </param-value>
</context-param>
-
<context-param>
<description>State saving method: "client" or "server" (= default)
See JSF Specification 2.5.3
@@ -70,10 +72,9 @@
</context-param>
<context-param>
- <param-name>facelets.LIBRARIES</param-name>
- <param-value>/WEB-INF/tomahawk.taglib.xml;/WEB-INF/groovy-taglib.xml</param-value>
- </context-param>
-
+ <param-name>facelets.LIBRARIES</param-name>
+ <param-value>/WEB-INF/tomahawk.taglib.xml;/WEB-INF/groovy-taglib.xml</param-value>
+ </context-param>
<context-param>
<description>Only applicable if state saving method is "server" (= default).
@@ -208,7 +209,6 @@
<param-value>true</param-value>
</context-param>
-
<!-- Extensions Filter -->
<filter>
<filter-name>extensionsFilter</filter-name>
@@ -265,7 +265,6 @@
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
-->
-
<!-- Faces Servlet -->
<servlet>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/blog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/blog.xhtml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/blog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/blog.xhtml Tue Sep 1 09:21:55 2009
@@ -1,42 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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"
- xmlns:t="http://myfaces.apache.org/tomahawk"
- xmlns:grv="http://myfaces.apache.org/groovy">
+<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"
+ xmlns:t = "http://myfaces.apache.org/tomahawk" xmlns:grv = "http://myfaces.apache.org/groovy">
<head>
<title>Hello World</title>
</head>
<body>
-<ui:composition template="/template.xhtml">
+<ui:composition template = "/template.xhtml">
- <ui:define name="body">
- <h:form id="form">
- <h:panelGrid id="grid" columns="1">
- <h:outputText id="title1" styleClass="title" value="#{blogView.title}"/>
- <h:outputText id="title11" styleClass="title1" value="#{blogView.title1}"/>
+ <ui:define name = "body">
+ <h:form id = "form">
+ <h:panelGrid id = "grid" columns = "1">
+ <h:outputText id = "title1" styleClass = "title" value = "#{blogView.title}" />
+ <h:outputText id = "title11" styleClass = "title1" value = "#{blogView.title1}" />
<!--
entry.firstName = firstName
entry.lastName = lastName
entry.topic = topic
entry.content = content
-->
- <h:outputText value="First Name"/><h:inputText value="#{blogView.firstName}"/>
- <h:outputText value="Last Name"/><h:inputText value="#{blogView.lastName}"/>
- <h:outputText value="Topic of entry"/><h:inputText value="#{blogView.topic}"/>
- <h:outputText value="Content"/><h:inputText value="#{blogView.content}"/>
+ <h:outputText value = "First Name" /><h:inputText value = "#{blogView.firstName}" />
+ <h:outputText value = "Last Name" /><h:inputText value = "#{blogView.lastName}" />
+ <h:outputText value = "Topic of entry" /><h:inputText value = "#{blogView.topic}" />
+ <h:outputText value = "Content" /><h:inputText value = "#{blogView.content}" />
- <h:commandLink action="#{blogView.addEntry}" value="Add Blog"/>
+ <h:commandLink action = "#{blogView.addEntry}" value = "Add Blog" />
</h:panelGrid>
- <h:panelGrid columns="1">
- <h:outputText value="Blog Entries"/>
- <t:dataList value="#{blogService.blogEntries}" var="item">
+ <h:panelGrid columns = "1">
+ <h:outputText value = "Blog Entries" />
+ <t:dataList value = "#{blogService.blogEntries}" var = "item">
- <h:outputText value="#{item.topic}"/>
- <h:outputText value="#{item.content}"/><br/>
+ <h:outputText value = "#{item.topic}" />
+ <h:outputText value = "#{item.content}" /><br />
</t:dataList>
</h:panelGrid>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/helloWorld.xhtml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/helloWorld.xhtml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/helloWorld.xhtml Tue Sep 1 09:21:55 2009
@@ -1,30 +1,27 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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"
- xmlns:grv="http://myfaces.apache.org/groovy" >
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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"
+ xmlns:grv = "http://myfaces.apache.org/groovy">
<head>
<title>Hello World</title>
</head>
<body>
-<ui:composition template="/template.xhtml">
+<ui:composition template = "/template.xhtml">
- <ui:define name="body">
- <h:form id="form">
- <h:panelGrid id="grid" columns="2">
- <h:outputText id="output1" value="Please enter your name" />
- <h:inputText id="input1" value="#{helloWorld.name}"
- required="true" >
+ <ui:define name = "body">
+ <h:form id = "form">
+ <h:panelGrid id = "grid" columns = "2">
+ <h:outputText id = "output1" value = "Please enter your name" />
+ <h:inputText id = "input1" value = "#{helloWorld.name}" required = "true">
<grv:groovyvalidator />
</h:inputText>
- <h:commandButton id="button1" value="press me"
- action="#{helloWorld.send}" />
+ <h:commandButton id = "button1" value = "press me" action = "#{helloWorld.send}" />
<grv:testcomponent />
- <h:message id="message1" for="input1" />
- <h:outputFormat value="#{testbean.xxx}"/>
- <h:outputFormat value="#{javatestbean.sayHello}"/>
- <h:commandButton value="Press me dynamic" action="#{testbean.doit}"/>
+ <h:message id = "message1" for = "input1" />
+ <h:outputFormat value = "#{testbean.xxx}" />
+ <h:outputFormat value = "#{javatestbean.sayHello}" />
+ <h:commandButton value = "Press me dynamic" action = "#{testbean.doit}" />
</h:panelGrid>
</h:form>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/index.jsp?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/index.jsp (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/index.jsp Tue Sep 1 09:21:55 2009
@@ -1,5 +1,3 @@
-<%@ page session="false"%>
-<%
-response.sendRedirect("helloWorld.jsf");
-//(new org.apache.myfaces.blank.HelloWorldController()).getName();
-%>
\ No newline at end of file
+<%@ page session = "false" %>
+<%response.sendRedirect("helloWorld.jsf");
+//(new org.apache.myfaces.blank.HelloWorldController()).getName();%>
\ No newline at end of file
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/javablog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/javablog.xhtml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/javablog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/javablog.xhtml Tue Sep 1 09:21:55 2009
@@ -1,42 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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"
- xmlns:t="http://myfaces.apache.org/tomahawk"
- xmlns:grv="http://myfaces.apache.org/groovy">
+<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"
+ xmlns:t = "http://myfaces.apache.org/tomahawk" xmlns:grv = "http://myfaces.apache.org/groovy">
<head>
<title>Hello World</title>
</head>
<body>
-<ui:composition template="/template.xhtml">
+<ui:composition template = "/template.xhtml">
- <ui:define name="body">
- <h:form id="form">
- <h:panelGrid id="grid" columns="1">
- <h:outputText id="title1" styleClass="title" value="#{javaBlogView.title}"/>
- <h:outputText id="title11" styleClass="title1" value="#{javaBlogView.title1}"/>
+ <ui:define name = "body">
+ <h:form id = "form">
+ <h:panelGrid id = "grid" columns = "1">
+ <h:outputText id = "title1" styleClass = "title" value = "#{javaBlogView.title}" />
+ <h:outputText id = "title11" styleClass = "title1" value = "#{javaBlogView.title1}" />
<!--
entry.firstName = firstName
entry.lastName = lastName
entry.topic = topic
entry.content = content
-->
- <h:outputText value="First Name"/><h:inputText value="#{javaBlogView.firstName}"/>
- <h:outputText value="Last Name"/><h:inputText value="#{javaBlogView.lastName}"/>
- <h:outputText value="Topic of entry"/><h:inputText value="#{javaBlogView.topic}"/>
- <h:outputText value="Content"/><h:inputText value="#{javaBlogView.content}"/>
+ <h:outputText value = "First Name" /><h:inputText value = "#{javaBlogView.firstName}" />
+ <h:outputText value = "Last Name" /><h:inputText value = "#{javaBlogView.lastName}" />
+ <h:outputText value = "Topic of entry" /><h:inputText value = "#{javaBlogView.topic}" />
+ <h:outputText value = "Content" /><h:inputText value = "#{javaBlogView.content}" />
- <h:commandLink action="#{javaBlogView.addEntry}" value="Add Blog"/>
+ <h:commandLink action = "#{javaBlogView.addEntry}" value = "Add Blog" />
</h:panelGrid>
- <h:panelGrid columns="1">
- <h:outputText value="Blog Entries"/>
- <t:dataList value="#{javaBlogService.blogEntries}" var="item">
+ <h:panelGrid columns = "1">
+ <h:outputText value = "Blog Entries" />
+ <t:dataList value = "#{javaBlogService.blogEntries}" var = "item">
- <h:outputText value="#{item.topic}"/>
- <h:outputText value="#{item.content}"/><br/>
+ <h:outputText value = "#{item.topic}" />
+ <h:outputText value = "#{item.content}" /><br />
</t:dataList>
</h:panelGrid>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/page2.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/page2.xhtml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/page2.xhtml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/page2.xhtml Tue Sep 1 09:21:55 2009
@@ -1,19 +1,17 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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">
<head>
<title>Hello World</title>
</head>
<body>
<f:view>
- <h:outputText
- value="Hello #{helloWorld.name}. We hope you enjoy Apache MyFaces" />
- <h:form id="form2">
- <h:commandLink id="link1" action="back">
- <h:outputText id="linkText" value="GO HOME" />
+ <h:outputText value = "Hello #{helloWorld.name}. We hope you enjoy Apache MyFaces" />
+ <h:form id = "form2">
+ <h:commandLink id = "link1" action = "back">
+ <h:outputText id = "linkText" value = "GO HOME" />
</h:commandLink>
</h:form>
</f:view>
Modified: myfaces/extensions/scripting/trunk/examples/src/main/webapp/template.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/examples/src/main/webapp/template.xhtml?rev=809922&r1=809921&r2=809922&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/examples/src/main/webapp/template.xhtml (original)
+++ myfaces/extensions/scripting/trunk/examples/src/main/webapp/template.xhtml Tue Sep 1 09:21:55 2009
@@ -1,16 +1,15 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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">
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<meta http-equiv = "Content-Type" content = "text/html; charset=iso-8859-1" />
<title>Myfaces Example Facelets</title>
</head>
<body>
-<h1><ui:insert name="title">Myfaces Example Facelets</ui:insert></h1>
-<p><ui:insert name="body">Hello World Example!</ui:insert></p>
+<h1><ui:insert name = "title">Myfaces Example Facelets</ui:insert></h1>
+<p><ui:insert name = "body">Hello World Example!</ui:insert></p>
</body>
</html>