Various (Actions) - This sample shows validation, event handling and various Cocoon Forms features.
Cocoon Forms has a binding framework which assists in copying Java-bean or XML (DOM) data into a form and back.XML Binding - A form for just editing an XML file.
Simple XML Binding - A form for just editing XML data. Illustrates the XMLAdapter.
Bean Binding - A form for just editing a Java bean
Step-by-step tutorial into individual binding features:1. Binding Simple Values - fb:*/@direction and fb:value/*
2. Lenient Binding - fb:*/@lenient
3. Aggregate Binding - fb:aggregate
4. Heavy Form - Form with lots of select boxes - test memory utilization, performance
6. XML binding using namespaces - Using XML binding with complex namespaced XML
Easy SQL database access -
SQL database query and update without any custom Java code, O/R mapping tool nor form binding.
Uses flowscript, Map and List views on the forms and the database (using JDBI).
The samples below are the same as the basic flowscript sample but now use different locales. The locale can affect things like date and number formatting. You can try out other locales by supplying other values for the locale parameter in the URL.Flowscript - France
Flowscript - Italy
Flowscript - Germany
Flowscript - Belgium (dutch)
Flowscript - Greek
Flowscript - Chinese
Dynamic templates and recursive forms
These samples were written for the GT2004 presentation about dynamic templates and recursive forms. They illustrate the use of "jx-macros.xml" to interpret form template elements within the generator, allowing the page layout to depend on the contents of the form, and the use of fd:union and fd:class widgets.Dynamic repeater template - (Ajax) Shows a simple repeater, which isn't displayed at all if empty, and whose row action depend on the row number.
Datasource chooser - (Ajax) A datasource chooser, illustrating the fd:union widget.
Task tree - (Ajax) A project work breakdown into a hierarchy of tasks, showing the use of the fd:class and fd:new widgets.
Tree widget samples
Advanced Ajax samples using Dojo widgets
Drag and drop reordering, in-place editing -
(Ajax) The dynamic repeater sample revisited, featuring drag and drop reordering of rows,
selecting rows by clicking anywhere in the row, and in-place editing of values.
Dynamic repeater template and event handling
Dynamic repeater template -
Create your Euro 2004 soccer dream team
These samples concentrate on Cocoon Forms and JXTemplate in order to collect profiling information. In order to keep the samples as lean as possible, an action is used as controller.form1 - JXTemplate - Render form using JXTemplate macros
form1 - FormsTransformer - Render form using the FormsTransformer
Forms Library samples
This demonstrates the new library subsystem of Cocoon Forms. This is currently under development and is likely to change.Basic Sample - Basic Sample
Basic Sample 2 - Basic Sample 2 (depends on the same library as above, see how it still changes after editing the library and reloading the first)
Hotel Booking Sample - Hotel Booking Sample, elaborate use of libraries.
Repeater advanced features
This demonstrates the Google Summer of Code 2006 improvements to the repeater.Pagination, sorting and filtering - Pagination, sorting and filtering.
Copyright © 1999-2010 The Apache Software Foundation. All rights reserved.