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 2010/04/22 10:32:08 UTC
svn commit: r936649 - in
/myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp:
WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy
blog.xhtml
Author: werpu
Date: Thu Apr 22 08:32:08 2010
New Revision: 936649
URL: http://svn.apache.org/viewvc?rev=936649&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-123
t:iterator did not work due to facelet taghandlers missing
fixed that replaced it with ui:repeat
Modified:
myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy
myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml
Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy?rev=936649&r1=936648&r2=936649&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/WEB-INF/groovy/org/apache/myfaces/groovyloader/blog/BlogService.groovy Thu Apr 22 08:32:08 2010
@@ -20,12 +20,13 @@ package org.apache.myfaces.groovyloader.
import org.apache.myfaces.groovyloader.blog.BlogEntry;
import java.util.List
+import java.util.ArrayList
import java.util.logging.Logger
public class BlogService {
- List blogEntries = new ArrayList()
+ def blogEntries = new ArrayList()
public void addEntry2(BlogEntry entry) {
Logger log = Logger.getLogger(BlogService.class.getName())
@@ -35,7 +36,5 @@ public class BlogService {
}
- public List getBlogEntries() {
- return blogEntries
- }
+
}
\ No newline at end of file
Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml?rev=936649&r1=936648&r2=936649&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml Thu Apr 22 08:32:08 2010
@@ -35,12 +35,11 @@
</h:panelGrid>
<h:panelGrid columns="1">
<h:outputText value="Blog Entries"/>
- <t:dataList value="#{blogService.blogEntries}" var="item">
-
+ <ui:repeat value="#{blogService.blogEntries}" var="item">
<h:outputText value="#{item.topic}"/>
<h:outputText value="#{item.content}"/>
<br/>
- </t:dataList>
+ </ui:repeat>
</h:panelGrid>
</h:form>