On 5/28/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Thanks for the reference Craig; but unless I'm mis-reading you, that > still leaves me with data lookup 'hard coded' in Java classes. My goal > is to be able to change a page's data requirements without > recompilation.
If it would be OK to edit an XML configuration in concert with the page, then the Chain of Responsiblity might be useful. Each page can have a "view" command, which can be a chain of commands. When the data requirements of the page changes, the chain's configuration can be updated to add or subtract commands. Each command can be responsible for generating the content of a given control. The action just runs the chain and exposes the context to the page. If the chain changes, the context changes, but the Java code remains the same. Between iBATIS and Chain, we are able to make very significant changes to the content of a page, without touching the actual source code, just the XML configuration. -Ted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]