gwt 2.8 and gwtbootstrap3 0.9.2

255 views
Skip to first unread message

Michael Joyner

unread,
Dec 8, 2015, 12:50:45 PM12/8/15
to google-we...@googlegroups.com, Jason Carter

Hello,

We are suddenly having an issue where the following function in
"org/gwtbootstrap3/extras/slider/client/ui/Slider.java" from the
gwtboostrap3 project is failing with "doubleValue 'not a function'".
We have tried passing the value in as (double)value,
Double.valueOf(value), new Double(value), but they all are ending with
the same error.

Is there some flag or some such we need to now set that wasn't not
required before?

@Override
protected native void setValue(Element e, Double value) /*-{
var doubleValue = value.@java.lang.Double::doubleValue()();
$wnd.jQuery(e).slider(@org.gwtbootstrap3.extras.slider.client.ui.base.SliderCommand::SET_VALUE, doubleValue);
}-*/;

-Mike/NewsRx

Jens

unread,
Dec 8, 2015, 1:57:46 PM12/8/15
to GWT Users, ja...@newsrx.com
Boolean and Double are now unboxed raw types when compiled to JS. I think that means inside JSNI methods a Double should be treated as double primitive. 

So something like

protected native void setValue(Element e, Double value) /*-{ 
    $wnd.jQuery(e).slider(@org.gwtbootstrap3.extras.slider.client.ui.base.SliderCommand::SET_VALUE, value); 
}-*/; 

should work now.

-- J.

Michael Joyner

unread,
Dec 8, 2015, 5:07:58 PM12/8/15
to google-we...@googlegroups.com

Is there a workaround? This is a pre-packaged JAR.

-Mike
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Thomas Broyer

unread,
Dec 8, 2015, 5:25:21 PM12/8/15
to GWT Users
Can you raise it in the issue tracker?

Frank

unread,
Dec 9, 2015, 7:46:33 AM12/9/15
to GWT Users, ja...@newsrx.com
I am using the snapshots version of gwt-bootstrap3 and had no issue upgrading to GWT2.8.0beta1 yesterday (this is the one I am using to be absolutely clear:  https://github.com/gwtbootstrap3/gwtbootstrap3).

According to me the snapshot version is more stable than the 0.9.3 release as this contains quite a few bugs solved in snapshot.



Op dinsdag 8 december 2015 18:50:45 UTC+1 schreef Michael Joyner:

Michael Joyner

unread,
Dec 9, 2015, 9:13:35 AM12/9/15
to google-we...@googlegroups.com
Is the snapshot available via maven?
--

Michael Joyner

unread,
Dec 9, 2015, 9:14:02 AM12/9/15
to google-we...@googlegroups.com
whose issue tracker?

gwtbootstrap3's or gwt's?

Thomas Broyer

unread,
Dec 9, 2015, 11:41:24 AM12/9/15
to GWT Users
If it used to work previously, then gwt's issue tracker.

Michael Joyner

unread,
Dec 9, 2015, 12:26:02 PM12/9/15
to google-we...@googlegroups.com


On 12/09/2015 11:41 AM, Thomas Broyer wrote:
> If it used to work previously, then gwt's issue tracker.

For those curious: https://github.com/gwtproject/gwt/issues/9242


Frank

unread,
Dec 9, 2015, 2:41:51 PM12/9/15
to GWT Users
No idea...

But I also should mention that I don't use the Slider anywhere in my project.

Op woensdag 9 december 2015 15:13:35 UTC+1 schreef Michael Joyner:
Is the snapshot available via maven?

On 12/09/2015 07:46 AM, Frank wrote:
I am using the snapshots version of gwt-bootstrap3 and had no issue upgrading to GWT2.8.0beta1 yesterday (this is the one I am using to be absolutely clear:  https://github.com/gwtbootstrap3/gwtbootstrap3).

According to me the snapshot version is more stable than the 0.9.3 release as this contains quite a few bugs solved in snapshot.



Op dinsdag 8 december 2015 18:50:45 UTC+1 schreef Michael Joyner:

Hello,

We are suddenly having an issue where the following function in
"org/gwtbootstrap3/extras/slider/client/ui/Slider.java" from the
gwtboostrap3 project is failing with "doubleValue 'not a function'".
We have tried passing the value in as (double)value,
Double.valueOf(value), new Double(value), but they all are ending with
the same error.

Is there some flag or some such we need to now set that wasn't not
required before?

@Override
     protected native void setValue(Element e, Double value) /*-{
         var doubleValue = val...@java.lang.Double::doubleValue()();
         $wnd.jQuery(e).slider(@org.gwtbootstrap3.extras.slider.client.ui.base.SliderCommand::SET_VALUE, doubleValue);
     }-*/;

-Mike/NewsRx
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages