A new document has been created. http://cocoon.zones.apache.org/daisy/documentation/688.html
Document ID: 688 Branch: main Language: default Name: Creating a Generator Document Type: Document Created: 9/6/05 5:00:24 PM Creator (owner): Berin Loritsch State: publish Parts ===== Content ------- Mime type: text/xml Size: 1361 bytes Content: <html> <body> <h1>Creating a Generator</h1> <p>One of the most common types of components to create in Cocoon is to create a Generator. Whether you realize it or not, every time you write an XSP page, you are creating a Generator. XSP pages do a number of things for you, but there is a considerable amount of overhead involved with compiling and debugging. After all, when your XSP page isn't rendering like you expect and the XML is well-formed, where do you turn? You can examine the Java code that is generated from the XSP, but that can have its own set of challenges. I had a perfectly valid Java source file generated for Java 5's javac program, but it wouldn't compile in Cocoon. Why? The default compiler included with Cocoon doesn't support Java 5.</p> <p>Sometimes our needs are so simple and so narrowly defined that it would be much easier for us to create our Generator right in our own IDE using all of the creature features that are included. Eclipse and IDEA are both wonderfully rich environments to develop Java code. Generators are much simpler beasts than your transformers and your serializers, so it makes creating them directly even more enticing. Cocoon does have some wonderful generators like the JXTemplateGenerator and others, but we are going to delve into the world of creating our own.</p> </body> </html> Collections =========== The document belongs to the following collections: documentation
