Re: Page form or SubComponent form Design Pattern?
Re: Page form or SubComponent form Design Pattern?
- Subject: Re: Page form or SubComponent form Design Pattern?
- From: David LeBer <email@hidden>
- Date: Thu, 17 Feb 2005 18:39:22 -0500
On Feb 17, 2005, at 10:39 AM, Kieran Kelleher wrote:
I follow a design pattern whereby I have a reusable subcomponent for
every Entity and each Entity's reusable subcomponent has an
"isEditable" flag and contains two conditionals .... one showing
"editable version" of the EO with input fields, etc. and the other
showing display only with WOStrings, etc.
Completely separate from the original form question. If you are
building this kind of page (Edit-Or-View), I highly suggest you take a
look at Paul Suh's SwitchableStrings (I blogged about them a while back
<http://david.codebase.ca/index.php?p=32>).
Essentially they are replacements for the common standard WOElements
with an "editable" binding (Editable while true, View only while
false). I find they greatly reduce the complexity of my pages.
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden