You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ds...@apache.org on 2004/03/02 02:44:32 UTC

cvs commit: jakarta-tapestry/doc/src/ComponentReference Foreach.html RadioGroup.html TextArea.html Submit.html Shell.html DatePicker.html ValidField.html Checkbox.html wml.Go.html Conditional.html Insert.html PageLink.html DirectLink.html Any.html PropertySelection.html Image.html ActionLink.html Body.html

dsolis      2004/03/01 17:44:32

  Modified:    doc/src/ComponentReference Foreach.html RadioGroup.html
                        TextArea.html Submit.html Shell.html
                        DatePicker.html ValidField.html Checkbox.html
                        wml.Go.html Conditional.html Insert.html
                        PageLink.html DirectLink.html Any.html
                        PropertySelection.html Image.html ActionLink.html
                        Body.html
  Log:
  Update to use 3.0 syntax
  
  Revision  Changes    Path
  1.17      +6 -18     jakarta-tapestry/doc/src/ComponentReference/Foreach.html
  
  Index: Foreach.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Foreach.html,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Foreach.html	19 Oct 2003 21:41:42 -0000	1.16
  +++ Foreach.html	2 Mar 2004 01:44:31 -0000	1.17
  @@ -213,26 +213,14 @@
   </table>
   
   
  -
  -public class SalesPage extends BasePage {
  -    private List customerList;
  -    private Customer customer;
  -	 
  -    public List getCustomerList() { return customerList; }
  +&lt;property-specification name=&quot;customerList&quot; type=&quot;java.util.List&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;customer&quot; type=&quot;Customer&quot;/&gt;<br>
  +public abstract class SalesPage extends BasePage {
  +    public abstract List getCustomerList();
   	 
  -    public Customer getCustomer() { return customer; }
  -
  -    public void setCustomer(Customer value) {
  -        customer = value;
  -    }
  -
  -    protected void initialize() {
  -        customerList = null;
  -        customer = null;
  -    }
  +    public abstract List setCustomerList(List value);
   }
   
  -public class Customer {
  +public class Customer implements Serializable {
       private Integer id;
       private String fullName;
       private String memberLevel;
  
  
  
  1.9       +5 -18     jakarta-tapestry/doc/src/ComponentReference/RadioGroup.html
  
  Index: RadioGroup.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/RadioGroup.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- RadioGroup.html	24 Jun 2003 01:46:01 -0000	1.8
  +++ RadioGroup.html	2 Mar 2004 01:44:31 -0000	1.9
  @@ -163,27 +163,14 @@
   &lt;/table&gt;
   &lt;/form&gt;
   
  -
  -
  -public OrderPage extends BasePage {
  +&lt;property-specification name=&quot;orderSize&quot; type=&quot;java.lang.Integer&quot; initial-value=&quot;@OrderPage@MEDIUM&quot;/&gt;<br>
  +public abstract OrderPage extends BasePage {
      public final static Integer SMALL = new Integer(1);
      public final static Integer MEDIUM = new Integer(2);
      public final static Integer LARGE = new Integer(3);
  +      
  +   public abstract Integer getOrderSize();
      
  -   private Integer orderSize = MEDIUM;
  -   
  -   public void setOrderSize(Integer value) {
  -      orderSize = value;
  -   }
  -
  -   public Integer getOrderSize() {
  -      return orderSize;
  -   }
  -   
  -   protected void initialize() {
  -      orderSize = MEDIUM;
  -   }
  -
      public formSubmit(IRequestCycle cycle) {
         // process order
      }   
  
  
  
  1.6       +4 -19     jakarta-tapestry/doc/src/ComponentReference/TextArea.html
  
  Index: TextArea.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/TextArea.html,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TextArea.html	26 Mar 2003 19:48:48 -0000	1.5
  +++ TextArea.html	2 Mar 2004 01:44:31 -0000	1.6
  @@ -149,30 +149,15 @@
   &lt;/form&gt;
   &lt;/table&gt;
   
  -
  +&lt;property-specification name=&quot;comments&quot; type=&quot;java.lang.String&quot; persistent=&quot;yes&quot; initial-value=&quot;'Please enter your comments here'&quot;/&gt;<br>
   public class CustomerCommentsPage extends BasePage {
  -    private final static String COMMENTS = "Please enter your comments here"; 
  -    private String comments = COMMENTS;
  -
       public void formSubmit(IRequestCycle requestCycle) {
           // Proccess customer comments
       }
  -
  -    public String getComments() { return comments; }
  -
  -    public void setComments(String value) {
  -        comments = value;
  -        fireObservedChange("comments", value);
  -    }
  -
  -    public void detach() {
  -        comments = COMMENTS;
  -        super.detach();
  -    }        
   }
   </pre>
  -
  - </td></tr></table>
  +          </td>
  +        </tr></table>
   </td></tr>
   <tr>
    <td colspan="3"><hr></td>  
  
  
  
  1.13      +17 -46    jakarta-tapestry/doc/src/ComponentReference/Submit.html
  
  Index: Submit.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Submit.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Submit.html	24 Mar 2003 20:41:43 -0000	1.12
  +++ Submit.html	2 Mar 2004 01:44:31 -0000	1.13
  @@ -223,22 +223,16 @@
    &lt;/table&gt;
   &lt;/form&gt;
   
  +&lt;property-specification name=&quot;username&quot; type=&quot;java.lang.String&quot;/&gt;<br>&lt;property-specification name=&quot;password&quot; type=&quot;java.lang.String&quot;/&gt;<br>
  +public abstract class LoginPage extends BasePage {
   
  -public class LoginPage extends BasePage {
  -    private String username;
  -    private String password;
  +    public abstract String getUsername();
       
  -    public String getUsername() { return username; }
  +    public abstract void setUsername(String value);
       
  -    public void setUsername(String value) {
  -        username = value;
  -    }
  -
  -    public String getPassword() { return password; }
  +    public abstract String getPassword();
       
  -    public void setPassword(String value) {
  -        password = value;
  -    }
  +    public abstract void setPassword(String value);
   
       public void loginSubmitAction(IRequestCycle cycle) {
           // Authenticate user's login attempt
  @@ -250,10 +244,6 @@
           throw new PageRedirectException("HelpDesk");
       }
       
  -    protected void initialize() {
  -        username = null;
  -        password = null;
  -     }
   }
   </pre>
       
  @@ -312,6 +302,7 @@
   &lt;/form&gt;
   
   
  +&lt;property-specification name=&quot;itemSelectionModel&quot; type=&quot;ItemSelectionModel&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;clothingItem&quot; type=&quot;Item&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;selectedComponent&quot; type=&quot;java.lang.String&quot;/&gt;<br>
   &lt;component id="purchaseForm" type="<A href="Form.html">Form</a>"&gt;
       &lt;binding name="listener" expression="listeners.formSubmit"/&gt;
   &lt;/component&gt;
  @@ -341,40 +332,19 @@
       &lt;binding name="tag" expression='"SUBMIT_ADD_TO_CHART"'/&gt;
   &lt;/component&gt;
   
  +public abstract class PurchagePage extends BasePage {
   
  -public class PurchagePage extends BasePage {
  -    private selectedComponent;
  -    private String clothingItem;
  -    private ItemSelectionModel itemSelectionModel;
  +    public abstract String getSelectedComponent();
       
  -    public String getSelectedComponent() { return selectedComponent; }
  +    public abstract void setSelectedComponent(String value);
   
  -    public void setSelectedComponent(String value) {
  -        selectedComponent = value;
  -    }
  +    public abstract Item getClothingItem();
   
  -    public Item getClothingItem() { return clothingItem;  }
  +    public abstract void setClothingItem(Item value);
   
  -    public void setClothingItem(Item value) { 
  -        clothingItem = value;  
  -        fireObservedChange("clothingItem", value);
  -    }
  +    public abstract ItemSelectionModel getItemSelectionModel();
   
  -    public ItemSelectionModel getItemSelectionModel() { 
  -        return itemSelectionModel;
  -    } 
  -
  -    public ItemSelectionModel setItemSelectionModel(ItemSelectionModel value) { 
  -        itemSelectionModel = value;
  -        fireObservedChange("itemSelectionModel", value);
  -    }
  -
  -    public void detach() {
  -        selectedComponent = null;
  -        clothingItem = null;
  -        itemSelectionModel = null;
  -        super.detach();
  -    }
  +    public abstract ItemSelectionModel setItemSelectionModel(ItemSelectionModel value);
   
       public void formSubmit(IRequestCycle cycle) {
           if (getSelectedComponent().equals("SELECT_ITEM")) {
  @@ -441,7 +411,8 @@
       }
   }
   </pre>
  - </td></tr></table>
  +    </td>
  +  </tr></table>
   <tr>
    <td colspan="3"><hr></td>  
   </tr>
  
  
  
  1.15      +6 -11     jakarta-tapestry/doc/src/ComponentReference/Shell.html
  
  Index: Shell.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Shell.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Shell.html	19 Oct 2003 22:08:07 -0000	1.14
  +++ Shell.html	2 Mar 2004 01:44:31 -0000	1.15
  @@ -253,23 +253,18 @@
   &lt;/html&gt;
   
   
  +&lt;property-specification name=&quot;dailyMessage&quot; type=&quot;java.lang.String&quot;/&gt;
  +&lt;property-specification name=&quot;messageClass&quot; type=&quot;java.lang.String&quot;/&gt;
   &lt;private-asset name="stylesheet" resource-path="/com/mycorp/pages/style.css"/&gt;
   
   
   package com.mycorp.pages.customer.login;
   
  -public class CustomerLoginPage extends BasePage {
  -    private String dailyMessage;
  -    private String messageClass;
  +public abstract class CustomerLoginPage extends BasePage {
  +    public abstract String getDailyMessage();
   
  -    public String getDailyMessage() { return dailyMessage; }
  +    public abstract String getMessageClass();
       
  -    public String getMessageClass() { return messageClass; }
  -    
  -    protected void initialize() {
  -        dailyMessage = null;
  -        messageClass = null;
  -    }
   }
   </pre>
             </td>
  
  
  
  1.10      +5 -22     jakarta-tapestry/doc/src/ComponentReference/DatePicker.html
  
  Index: DatePicker.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/DatePicker.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DatePicker.html	7 Feb 2004 23:58:47 -0000	1.9
  +++ DatePicker.html	2 Mar 2004 01:44:31 -0000	1.10
  @@ -185,28 +185,11 @@
   &lt;/table&gt;
   &lt;/form&gt;
   
  +&lt;property-specification name=&quot;startDate&quot; type=&quot;java.util.Date&quot;/&gt;<br>&lt;property-specification name=&quot;endDate&quot; type=&quot;java.util.Date&quot;/&gt;<br>	
  +public abstract class Dates extends BasePage {
  +    public abstract Date getStartDate();
   	
  -
  -public class Dates extends BasePage {
  -    private Date startDate;
  -    private Date endDate;
  - 
  -    public Date getStartDate() { return startDate; }
  -
  -    public void setStartDate(Date value) {
  -        startDate = value;
  -    }
  -
  -    public Date getEndDate() { return endDate; }
  -
  -    public void setEndDate(Date value) {
  -        endDate = value;
  -    }  
  -
  -    protected void initialize() {
  -        startDate = null;
  -        endDate = null;       
  -    }
  +    public abstract Date getEndDate();
   
       public void formSubmit(IRequestCycle cycle) {
           // Process the submitted dates.
  
  
  
  1.25      +9 -23     jakarta-tapestry/doc/src/ComponentReference/ValidField.html
  
  Index: ValidField.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/ValidField.html,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ValidField.html	16 Feb 2004 20:05:13 -0000	1.24
  +++ ValidField.html	2 Mar 2004 01:44:31 -0000	1.25
  @@ -263,6 +263,8 @@
               <pre>
   
   &lt;form jwcid=&quot;@<A href="Form.html">Form</A>&quot; delegate=&quot;ognl:beans.delegate&quot;&gt;<br>&lt;table class=&quot;examples&quot; cellpadding=&quot;2&quot;&gt;<br>&lt;tr&gt;<br> &lt;td colspan=&quot;2&quot;&gt;&lt;span class=&quot;title&quot;&gt;Regal Auctions Bid Page&lt;/span&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td colspan=&quot;2&quot;&gt;&lt;span jwcid=&quot;@ShowError&quot; delegate=&quot;ognl:beans.delegate&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td&gt;&lt;span jwcid=&quot;@<A href="FieldLabel.html">FieldLabel</A>&quot; field=&quot;ognl:components.lotNoField&quot;&gt;Lot Number&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input jwcid=&quot;lotNoField&quot; type=&quot;text&quot; size=&quot;4&quot; maxlength=&quot;4&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td&gt;&lt;span jwcid=&quot;@<A href="FieldLabel.html">FieldLabel</A>&quot; field=&quot;ognl:components.bidAmountField&quot;&gt;Bid Amount&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input jwcid=&quot;bidAmountField&quot; type=&quot;text&quot; size=&quot;7&quot; maxlength=&quot;7&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td&gt;&lt;span jwcid=&quot;@<A href="FieldLabel.html">FieldLabel</A>&quot; field=&quot;ognl:components.fullNameField&quot;&gt;Full Name&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input jwcid=&quot;fullNameField&quot; type=&quot;text&quot; size=&quot;25&quot; maxlength=&quot;30&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td&gt;&lt;span jwcid=&quot;@<A href="FieldLabel.html">FieldLabel</A>&quot; field=&quot;ognl:components.emailField&quot;&gt;Email&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input jwcid=&quot;emailField&quot; type=&quot;text&quot; size=&quot;25&quot; maxlength=&quot;30&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td&gt;&lt;span jwcid=&quot;@<A href="FieldLabel.html">FieldLabel</A>&quot; field=&quot;ognl:components.telephoneField&quot;&gt;Telephone&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input jwcid=&quot;telephoneField&quot; type=&quot;text&quot; size=&quot;25&quot; maxlength=&quot;30&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br> &lt;td colspan=&quot;2&quot; align=&quot;right&quot;&gt;<br>  &lt;input jwcid=&quot;@Submit&quot; listener=&quot;ognl:listeners.okSubmit&quot;  type=&quot;Submit&quot; value=&quot;   OK   &quot;/&gt;<br>  &lt;input jwcid=&quot;@Submit&quot; listener=&quot;ognl:listeners.cancelSubmit&quot;onclick=&quot;form.onsubmit = null;&quot;/&gt;<br> &lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;/form&gt;<br>
  +
  +&lt;property-specification name=&quot;lotBid&quot; type=&quot;com.mycorp.LotBid&quot; persistent=&quot;yes&quot; initial-value=&quot;new com.mycorp.LotBid()&quot;/&gt;<br>&lt;property-specification name=&quot;actionDetails&quot; type=&quot;com.mycorp.ActionDetails&quot; persistent=&quot;yes&quot;/&gt;<br>
   &lt;bean name="delegate" class="com.mycorp.FormValidationDelegate"/&gt;
   
   &lt;bean name="lotNoValidator" class="<A href="../api/org/apache/tapestry/valid/NumberValidator.html">org.apache.tapestry.valid.NumberValidator</a>"&gt;
  @@ -325,29 +327,13 @@
   &lt;/component&gt;
   
   
  +public abstract class LotBidPage extends BasePage {
  +    public abstract LotBid getLotBid();
  +
  +    public abstract void setLotBid(LotBid value);
  +    public asbtract AuctionDetails getAuctionDetails();
   
  -public class LotBidPage extends BasePage {
  -    private LotBid lotBid = new LotBid();
  -    private ActionDetails actionDetails;
  -
  -    public LotBid getLotBid() { return lotBid; }
  -
  -    public void setLotBid(LotBid value) {
  -        lotBid = value;
  -        fireObservedChange("lotBid", value);
  -    }
  -
  -    public AuctionDetails getAuctionDetails() { return auctionDetails; }
  -
  -    public void setAuctionDetails(AuctionDetails value) {
  -        auctionDetails = value;
  -        fireObservedChange("auctionDetails", value);
  -    }
  -
  -    protected void initialize() {
  -        lotBid = new LotBid();
  -        actionDetails = null;
  -    }
  +    public abstract void setAuctionDetails(AuctionDetails value);
   
       public void okSubmit(IRequestCycle cycle) {
           ValidationDelegate delegate = (ValidationDelegate) 
  
  
  
  1.14      +8 -17     jakarta-tapestry/doc/src/ComponentReference/Checkbox.html
  
  Index: Checkbox.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Checkbox.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Checkbox.html	24 Mar 2003 20:41:43 -0000	1.13
  +++ Checkbox.html	2 Mar 2004 01:44:31 -0000	1.14
  @@ -130,27 +130,18 @@
    &lt;input type="checkbox" jwcid="<span class="jwcid">@<a href="Checkbox.html">Checkbox</a></span>" selected="ognl:contactRep" disabled="ognl:staff"/&gt; Contact Sales Rep
   &lt;/form&gt;
   
  +&lt;property-specification name=&quot;contactRep&quot; type=&quot;boolean&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;staff&quot; type=&quot;boolean&quot;/&gt;<br>
  +public abstract class EnquiryPage extends BasePage {
  +    public abstract boolean isContactRep();
   
  -public class EnquiryPage extends BasePage {
  -    private boolean contactRep;
  -    private boolean isStaff;
  +    public abstract void setContactRep(boolean value);
      
  -    public boolean getContactRep() { return contactRep;  }
  +    public abstract boolean isStaff();
   
  -    public void setContactRep(boolean value) { 
  -        contactRep = value;
  -        fireObservedChange("contactRep", contactRep);  
  -    }
  -
  -    public boolean isStaff() { return isStaff; }
  -   
  -    protected void initialize() {
  -        contactRep = false;
  -        isStaff = false;
  -    }
  +    public abstract void setStaff(boolean staff);
   
       public void formSubmit(RequestCycle cycle) {
  -        if (getContactRep()) {
  +        if (isContactRep()) {
              // Process contact a sales representative request
           }
       }
  
  
  
  1.3       +2 -2      jakarta-tapestry/doc/src/ComponentReference/wml.Go.html
  
  Index: wml.Go.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/wml.Go.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wml.Go.html	21 Jan 2004 21:14:16 -0000	1.2
  +++ wml.Go.html	2 Mar 2004 01:44:31 -0000	1.3
  @@ -137,8 +137,8 @@
                 &lt;/wml&gt; </code></p>
               Specification<br><br>
               <code>&lt;page-specification class=&quot;org.apache.tapestry.wap.hello.Home&quot;&gt;<br>
  -              &nbsp;&lt;property-specification name=&quot;username&quot; type=&quot;java.lang.String&quot; 
  -              persistent=&quot;yes&quot; initial-value=&quot;null&quot;/&gt;<br>
  +            &nbsp;&lt;property-specification name=&quot;username&quot; type=&quot;java.lang.String&quot; 
  +            persistent=&quot;yes&quot;/&gt;<br>
                 &lt;/page-specification&gt;</code><br>
               
             </td>
  
  
  
  1.19      +2 -2      jakarta-tapestry/doc/src/ComponentReference/Conditional.html
  
  Index: Conditional.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Conditional.html,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Conditional.html	26 Jul 2003 02:18:27 -0000	1.18
  +++ Conditional.html	2 Mar 2004 01:44:31 -0000	1.19
  @@ -147,7 +147,7 @@
   &lt;span jwcid="@<a href="Conditional.html">Conditional</a>" condition="ognl:! manager"&gt; is not a Manager.&lt;/span&gt;
   
   
  -&lt;property-specification name=&quot;fullName&quot; type=&quot;java.lang.String&quot; persistent=&quot;no&quot;/&gt;<br>&lt;property-specification name=&quot;manager&quot; type=&quot;boolean&quot; persistent=&quot;no&quot;/&gt;<br>&lt;property-specification name=&quot;staffList&quot; type=&quot;java.util.List&quot; persistent=&quot;no&quot;/&gt;<br>
  +&lt;property-specification name=&quot;fullName&quot; type=&quot;java.lang.String&quot;/&gt;<br>&lt;property-specification name=&quot;manager&quot; type=&quot;boolean&quot;/&gt;<br>&lt;property-specification name=&quot;staffList&quot; type=&quot;java.util.List&quot;/&gt;<br>
   
   public abstract class EnquiryPage extends BasePage {
   
  
  
  
  1.18      +6 -13     jakarta-tapestry/doc/src/ComponentReference/Insert.html
  
  Index: Insert.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Insert.html,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Insert.html	2 Sep 2003 16:38:13 -0000	1.17
  +++ Insert.html	2 Mar 2004 01:44:31 -0000	1.18
  @@ -172,21 +172,14 @@
   The order was due on the &lt;span jwcid="<span class="jwcid">@<a href="Insert.html">Insert</a></span>" value="ognl:dueDate" format="ognl:@EnquiryPage.@DATE_FORMAT" class=&quot;ognl:dueClass&quot;/&gt;.
   
   
  +&lt;property-specification name=&quot;dueDate&quot; type=&quot;java.util.Date&quot;/&gt;<br>&lt;property-specification name=&quot;dueClass&quot; type=&quot;java.lang.String&quot;/&gt;<br>
   
  -public class EnquiryPage extends BasePage {
  -    public static final SimpleDateFormat DATE_FORMAT =
  -        new SimpleDateFormat("dd MMM yyyy");
  -    private Date dueDate;
  -    private String dueClass;
  +public abstract class EnquiryPage extends BasePage {
  +    public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd MMM yyyy");
   
  -    public Date getDueDate() { return dueDate; }
  +    public abstract Date getDueDate();
   
  -    public String getDueClass() { return dueClass; }
  -    
  -    protected void initialize() {
  -        dueDate = null;
  -        dueClass = null;
  -    }    
  +    public abstract String getDueClass();
   }
   </pre>
             </td>
  
  
  
  1.9       +5 -18     jakarta-tapestry/doc/src/ComponentReference/PageLink.html
  
  Index: PageLink.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/PageLink.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PageLink.html	24 Mar 2003 20:41:44 -0000	1.8
  +++ PageLink.html	2 Mar 2004 01:44:31 -0000	1.9
  @@ -186,28 +186,15 @@
               <pre>
   &lt;!-- Navigation Bar --&gt;
   &lt;table bgcolor="navy" cellpadding="8" cellspacing="6" width="100%"&gt;
  - &lt;tr&gt;
  -  &lt;span jwcid="@<a href="Foreach.html">Foreach</a>" source="ognl:engine@NAVIGATION_PAGES" value="ognl:navigationPage"&gt;
  + &lt;tr jwcid="@<a href="Foreach.html">Foreach</a>" source="ognl:engine@NAVIGATION_PAGES" value="ognl:navigationPage" element=&quot;tr&quot;&gt;
      &lt;td&gt;&lt;font color="white"&gt;&lt;b&gt;&lt;span jwcid="<span class="jwcid">@<a href="PageLink.html">PageLink</a></span>" page="ognl:navigationPage" disabled="ognl:! visit.authenticated"/&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
  -  &lt;/span&gt;
    &lt;/tr&gt;
   &lt;/table&gt;
   
   
  -
  -public class MailPage extends BasePage {
  -    private String navigationPage;
  -
  -    public String getNavigationPage() { return navigationPage; }
  -
  -    public void setNavigationPage(String value) {
  -        navigationPage = value;
  -    }
  -    
  -    public void detach() {
  -        navigationPage = null;
  -        super.detach();
  -    }
  +&lt;property-specification name=&quot;navigationPage&quot; type=&quot;java.lang.String&quot;/&gt;<br>
  +public abstract class MailPage extends BasePage {
  +    public abstract String getNavigationPage();
   }
   
   public class Visit implements Serializable {
  
  
  
  1.11      +6 -18     jakarta-tapestry/doc/src/ComponentReference/DirectLink.html
  
  Index: DirectLink.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/DirectLink.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DirectLink.html	26 Jul 2003 02:18:27 -0000	1.10
  +++ DirectLink.html	2 Mar 2004 01:44:31 -0000	1.11
  @@ -269,20 +269,12 @@
   &lt;/table&gt;
   
   
  -&lt;private-asset name="deleteImage" resource-path="/com/mycorp/delete.gif"/&gt;
  +&lt;property-specification name=&quot;customer&quot; type=&quot;com.mycorp.Customer&quot;/&gt;<br>&lt;private-asset name="deleteImage" resource-path="/com/mycorp/delete.gif"/&gt;
   
   
   package com.mycorp; 
   
  -public class SalesPage extends BasePage {
  -    private Customer customer;
  -	 
  -    public Customer getCustomer() { return customer; }
  -
  -    public void setCustomer(Customer value) {
  -        customer = value;
  -    }
  -    
  +public abstract class SalesPage extends BasePage {
       public void customerSelectAction(IRequestCycle cycle) {
           Visit visit = (Visit) getVisit();        
           Object[] parameters = cycle.getServiceParameters();
  @@ -297,10 +289,6 @@
           Customer customer = visit.findCustomerByPrimaryKey((Integer) parameters[0]);
           visit.deleteCustomer(customer);
       }
  -
  -    protected void initialize() {
  -        customer = null;
  -    }
   }
   
   public class Visit() implements Serializable {
  @@ -325,7 +313,7 @@
       }        	 
   }
   
  -public class Customer {
  +public class Customer implements Serializable {
       private Integer id;
       private String fullName;
       private String memberLevel;
  @@ -343,8 +331,8 @@
       public String getMemberLevel() { return memberLevel; }
   }
   </pre>      
  -
  - </td></tr></table>
  +          </td>
  +        </tr></table>
   </td></tr>
   <tr>
    <td colspan="3"><hr></td>
  
  
  
  1.15      +3 -7      jakarta-tapestry/doc/src/ComponentReference/Any.html
  
  Index: Any.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Any.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Any.html	21 Aug 2003 15:59:45 -0000	1.14
  +++ Any.html	2 Mar 2004 01:44:31 -0000	1.15
  @@ -128,7 +128,7 @@
   &lt;/order-list&gt;
   
   
  -&lt;property-specification name=&quot;orderItemList&quot; type=&quot;java.util.List&quot; persistent=&quot;no&quot;/&gt;<br>&lt;property-specification name=&quot;orderItem&quot; type=&quot;com.dsconsulting.order.model.OrderItem&quot; persistent=&quot;no&quot;/&gt;<br>
  +&lt;property-specification name=&quot;orderItemList&quot; type=&quot;java.util.List&quot;/&gt;<br>&lt;property-specification name=&quot;orderItem&quot; type=&quot;com.dsconsulting.order.model.OrderItem&quot;/&gt;<br>
   &lt;component id="<span class="jwcid">orderItem</span>" type="<A href="Any.html">Any</a>"&gt;
       &lt;binding name="id" expression="orderItem.id"/&gt;
       &lt;binding name="order-id" expression="orderItem.orderId"/&gt;
  @@ -142,14 +142,10 @@
       
       public abstract List getOrderItemList(); 
       public abstract void setOrderItemList(List value); 
  -
  -    public abstract OrderItem getOrderItem();
  -    public abstract void setOrderItem(OrderItem value);
   }
   
   public class OrderItem {
  -    private static final SimpleDateFormat DATE_FORMAT =
  -        new SimpleDateFormat("yyyy-MM-dd");
  +    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
       private Integer id;
       private Integer orderId;
       private Integer customerId;
  
  
  
  1.20      +53 -80    jakarta-tapestry/doc/src/ComponentReference/PropertySelection.html
  
  Index: PropertySelection.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/PropertySelection.html,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PropertySelection.html	18 Nov 2003 16:09:54 -0000	1.19
  +++ PropertySelection.html	2 Mar 2004 01:44:31 -0000	1.20
  @@ -190,25 +190,14 @@
    Gender: &lt;span jwcid="<span class="jwcid">@<a href="PropertySelection.html">PropertySelection</a></span>" model="ognl:@com.mycorp.DetailsPage@GENDER_MODEL" value="ognl:gender"/&gt;
   &lt;/form&gt;
   
  -
  -
  +&lt;property-specification name=&quot;gender&quot; type=&quot;java.lang.String&quot;/&gt;<br>
   package com.mycorp;
   
  -public class DetailsPage extends BasePage {
  +public abstract class DetailsPage extends BasePage {
       public static final <A href="../api/org/apache/tapestry/form/IPropertySelectionModel.html">IPropertySelectionModel</a> GENDER_MODEL = 
           new <A href="../api/org/apache/tapestry/form/StringPropertySelectionModel.html">StringPropertySelectionModel</a>(new String[] { "Unspecified", "Female", "Male" });
  -
  -    private String gender;
      
  -    public String getGender() { return gender;  }
  -
  -    public void setGender(String value) { 
  -        gender = value;
  -    }
  -   
  -    protected void initialize() {
  -        gender = null;
  -    }   
  +    public abstract String getGender();
   
       public void formSubmit(IRequestCycle cycle) {   
           // Process form submission
  @@ -263,87 +252,71 @@
       &lt;binding name="<b>submitOnChange</b>" expression="true"/&gt;
   &lt;/component&gt;
   
  +&lt;property-specification name=&quot;clothingItem&quot; type=&quot;Item&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;itemSelectionModel&quot; type=&quot;ItemSelectionModel&quot; persistent=&quot;yes&quot;/&gt;<br>
   
  +public abstract class PurchagePage extends BasePage {
   
  -    public class PurchagePage extends BasePage {
  -        private Item clothingItem;
  -        private ItemSelectionModel itemSelectionModel;
  -
  -        public Item getClothingItem() { return clothingItem;  }
  +    public abstract Item getClothingItem();
  +    public abstract void setClothingItem(Item value);
   
  -        public void setClothingItem(Item value) {
  -            clothingItem = value;
  -            fireObservedChange("clothingItem", value);
  -        }
  +    public abstract ItemSelectionModel getItemSelectionModel();
   
  -        public ItemSelectionModel getItemSelectionModel() {
  -            return itemSelectionModel;
  -        }
  +    public void setItemSelectionModel(ItemSelectionModel value);
   
  -        public void setItemSelectionModel(ItemSelectionModel value) {
  -            itemSelectionModel = value;
  -            fireObservedChange("itemSelectionModel", value);
  -        }
  -
  -        protected void initialize() {
  -            clothingItem = null;
  -            itemSelectionModel = null;
  -        }
  +    public void formSubmit(IRequestCycle cycle) {
  +        // Process form submission
  +    }
  +}
   
  -        public void formSubmit(IRequestCycle cycle) {
  -            // Process form submission
  -        }
  +public class Item implements Serializable {
  +    private int id;
  +    private String name;
  +    private String description;
  +    private String label;
  +    private String price;
  +
  +    public Item(int id, String name, String desc, String label, String price) {
  +        this.id = id;
  +        this.name = name;
  +        this.description = desc;
  +        this.label = label;
  +        this.price = price;
       }
   
  -    public class Item implements Serializable {
  -        private int id;
  -        private String name;
  -        private String description;
  -        private String label;
  -        private String price;
  +    public int getId() { return id;  }
   
  -        public Item(int id, String name, String desc, String label, String price) {
  -            this.id = id;
  -            this.name = name;
  -            this.description = desc;
  -            this.label = label;
  -            this.price = price;
  -        }
  +    public String getName() { return name;  }
   
  -        public int getId() { return id;  }
  +    public String getDescription() { return description;  }
   
  -        public String getName() { return name;  }
  +    public String getLabel() { return label;  }
   
  -        public String getDescription() { return description;  }
  +    public String getPrice() { return price;  }
  +}
   
  -        public String getLabel() { return label;  }
  +public class ItemSelectionModel implements IPropertySelectionModel, Serializable {
  +    private List itemList;
   
  -        public String getPrice() { return price;  }
  +    public ItemSelectionModel(List itemList) {
  +        this.itemList = itemList;
       }
   
  -    public class ItemSelectionModel implements IPropertySelectionModel, Serializable {
  -        private List itemList;
  -
  -        public ItemSelectionModel(List itemList) {
  -            this.itemList = itemList;
  -        }
  +    public int getOptionCount() { return itemList.size(); }
   
  -        public int getOptionCount() { return itemList.size(); }
  -
  -        public Object getOption(int index) {
  -            return itemList.get(index);
  -        }
  +    public Object getOption(int index) {
  +        return itemList.get(index);
  +    }
   
  -        public String getLabel(int index) {
  -            return ((Item) itemList.get(index)).getName();
  -        }
  +    public String getLabel(int index) {
  +        return ((Item) itemList.get(index)).getName();
  +    }
   
  -        public String getValue(int index) { return Integer.toString(index); }
  +    public String getValue(int index) { return Integer.toString(index); }
   
  -        public Object translateValue(String value) {
  -            return getOption(Integer.parseInt(value));
  -        }
  +    public Object translateValue(String value) {
  +        return getOption(Integer.parseInt(value));
       }
  +}
   </pre>
             </td>
           </tr></table>
  
  
  
  1.11      +2 -2      jakarta-tapestry/doc/src/ComponentReference/Image.html
  
  Index: Image.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Image.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Image.html	21 Aug 2003 16:00:06 -0000	1.10
  +++ Image.html	2 Mar 2004 01:44:31 -0000	1.11
  @@ -184,7 +184,7 @@
   &lt;/table&gt;
   
   
  -&lt;property-specification name=&quot;orderItem&quot; type=&quot;com.dsconsulting.cms.model.NewsItem&quot; persistent=&quot;no&quot;/&gt;<br>
  +&lt;property-specification name=&quot;orderItem&quot; type=&quot;com.dsconsulting.cms.model.NewsItem&quot;/&gt;<br>
   
   public abstract class NewsItemPage extends BasePage {
       public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd MMM yyyy");
  
  
  
  1.11      +5 -27     jakarta-tapestry/doc/src/ComponentReference/ActionLink.html
  
  Index: ActionLink.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/ActionLink.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ActionLink.html	24 Mar 2003 20:41:44 -0000	1.10
  +++ ActionLink.html	2 Mar 2004 01:44:31 -0000	1.11
  @@ -226,33 +226,11 @@
     &lt;/tr&gt;
   &lt;/table&gt;
   
  +&lt;property-specification name=&quot;customerList&quot; type=&quot;java.util.List&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;customer&quot; type=&quot;Customer&quot;/&gt;<br>
  +public abstract class SalesPage extends BasePage {
  +    public abstract List getCustomerList();
   
  -public class SalesPage extends BasePage {
  -    private List customerList;
  -    private Customer customer;
  -	 
  -    public List getCustomerList() { return customerList; }
  -	 
  -    public List setCustomerList(List value) { 
  -        customerList = value;
  -        fireObservedChange("customerList", value); 
  -    }
  -
  -    public Customer getCustomer() { return customer; }
  -
  -    public void setCustomer(Customer value) {
  -        customer = value;
  -    }
  -    
  -    public void customerSelectAction(IRequestCycle cycle) {
  -        Customer customer = getCustomer();
  -        // Perform some action with the selected customer.
  -    }
  -
  -    protected void initialize() {
  -        customerList = null;
  -        customer = null;
  -    }
  +    public abstract List setCustomerList(List value);
   }
   
   public class Customer implements Serializable {
  
  
  
  1.14      +5 -12     jakarta-tapestry/doc/src/ComponentReference/Body.html
  
  Index: Body.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/Body.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Body.html	24 Mar 2003 20:41:43 -0000	1.13
  +++ Body.html	2 Mar 2004 01:44:31 -0000	1.14
  @@ -122,19 +122,12 @@
   &lt;/body&gt;
   
   
  +&lt;property-specification name=&quot;accountStatus&quot; type=&quot;java.lang.String&quot; persistent=&quot;yes&quot;/&gt;<br>&lt;property-specification name=&quot;statusColor&quot; type=&quot;java.lang.String&quot; persistent=&quot;yes&quot;/&gt;<br>
   
  -public class AccountPage extends BasePage {
  -    private String accountStatus;
  -    private String statusColor;
  +public abstract class AccountPage extends BasePage {
  +    public void setAccountStatus(String accountStatus);
   
  -    public String getAccountStatus() { return accountStatus; }
  -
  -    public String getStatusColor() { return statusColor; }
  -    
  -    protected void initialize() {
  -        accountStatus = null;
  -        statusColor = null;
  -    }
  +    public void setStatusColor(String statusColor);
   }
   </pre>
             </td>
  
  
  

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