• 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
Wonder bindings design in AjaxSlider (bigger issue)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wonder bindings design in AjaxSlider (bigger issue)


  • Subject: Wonder bindings design in AjaxSlider (bigger issue)
  • From: "Les Vogel" <email@hidden>
  • Date: Mon, 26 Nov 2007 14:27:55 -1000

Aloha,

  To use AjaxSlider, the example code looks like:

<webobject name="Slider"></webobject>
Slider :  AjaxSlider {
    orientation = "horizontal";
    value = dg.currentBatchIndex ;
    minimum = 1;
    maximum = dg.batchCount;
    { $('value').innerHTML = Math.floor(v) }";
    { $('value').innerHTML = Math.floor (v) }";
    >}

I translate that code to 5.4 style as:

<wo:AjaxSlider orientation="horizontal" value="[dg.currentBatchIndex]" minimum="1" maximum="[ dg.batchCount]" { $('value').innerHTML = Math.floor(v) }" { $('value').innerHTML = Math.floor(v)}"

The key point is minimum is "1", as =1 won't parse correctly.

Unfortunately, when I set a breakpoint in AjaxSlider.java and look at what's returned from valueForBinding("minimum") it's "1" not 1, the actual line being:

        Number min = (Number)valueForBinding("minimum", new Integer(0));

which causes an error.

I'd be happy to write this up as a bug, which it is, and I'd even be happy to fix the problems as I run into them, but I'd like to know what's right and how this should proceed.
--
Les Vogel
808 870-0418
 _______________________________________________
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: Wonder bindings design in AjaxSlider (bigger issue)
      • From: "Les Vogel" <email@hidden>
  • Prev by Date: Re: Object with globalID could not be found in the database, when it is there ??
  • Next by Date: Re: Wonder bindings design in AjaxSlider (bigger issue)
  • Previous by thread: Re: Object with globalID could not be found in the database, when it is there ??
  • Next by thread: Re: Wonder bindings design in AjaxSlider (bigger issue)
  • Index(es):
    • Date
    • Thread