You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by le...@apache.org on 2001/03/13 21:55:01 UTC

cvs commit: jakarta-turbine/docs peers.html

legassick    01/03/13 12:54:59

  Modified:    xdocs    peers.xml
               docs     peers.html
  Log:
  Corrected misleading comment about setProperties (form field names should
  match data object property names, not database field names as previously
  stated).
  
  Revision  Changes    Path
  1.7       +5 -3      jakarta-turbine/xdocs/peers.xml
  
  Index: peers.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/xdocs/peers.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- peers.xml	2001/02/28 02:06:21	1.6
  +++ peers.xml	2001/03/13 20:54:53	1.7
  @@ -226,10 +226,12 @@
   <p>
   I saved the best for last.  Say that you want to create a new database
   entry from an html form.  You can use the ParameterParser object (see the
  -getParamters method of RunData in the api docs) to automatically fill in
  +getParameters method of RunData in the api docs) to automatically fill in
   your fields.  All that you need to do is to give your html form fields
  -exactly the same names as your database fields.  Then you can have code
  -like this:
  +the same name as the corresponding property in the generated Data Object.
  +For example a database field ITEM_ID will cause the generated Data Object
  +to have getItemId and setItemId methods. Here the property name is ItemId, so
  +that should be the form field name.  Then you can have code like this:
   </p>
   
   <source>
  
  
  
  1.15      +6 -4      jakarta-turbine/docs/peers.html
  
  Index: peers.html
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/docs/peers.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- peers.html	2001/03/01 02:49:23	1.14
  +++ peers.html	2001/03/13 20:54:58	1.15
  @@ -27,7 +27,7 @@
   <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" border="0"/></a>
   </td>
   <td align="right">
  -<a href="http://java.apache.org/turbine"><img src="images/logo.gif" alt="Turbine" border="0"/></a>
  +<a href="http://jakarta.apache.org/turbine/"><img src="./images/logo.gif" alt="Turbine" border="0"/></a>
   </td>
                   </tr>
               </table>
  @@ -468,10 +468,12 @@
                                                   <p>
   I saved the best for last.  Say that you want to create a new database
   entry from an html form.  You can use the ParameterParser object (see the
  -getParamters method of RunData in the api docs) to automatically fill in
  +getParameters method of RunData in the api docs) to automatically fill in
   your fields.  All that you need to do is to give your html form fields
  -exactly the same names as your database fields.  Then you can have code
  -like this:
  +the same name as the corresponding property in the generated Data Object.
  +For example a database field ITEM_ID will cause the generated Data Object
  +to have getItemId and setItemId methods. Here the property name is ItemId, so
  +that should be the form field name.  Then you can have code like this:
   </p>
                                                       <div align="left">
       <table cellspacing="4" cellpadding="0" border="0">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org