Turns out it was easy to fix, I've sent Mike/Anjo a fix.
On 11/26/07, Les Vogel <[EMAIL PROTECTED]> wrote:
>
> 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;
> onSlide = "function(v) { $('value').innerHTML = Math.floor(v) }";
> onChange = "function(v) { $('value').innerHTML = Math.floor (v) }";
> onChangeServer = "tableBodyUpdate()";
> }
>
> I translate that code to 5.4 style as:
>
> <wo:AjaxSlider orientation="horizontal" value="[dg.currentBatchIndex]"
> minimum="1" maximum="[ dg.batchCount]" onSlide = "function(v) {
> $('value').innerHTML = Math.floor(v) }" onChange = "function(v) {
> $('value').innerHTML = Math.floor(v)}" onChangeServer =
> "tableBodyUpdate()"/>
>
> 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
--
Les Vogel
808 870-0418
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]