• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Basic newbie questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Basic newbie questions
      • From: Cyrille Stepanyk <email@hidden>
References: 
 >Basic newbie questions (From: Cyrille Stepanyk <email@hidden>)

  • Prev by Date: Auto submission of form after the page has been loaded
  • Next by Date: Re: Child Parent Editing Context
  • Previous by thread: Basic newbie questions
  • Next by thread: Re: Basic newbie questions
  • Index(es):
    • Date
    • Thread