Why instantiate this object? Why have a display method? I'm getting the output I need inside the execute method itself. Is this just good programming practice? I guess what I need is a little more explanation.
Yes it is good practice to keep all formatting and html output out of your components. That's why we instantiate the obejct and call the displayMethod. All the formatting and display is in the webskin folder.
Also good practice if you want to use the rule in many places throughout your site and in some places you may want your output to use one displayMethod, and in another it may need to be displayed a little differently so it would call a different display method. Eg the news rule. On a home page you would often use the news rule to display short teasers of news item. One a news archive page you would also use the news rule but this time you may want to display a little more about the news item, eg publish date, author, topic etc so you would create a different displayMethod for this. The one rule can handle both types of output by simply invoking the news object and calling the preferred displayMethod.
Hope that helps :)
-Brendan http://farcry.daemon.com.au
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
