cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples Contact.java
Date Thu, 18 Sep 2003 20:17:03 GMT
mpo         2003/09/18 13:17:03

  Modified:    src/blocks/woody/samples/forms form2_bind_bean.xml
                        form2_model.xml form2_bind_xml.xml
               src/blocks/woody/java/org/apache/cocoon/woody/samples
                        Contact.java
  Log:
  Changing sample to show the new convertor support.
  
  Revision  Changes    Path
  1.5       +2 -0      cocoon-2.1/src/blocks/woody/samples/forms/form2_bind_bean.xml
  
  Index: form2_bind_bean.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form2_bind_bean.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- form2_bind_bean.xml	12 Aug 2003 12:59:10 -0000	1.4
  +++ form2_bind_bean.xml	18 Sep 2003 20:17:03 -0000	1.5
  @@ -36,6 +36,8 @@
       unique-row-id="id"
       unique-path="@id">
   
  +	<!-- compare to xml-binding: the convertor is not needed here -->
  +
       <!-- important note: the row-path is used inside jxpath-createPath context,
       as a consequence it cannot have dependent children or predicates -->
   
  
  
  
  1.7       +1 -1      cocoon-2.1/src/blocks/woody/samples/forms/form2_model.xml
  
  Index: form2_model.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form2_model.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- form2_model.xml	3 Sep 2003 08:21:52 -0000	1.6
  +++ form2_model.xml	18 Sep 2003 20:17:03 -0000	1.7
  @@ -80,7 +80,7 @@
   
     <wd:repeater id="contacts">
       <wd:output id="id">
  -      <wd:datatype base="string"/>
  +      <wd:datatype base="long"/>
       </wd:output>
       <wd:field id="firstname">
         <wd:label>Firstname</wd:label>
  
  
  
  1.5       +4 -0      cocoon-2.1/src/blocks/woody/samples/forms/form2_bind_xml.xml
  
  Index: form2_bind_xml.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form2_bind_xml.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- form2_bind_xml.xml	12 Aug 2003 15:39:41 -0000	1.4
  +++ form2_bind_xml.xml	18 Sep 2003 20:17:03 -0000	1.5
  @@ -59,6 +59,10 @@
       unique-row-id="id"
       unique-path="@id"
       >
  +    
  +    <!-- optional convertor to use for mapping the unique id -->
  +    <wd:convertor datatype="long" />
  +        
       <!-- important note: the row-path is used inside jxpath-createPath context,
            as a consequence it cannot have dependent children or predicates -->
   
  
  
  
  1.2       +3 -3      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Contact.java
  
  Index: Contact.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Contact.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Contact.java	23 Jul 2003 15:24:42 -0000	1.1
  +++ Contact.java	18 Sep 2003 20:17:03 -0000	1.2
  @@ -54,17 +54,17 @@
    * Contact belongs to the {@link Form2Bean} demo.
    */
   public class Contact {
  -    private String id;
  +    private long id;
       private String firstName;
       private String lastName;
       private String phone;
       private String email;
   
  -    public String getId() {
  +    public long getId() {
           return id;
       }
   
  -    public void setId(String id) {
  +    public void setId(long id) {
           this.id = id;
       }
   
  
  
  

Mime
View raw message