cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cocoon Wiki] Update of "FormsClassWidget" by AndrewSavory
Date Fri, 01 Apr 2005 12:50:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.

The following page has been changed by AndrewSavory:
http://wiki.apache.org/cocoon/FormsClassWidget

------------------------------------------------------------------------------
  <ft:new id="complex-class-text"/>
  }}}
  
- The output of this looks something like the following screenshot:
+ The output of this looks something like the following screenshot:[[BR]]
  attachment:cforms_class.png
+ [[BR]]
+ To bind this form to an XML file is simple. Given an XML file as follows:
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <data>
+     <basic-text>test basic</basic-text>
+     <class-text>test class</class-text>
+     <complex-class-text-one>complex one</complex-class-text-one>
+     <complex-class-text-two>complex two</complex-class-text-two>
+ </data>
+ }}}
+ The binding file would look like this:
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <fb:context
+     xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
+     xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
+     path="/data"
+     >
  
+     <fb:value id="basic-text" path="basic-text"/>
+ 
+     <fb:class id="basic-class-text">
+         <fb:value id="class-text" path="class-text"/>
+     </fb:class>
+ 
+     <fb:new id="basic-class-text"/>
+     
+     <fb:class id="complex-class-text">
+         <fb:value id="complex-class-text-one" path="complex-class-text-one"/>
+         <fb:value id="complex-class-text-two" path="complex-class-text-two"/>
+     </fb:class>
+     
+     <fb:new id="complex-class-text"/>
+ 
+ </fb:context>
+ }}}
+ 
Mime
View raw message