Re: Basic newbie questions
Re: Basic newbie questions
- Subject: Re: Basic newbie questions
- From: LD <email@hidden>
- Date: Thu, 15 Sep 2005 14:13:20 +1000
Hi Cyrille,
On 15/09/2005, at 3:36 AM, Cyrille Stepanyk wrote:
- I've a menu made of WOHyperlinks enclosed inside html unordered list
<ul>. So each link is inside a <li> tag and each going to a different
WOComponent.
What I'd like to do is to "highlight" the current page using CSS. Mean
that the current hyperlink should be displaying something like
class="current" for the <a> tag.
I've search for how to do that but with poor result so far.
Just add a binding for 'class'.
AHyperlink: WOHyperlink {
action = someAction;
<...>
class = hyperlinkClass;
}
- My second question is quite simlar : how to display the currently
selected item in WOPopupButton? In html its selected="selected". The
popup bindings are :
PopUpButton1: WOPopUpButton {
list = session.currentClient.toSites;
item = siteEnumerator;
selection = selectedSite;
displayString = siteEnumerator.name;
}
As you have guess this display a list of Sites for a Client.
Relationships for entities are Client <-->> Sites.
Those bindings should work as long as (selectedSite ==
siteEnumerator) at some point.
with regards,
--
LD
_______________________________________________
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