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; }
+<property-specification name="customerList" type="java.util.List" persistent="yes"/><br><property-specification name="customer" type="Customer"/><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 @@
</table>
</form>
-
-
-public OrderPage extends BasePage {
+<property-specification name="orderSize" type="java.lang.Integer" initial-value="@OrderPage@MEDIUM"/><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 @@
</form>
</table>
-
+<property-specification name="comments" type="java.lang.String" persistent="yes" initial-value="'Please enter your comments here'"/><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 @@
</table>
</form>
+<property-specification name="username" type="java.lang.String"/><br><property-specification name="password" type="java.lang.String"/><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 @@
</form>
+<property-specification name="itemSelectionModel" type="ItemSelectionModel" persistent="yes"/><br><property-specification name="clothingItem" type="Item" persistent="yes"/><br><property-specification name="selectedComponent" type="java.lang.String"/><br>
<component id="purchaseForm" type="<A href="Form.html">Form</a>">
<binding name="listener" expression="listeners.formSubmit"/>
</component>
@@ -341,40 +332,19 @@
<binding name="tag" expression='"SUBMIT_ADD_TO_CHART"'/>
</component>
+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 @@
</html>
+<property-specification name="dailyMessage" type="java.lang.String"/>
+<property-specification name="messageClass" type="java.lang.String"/>
<private-asset name="stylesheet" resource-path="/com/mycorp/pages/style.css"/>
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 @@
</table>
</form>
+<property-specification name="startDate" type="java.util.Date"/><br><property-specification name="endDate" type="java.util.Date"/><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>
<form jwcid="@<A href="Form.html">Form</A>" delegate="ognl:beans.delegate"><br><table class="examples" cellpadding="2"><br><tr><br> <td colspan="2"><span class="title">Regal Auctions Bid Page</span></td><br></tr><br><tr><br> <td colspan="2"><hr></td><br></tr><br><tr><br> <td colspan="2"><span jwcid="@ShowError" delegate="ognl:beans.delegate"/></td><br></tr><br><tr><br> <td><span jwcid="@<A href="FieldLabel.html">FieldLabel</A>" field="ognl:components.lotNoField">Lot Number</span></td><td><input jwcid="lotNoField" type="text" size="4" maxlength="4"/></td><br></tr><br><tr><br> <td><span jwcid="@<A href="FieldLabel.html">FieldLabel</A>" field="ognl:components.bidAmountField">Bid Amount</span></td><td><input jwcid="bidAmountField" type="text" size="7" maxlength="7"/></td><br></tr><br><tr><br> <td><span jwcid="@<A href="FieldLabel.html">FieldLabel</A>" field="ognl:components.fullNameField">Full Name</span></td><td><input jwcid="fullNameField" type="text" size="25" maxlength="30"/></td><br></tr><br><tr><br> <td><span jwcid="@<A href="FieldLabel.html">FieldLabel</A>" field="ognl:components.emailField">Email</span></td><td><input jwcid="emailField" type="text" size="25" maxlength="30"/></td><br></tr><br><tr><br> <td><span jwcid="@<A href="FieldLabel.html">FieldLabel</A>" field="ognl:components.telephoneField">Telephone</span></td><td><input jwcid="telephoneField" type="text" size="25" maxlength="30"/></td><br></tr><br><tr><br> <td colspan="2" align="right"><br> <input jwcid="@Submit" listener="ognl:listeners.okSubmit" type="Submit" value=" OK "/><br> <input jwcid="@Submit" listener="ognl:listeners.cancelSubmit"onclick="form.onsubmit = null;"/><br> </td><br></tr><br></table><br></form><br>
+
+<property-specification name="lotBid" type="com.mycorp.LotBid" persistent="yes" initial-value="new com.mycorp.LotBid()"/><br><property-specification name="actionDetails" type="com.mycorp.ActionDetails" persistent="yes"/><br>
<bean name="delegate" class="com.mycorp.FormValidationDelegate"/>
<bean name="lotNoValidator" class="<A href="../api/org/apache/tapestry/valid/NumberValidator.html">org.apache.tapestry.valid.NumberValidator</a>">
@@ -325,29 +327,13 @@
</component>
+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 @@
<input type="checkbox" jwcid="<span class="jwcid">@<a href="Checkbox.html">Checkbox</a></span>" selected="ognl:contactRep" disabled="ognl:staff"/> Contact Sales Rep
</form>
+<property-specification name="contactRep" type="boolean" persistent="yes"/><br><property-specification name="staff" type="boolean"/><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 @@
</wml> </code></p>
Specification<br><br>
<code><page-specification class="org.apache.tapestry.wap.hello.Home"><br>
- <property-specification name="username" type="java.lang.String"
- persistent="yes" initial-value="null"/><br>
+ <property-specification name="username" type="java.lang.String"
+ persistent="yes"/><br>
</page-specification></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 @@
<span jwcid="@<a href="Conditional.html">Conditional</a>" condition="ognl:! manager"> is not a Manager.</span>
-<property-specification name="fullName" type="java.lang.String" persistent="no"/><br><property-specification name="manager" type="boolean" persistent="no"/><br><property-specification name="staffList" type="java.util.List" persistent="no"/><br>
+<property-specification name="fullName" type="java.lang.String"/><br><property-specification name="manager" type="boolean"/><br><property-specification name="staffList" type="java.util.List"/><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 <span jwcid="<span class="jwcid">@<a href="Insert.html">Insert</a></span>" value="ognl:dueDate" format="ognl:@EnquiryPage.@DATE_FORMAT" class="ognl:dueClass"/>.
+<property-specification name="dueDate" type="java.util.Date"/><br><property-specification name="dueClass" type="java.lang.String"/><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>
<!-- Navigation Bar -->
<table bgcolor="navy" cellpadding="8" cellspacing="6" width="100%">
- <tr>
- <span jwcid="@<a href="Foreach.html">Foreach</a>" source="ognl:engine@NAVIGATION_PAGES" value="ognl:navigationPage">
+ <tr jwcid="@<a href="Foreach.html">Foreach</a>" source="ognl:engine@NAVIGATION_PAGES" value="ognl:navigationPage" element="tr">
<td><font color="white"><b><span jwcid="<span class="jwcid">@<a href="PageLink.html">PageLink</a></span>" page="ognl:navigationPage" disabled="ognl:! visit.authenticated"/></b></font></td>
- </span>
</tr>
</table>
-
-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();
- }
+<property-specification name="navigationPage" type="java.lang.String"/><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 @@
</table>
-<private-asset name="deleteImage" resource-path="/com/mycorp/delete.gif"/>
+<property-specification name="customer" type="com.mycorp.Customer"/><br><private-asset name="deleteImage" resource-path="/com/mycorp/delete.gif"/>
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 @@
</order-list>
-<property-specification name="orderItemList" type="java.util.List" persistent="no"/><br><property-specification name="orderItem" type="com.dsconsulting.order.model.OrderItem" persistent="no"/><br>
+<property-specification name="orderItemList" type="java.util.List"/><br><property-specification name="orderItem" type="com.dsconsulting.order.model.OrderItem"/><br>
<component id="<span class="jwcid">orderItem</span>" type="<A href="Any.html">Any</a>">
<binding name="id" expression="orderItem.id"/>
<binding name="order-id" expression="orderItem.orderId"/>
@@ -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: <span jwcid="<span class="jwcid">@<a href="PropertySelection.html">PropertySelection</a></span>" model="ognl:@com.mycorp.DetailsPage@GENDER_MODEL" value="ognl:gender"/>
</form>
-
-
+<property-specification name="gender" type="java.lang.String"/><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 @@
<binding name="<b>submitOnChange</b>" expression="true"/>
</component>
+<property-specification name="clothingItem" type="Item" persistent="yes"/><br><property-specification name="itemSelectionModel" type="ItemSelectionModel" persistent="yes"/><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 @@
</table>
-<property-specification name="orderItem" type="com.dsconsulting.cms.model.NewsItem" persistent="no"/><br>
+<property-specification name="orderItem" type="com.dsconsulting.cms.model.NewsItem"/><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 @@
</tr>
</table>
+<property-specification name="customerList" type="java.util.List" persistent="yes"/><br><property-specification name="customer" type="Customer"/><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 @@
</body>
+<property-specification name="accountStatus" type="java.lang.String" persistent="yes"/><br><property-specification name="statusColor" type="java.lang.String" persistent="yes"/><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