• 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: Cyrille Stepanyk <email@hidden>
  • Date: Thu, 15 Sep 2005 10:12:45 +0200

Hi and thanks for your answers.

I agree that I should have a "class" binding however what I can't
figure out is how to identify the current link based on the fact that
the menu is inside a reusable template and all pages are partial docs.
I should have obviusly a method that returns a String with value
"currentSite" but only when the page is the current one.

Thanks,
Cyrille

2005/9/15, LD <email@hidden>:
> 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: Ute Hoffmann <email@hidden>
References: 
 >Basic newbie questions (From: Cyrille Stepanyk <email@hidden>)
 >Re: Basic newbie questions (From: LD <email@hidden>)

  • Prev by Date: Using completeURLWithRequestHandlerKey issue
  • Next by Date: strange EO error
  • Previous by thread: Re: Basic newbie questions
  • Next by thread: Re: Basic newbie questions
  • Index(es):
    • Date
    • Thread