You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2006/05/19 17:04:51 UTC
svn commit: r407814 - in /myfaces/tobago/trunk:
example/facelets/src/main/webapp/WEB-INF/faces-config.xml
example/facelets/src/main/webapp/helloWorld.xml
example/facelets/src/main/webapp/helloWorldNext.xml src/site/site.xml
Author: bommel
Date: Fri May 19 08:04:51 2006
New Revision: 407814
URL: http://svn.apache.org/viewvc?rev=407814&view=rev
Log:
modify facelets demo
changed links
Added:
myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorldNext.xml
Modified:
myfaces/tobago/trunk/example/facelets/src/main/webapp/WEB-INF/faces-config.xml
myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorld.xml
myfaces/tobago/trunk/src/site/site.xml
Modified: myfaces/tobago/trunk/example/facelets/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/facelets/src/main/webapp/WEB-INF/faces-config.xml?rev=407814&r1=407813&r2=407814&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/facelets/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/example/facelets/src/main/webapp/WEB-INF/faces-config.xml Fri May 19 08:04:51 2006
@@ -41,4 +41,18 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/helloWorldNext.jsf</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>back</from-outcome>
+ <to-view-id>/helloWorld.jsf</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
</faces-config>
Modified: myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorld.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorld.xml?rev=407814&r1=407813&r2=407814&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorld.xml (original)
+++ myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorld.xml Fri May 19 08:04:51 2006
@@ -1,14 +1,13 @@
<f:view xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension">
- <tc:page>
+ <tc:page label="Tobago Hello World Faclets">
<f:facet name="layout">
<tc:gridLayout/>
</f:facet>
<tc:out value="Hello World!"/>
- <tx:in label="foo" value="#{counter.count}" >
- <tc:attribute name="validator" value="#{counter.customValidator}" />
- </tx:in>
- <tc:button label="Count++" defaultCommand="true" />
+ <ui:debug hotkey="m"/>
+ <tc:button label="Go on" action="next" />
</tc:page>
</f:view>
Added: myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorldNext.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorldNext.xml?rev=407814&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorldNext.xml (added)
+++ myfaces/tobago/trunk/example/facelets/src/main/webapp/helloWorldNext.xml Fri May 19 08:04:51 2006
@@ -0,0 +1,13 @@
+<f:view xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension">
+ <tc:page label="Tobago Hello World Faclets">
+ <f:facet name="layout">
+ <tc:gridLayout/>
+ </f:facet>
+ <tc:out value="#{counter.count}"/>
+ <ui:debug hotkey="m"/>
+ <tc:button label="Go back" action="back" />
+ </tc:page>
+</f:view>
\ No newline at end of file
Modified: myfaces/tobago/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/src/site/site.xml?rev=407814&r1=407813&r2=407814&view=diff
==============================================================================
--- myfaces/tobago/trunk/src/site/site.xml (original)
+++ myfaces/tobago/trunk/src/site/site.xml Fri May 19 08:04:51 2006
@@ -29,10 +29,10 @@
</menu>
<menu name="Documentation">
- <item name="Getting Started" href="getting-started.html"/>
- <item name="Roadmap" href="roadmap.html" />
- <item name="Theme Handling" href="themes.html" />
- <item name="FAQ" href="faq.html"/>
+ <item name="Getting Started" href="http://myfaces.apache.org/tobago/getting-started.html"/>
+ <item name="Roadmap" href="http://myfaces.apache.org/tobago/roadmap.html" />
+ <item name="Theme Handling" href="http://myfaces.apache.org/tobago/themes.html" />
+ <item name="FAQ" href="http://myfaces.apache.org/tobago/faq.html"/>
</menu>
${parentProject}