Wonder bindings design in AjaxSlider (bigger issue)
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