cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r889945 - /cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java
Date Sat, 12 Dec 2009 16:23:56 GMT
Author: reinhard
Date: Sat Dec 12 16:23:56 2009
New Revision: 889945

URL: http://svn.apache.org/viewvc?rev=889945&view=rev
Log:
add SAXGenerator

Modified:
    cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java

Modified: cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java?rev=889945&r1=889944&r2=889945&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sample-wicket-webapp/src/main/java/org/apache/cocoon/sample/wicket/Homepage.java
Sat Dec 12 16:23:56 2009
@@ -18,7 +18,7 @@
 
 import org.apache.cocoon.pipeline.NonCachingPipeline;
 import org.apache.cocoon.sax.SAXPipelineComponent;
-import org.apache.cocoon.sax.component.StringGenerator;
+import org.apache.cocoon.sax.component.SAXGenerator;
 import org.apache.cocoon.sax.component.XSLTTransformer;
 import org.apache.wicket.markup.html.WebPage;
 
@@ -27,7 +27,7 @@
     public Homepage() {
         CocoonSAXPipeline pipeline = new CocoonSAXPipeline("cocoon-pipeline-component",
                 new NonCachingPipeline<SAXPipelineComponent>());
-        pipeline.addComponent(new StringGenerator("<b>hello, Cocoon!</b>"));
+        pipeline.addComponent(new SAXGenerator("<b>hello, Cocoon!</b>"));
         pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("transform.xslt")));
 
         this.add(pipeline);



Mime
View raw message