This is what I do. Just an similar (but alternate) solution for the same function: What I do is select the <TR> tag I want to control dynamically and press the "Make Dynamic" button in the WO Builder inspector. Then bind the bgcolor (or these days the CSS style) that I want to use for the row. Then I bind that to whatever logic I want in the controller class. Example of my "highlighted" Person from one of my old projects: ----------------------------------------------- WOD file: ----------------------------------------------- ... ... PersonHightlighedTR: WOGenericContainer { bgcolor = personHighlight; elementName = "TR"; } ... ... ----------------------------------------------- Java file: ----------------------------------------------- ... ... protected Person currentPerson; <<-- Current object in repetition protected Person selectedPerson; <<-- The selected object ... ... public String personHighlight() { return (selectedPerson == currentPerson) ? "#96c8ff" : "#ffffff"; } ... ... On Jul 25, 2006, at 11:54 AM, Sacha Michel Mallais wrote:
-- Robert Walker |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com