• 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: WOHyperlink disabled binding - set invert value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink disabled binding - set invert value


  • Subject: Re: WOHyperlink disabled binding - set invert value
  • From: "cheonghee" <email@hidden>
  • Date: Tue, 17 Jul 2007 16:16:05 +0800

I think this is what I am looking for, simple and straight-forward.  Apart
from writing the method which I usually end up to, wonder why WO could not
provide a way e.g !aBooleanFlag to allow for value invertion.

Thanks and appreciate.

On Mon, 16 Jul 2007 20:14:39 +0400, Denis Frolov wrote
> You can also use WOOgnl framework from Project Wonder to allow OGNL
> in bindings:
>
> String : WOString {
>    ...
>    disabled = "~!aBooleanFlag";
> }
>
> On Jul 16, 2007, at 6:16 PM, Zak Burke wrote:
>
> > cheonghee wrote on 7/16/07 7:01 AM:
> >> Hyperlink is disabled when aBooleanFlag is true.  How do i set it in
> >> reverse..Hyperlink is not disabled when aBooleanFlag is true only
> >> in the binding field? Thanks.
> >
> > The easiest thing is to write a cover method that flips the value
> > and bind to that in your .wod file:
> >
> > public boolean aBooleanFlag()
> > {
> >     return someConditional();
> > }
> >
> > public boolean notABooleanFlag()
> > {
> >     return ! aBooleanFlag();
> > }
> >
> > link: WOHyperLink {
> >     ...
> >     disabled = notABooleanFlag;
> > }
> >
> > zak.
> > _______________________________________________
> > 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
> >
> >
>
> --
> Denis Frolov
> Design Maximum MA
>
> Tel: +7 863 2648211
> Fax: +7 863 2645229
> Web: http://www.designmaximum.com



--
Open WebMail Project (http://openwebmail.org)

 _______________________________________________
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

References: 
 >WOHyperlink disabled binding - set invert value (From: "cheonghee" <email@hidden>)
 >Re: WOHyperlink disabled binding - set invert value (From: Zak Burke <email@hidden>)
 >Re: WOHyperlink disabled binding - set invert value (From: Denis Frolov <email@hidden>)

  • Prev by Date: Re: [OT] simple statistics
  • Next by Date: ERXMessageEncoding in Project Wonder
  • Previous by thread: Re: WOHyperlink disabled binding - set invert value
  • Next by thread: Re: Hierarchical Data Handling
  • Index(es):
    • Date
    • Thread