Re: Newbie question about highlighting rows
Re: Newbie question about highlighting rows
- Subject: Re: Newbie question about highlighting rows
- From: Guido Neitzer <email@hidden>
- Date: Tue, 25 Jul 2006 21:48:53 +0200
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden