On 25.07.2006, at 17:54 Uhr, Sacha Michel Mallais wrote:

Then, inside the repetition, modify the <tr> tag to be <tr <WEBOBJECT NAME=HighlightConditional>style="background: grey;"</ WEBOBJECT>>, where HighlightConditional is a WOConditional bound to a method that returns true only when the selected index equals the current index.

Do you really use these nested tags? I have seen that this is working, but I really don't like it (just because of aesthetics).

For such things I use (HTML):

<webobject name="TableRowContainer">
        <td> ... </td>
</webobject>

and in the wod:

TableRowContainer: WOGenericContainer {
        elementName = "tr";
        class = styleClass;
}

where styleClass is a method in the java file that returns either null (then the style attribute isn't added to the html) or the class, I want to set the tr to.

cug
_______________________________________________
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

Reply via email to