Re: Code fails to compile with GWT 2.10.0

2023-11-22 Thread Velusamy Velu
Hi Colin:

I appreciate the prompt response, and will follow the links you provided.

Thanks

Velusamy K. Velu
614-323-9649
  
  


On Wed, Nov 22, 2023 at 10:23 AM Colin Alworth 
wrote:

> Reviewing https://github.com/GwtMaterialDesign/gwt-material/releases, I
> see that 2.4.0 was the first version that was built against GWT 2.9 itself,
> and latest HEAD still appears to use GWT 2.9.0 according to the pom file.
>
> On the other hand, at
> https://github.com/GwtMaterialDesign/gwt-material-jquery/releases (which
> is where the gwt.material.design.jquery.JQuery module in your error message
> comes from), it appears that gwt-material.jquery 2.6.0 removed IE10, so
> should be compatible with GWT 2.10.0. In turn,
> https://github.com/GwtMaterialDesign/gwt-material/blob/f00988f392ef0e8f4c839dce8cf1fbb05dc10ae6/gwt-material/pom.xml#L21
> shows that the gwt-material matches the same version of
> gwt-material-jquery, so I would expect that gmd 2.6.0+ will work for you
> (latest is 2.8.3).
>
> Their Javadoc is linked from their readme, see
> https://gwtmaterialdesign.github.io/gwt-material-demo/apidocs/. I don't
> obviously see AsyncButton in there (might be in one of the other repos like
> addins?) but I also don't use GMD on a regular basis.
>
> You might also find more luck in their gitter chat (
> https://matrix.to/#/#GwtMaterialDesign_gwt-material:gitter.im), slack
> channel (https://gmd-project.slack.com/), or issue tracker.
>
> On Tuesday, November 21, 2023 at 4:09:39 PM UTC-6 kool...@gmail.com wrote:
>
>> Attempting move an application that has been working good with GWT 2.9 to
>> 2.10.0. However, the compile task is running into the following issue:
>>
>> Listening for transport dt_socket at address: 4
>>  Loading inherited module 'com.peruselab.peruse.Peruse'
>> Loading inherited module 'gwt.material.design.GwtMaterialWithJQuery'
>>Loading inherited module
>> 'gwt.material.design.GwtMaterialDesignBase'
>>   Loading inherited module 'gwt.material.design.jquery.JQuery'
>>  Loading inherited module 'gwt.material.design.jscore.JSCore'
>> [ERROR] Line 26: Value 'ie10' in not a valid value for
>> property 'user.agent'
>>
>> Seeing the issue's originating from GMD, I thought I should move that too
>> from 2.1 to a higher version. Moved to 2.2 but the AsyncButton is moved
>> from gwt.material.design.incubator.client.async to somewhere else. Tried
>> looking for the release notes but I couldn't put my hands on that either.
>>
>> Any idea if AsyncButton is still available or replaced by something else?
>> Or, is there a pointer to the JavaDoc please?
>>
>> I appreciate your help.
>>
>> Thanks
>> Velu
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/iyH45FxhrAU/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/cdb3fca8-ea89-4db0-9c15-d436e2fed6a5n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAK%2B6W_HVOw%2B0Q%3DQjJgmySZiCJFG6X1Myk8_HuA%3D%3D6qpF35CLfQ%40mail.gmail.com.


Code fails to compile with GWT 2.10.0

2023-11-21 Thread Velusamy Velu
Attempting move an application that has been working good with GWT 2.9 to 
2.10.0. However, the compile task is running into the following issue:

Listening for transport dt_socket at address: 4
 Loading inherited module 'com.peruselab.peruse.Peruse'
Loading inherited module 'gwt.material.design.GwtMaterialWithJQuery'
   Loading inherited module 'gwt.material.design.GwtMaterialDesignBase'
  Loading inherited module 'gwt.material.design.jquery.JQuery'
 Loading inherited module 'gwt.material.design.jscore.JSCore'
[ERROR] Line 26: Value 'ie10' in not a valid value for 
property 'user.agent'

Seeing the issue's originating from GMD, I thought I should move that too 
from 2.1 to a higher version. Moved to 2.2 but the AsyncButton is moved 
from gwt.material.design.incubator.client.async to somewhere else. Tried 
looking for the release notes but I couldn't put my hands on that either.

Any idea if AsyncButton is still available or replaced by something else? 
Or, is there a pointer to the JavaDoc please?

I appreciate your help.

Thanks
Velu

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/29ee4fe9-813f-4cf2-b6c2-8ca7edab3dccn%40googlegroups.com.


Re: Security Vulnerabilities with GWT

2020-06-29 Thread Velusamy Velu
Is there a documented or demonstrated case of break-in using any of the 
vulnerabilities listed in your post, in an application developed with GWT 
framework? Do these vulnerabilities matter if a GWT application doesn't use 
GWT's RPC?

On Monday, June 29, 2020 at 6:57:41 AM UTC-4, Priya Kolekar wrote:
>
>
> Hi All,
>
> Security Vulnerability have been detected in gwt-dev.jar & 
> gwt-servlet.jar(in release 2.8.2) & are reported by Dependency checker 
> tool .
>
> Below are the details -
>
> Gwt-dev.jar -
> 1.1 Vulnerable version of jetty library(current version-- 9.2.14, 
> available version -9.2.27+ )
> 1.2 Vulnerable version of commons-collections(current version - 3.2.1)
> 1.3 Vulnerable version of org.apache.httpcomponents:httpclient(current 
> version - 4.3.1)
> 1.4 Vulnerable version of Google Protobuf(current version - 2.5.0, 
> available version - 3.4.0)
> 1.5  Vulnerable version of htmlunit ( current version - 2.19 , available 
> version- 2.37)
>
> Gwt-servlet.jar -
> 1.1 Vulnerable version of Google Protobuf(current version - 2.5.0, 
> available version - 3.4.0)
>
> Given above vulnerabilities -
> 1. Are those security issues addressed in latest 2.9.0 release?
> 2. If no, is there a plan to include them in any future release say 3.x?
> 3. As we know that gwt-dev.jar is used for development purpose & can be 
> flagged as false positive, still are there any attack surfaces exists?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ffaffa6f-6753-4546-ba7b-db2cb85e9a6eo%40googlegroups.com.


Re: GWT Support for Touch Event

2019-09-11 Thread Velusamy Velu
Jens:

Earlier you said "Touch devices usually emulate classic click / mouse move 
events as well". I have seen the mouse event handlers handling TouchStart 
consistently, as you said. But the same is not true for TouchMove. I have 
code that has been working as expected in handling mouse events. But the 
same set of code work only for the TouchStart.

event.preventDefault() & event.stopPropagation() didn't make any difference.

I see the value in creating a sample project to isolate the error. Thanks 
for your suggestion, we will work on that.

--Velu

On Sunday, September 8, 2019 at 12:21:44 PM UTC-4, Jens wrote:
>
>
> So you are saying the browser fires a touchend event but the GWT event 
>> handler isn't called as a result?
>>
>
> or touchmove
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/e61ba3cc-8e5c-4750-a238-f48a712c3f95%40googlegroups.com.


Re: GWT Support for Touch Event

2019-09-11 Thread Velusamy Velu
Craig:

This seems to be an unyielding beast, at least for me.

I have added event.preventDefault() and event.stopPropagation() and tried. 
The major difference between your app and my app is the use of canvas vs 
SVG. I'm using SVG.

I do see TouchStart, TouchMove, & TouchEnd but inconsistently.

I'm stopping this effort for now and revisit later.

Thanks for your suggestions.

On Monday, September 9, 2019 at 10:07:15 PM UTC-4, Craig Mitchell wrote:
>
> Ah, sorry, yes. I was remembering.
>
> Maybe try calling preventDefault and/or stopPropagation on the event.
>
> On my app, all the events come through perfectly.  I do however, only have 
> a Canvas on the page.  No other HTML elements to mess with the events.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/812f0896-8fac-4d25-a877-fa4327316277%40googlegroups.com.


Re: GWT Support for Touch Event

2019-09-09 Thread Velusamy Velu
Craig:

Tried your suggestion, apparently drawingPaper.*addDomHandler *and 
drawingPaper.*addHandler* are behaving identically. The first touch 
(equivalent to mouse button down), the first "touch move" (mouse move) and 
touch end (mouse button up) are working as expected. The subsequent touches 
and touch moves are unpredictable. It appears that once a touch event is 
handled (touch down or touch move or touch end) there appears to be a 
requirement to do a "cleanup". Though it's not clear what it is supposed to 
be. Any ideas? Please let me know.

Thank You
-Velu

On Monday, September 9, 2019 at 1:49:47 PM UTC-4, Velusamy Velu wrote:
>
> Craig:
>
> I appreciate your suggestion. Behind the scene I'm handling multiple 
> touches, though only one touch is being considered. The difference between 
> your approach and mine is drawingPaper.*addDomHandler *and drawingPaper.
> *addHandler*. I will give it a try and let you know.
>
> Thank You
> --v
>
> On Monday, September 9, 2019 at 4:40:38 AM UTC-4, Craig Mitchell wrote:
>>
>> I found this as well.  I think browser implementation of these old single 
>> touch events isn't great.  I switched to using the multi touch versions.  
>> Something like this:
>>
>> private HashMap touches;
>>
>> private void handleScreenTouches(JsArray newTouches, boolean 
>> touchDown) {
>>   // Update the touch collection
>>   for (int i=0; i> Touch touch = newTouches.get(i);
>> if (touch != null) {
>>   if (touchDown) {
>> touches.put(touch.getIdentifier(), touch);
>>   }
>>   else {
>> touches.remove(touch.getIdentifier());
>>   }
>> }
>>   }
>>
>>   // Look through the remaining touches
>>   for (Touch touch : touches.values()) {
>> ...
>>   }
>> }
>>
>> drawingPaper.addDomHandler(event -> {
>> handleScreenTouches(event.getChangedTouches(), true);
>> }, TouchStartEvent.getType()));
>>
>>
>> drawingPaper.addDomHandler(event -> {
>> handleScreenTouches(event.getChangedTouches(), true);
>> }, TouchMoveEvent.getType()));
>>
>>
>> drawingPaper.addDomHandler(event -> {
>> handleScreenTouches(event.getChangedTouches(), false);
>> }, TouchEndEvent.getType()));
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/86a08eab-51b0-47f5-ac6d-6120359e648a%40googlegroups.com.


Re: GWT Support for Touch Event

2019-09-09 Thread Velusamy Velu
Craig:

I appreciate your suggestion. Behind the scene I'm handling multiple 
touches, though only one touch is being considered. The difference between 
your approach and mine is drawingPaper.*addDomHandler *and drawingPaper.
*addHandler*. I will give it a try and let you know.

Thank You
--v

On Monday, September 9, 2019 at 4:40:38 AM UTC-4, Craig Mitchell wrote:
>
> I found this as well.  I think browser implementation of these old single 
> touch events isn't great.  I switched to using the multi touch versions.  
> Something like this:
>
> private HashMap touches;
>
> private void handleScreenTouches(JsArray newTouches, boolean 
> touchDown) {
>   // Update the touch collection
>   for (int i=0; i Touch touch = newTouches.get(i);
> if (touch != null) {
>   if (touchDown) {
> touches.put(touch.getIdentifier(), touch);
>   }
>   else {
> touches.remove(touch.getIdentifier());
>   }
> }
>   }
>
>   // Look through the remaining touches
>   for (Touch touch : touches.values()) {
> ...
>   }
> }
>
> drawingPaper.addDomHandler(event -> {
> handleScreenTouches(event.getChangedTouches(), true);
> }, TouchStartEvent.getType()));
>
>
> drawingPaper.addDomHandler(event -> {
> handleScreenTouches(event.getChangedTouches(), true);
> }, TouchMoveEvent.getType()));
>
>
> drawingPaper.addDomHandler(event -> {
> handleScreenTouches(event.getChangedTouches(), false);
> }, TouchEndEvent.getType()));
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/50e9d8ea-bc1d-4183-81f8-e8ff7b2cfcf4%40googlegroups.com.


Re: Hammer GWT Support for Touch Event

2019-09-09 Thread Velusamy Velu
Hi Frank:

I appreciate your suggestion. Is there a jar for it in the maven rep? 
Please let me know.

Thank You
--v

On Monday, September 9, 2019 at 4:12:45 AM UTC-4, Frank wrote:
>
> Try using the ahome wrapper instead of the geomajas wrapper: 
> https://github.com/ahome-it/ahome-hammer
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/2f7f6b26-e041-47ee-960d-52f0584374e0%40googlegroups.com.


Re: GWT Support for Touch Event

2019-09-08 Thread Velusamy Velu
Jens:

I appreciate your feedback. "Touch devices usually emulate classic click / 
mouse move events as well" - I understood that but the touch move is not 
translated into a mouse move with the button down. That's the only reason I 
ventured into supporting touch events.

"so if you have handlers for both they might interfere each other and 
breaking code assumptions." - Yes, I'm aware of that. To solve it I have 
separate handlers which extract the position of the click/touch & current 
position when moving. Doing anything with those coordinates is a whole 
different task and handled by different methods.

"Maybe you should log all events using an event preview handler to figure 
out why your code does not work as expected." I did all these without any 
success and coming to this forum only as a last resort for help.

--v

On Sunday, September 8, 2019 at 11:39:36 AM UTC-4, Jens wrote:
>
> Touch devices usually emulate classic click / mouse move events as well, 
> so if you have handlers for both they might interfere each other and 
> breaking code assumptions.
>
> Other than that, GWT does not do any real magic when it comes to events. 
> Touch events are handled the same as click events or other browser events.
>
> Maybe you should log all events using an event preview handler to figure 
> out why your code does not work as expected.
>
> -- J.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/43bd20cf-a155-4e6e-9957-83d63979b4dd%40googlegroups.com.


Hammer GWT Support for Touch Event

2019-09-07 Thread Velusamy Velu
This is a continuation of my post yesterday 
 on 
almost the same topic. Having failed to handle 
com.google.gwt.event.dom.client.TouchMove I attempted to use Hammer GWT. 
Pretty much this also failed me. I could see it handling 
org.geomajas.hammergwt.client.event.EventType.TAP, 
org.geomajas.hammergwt.client.event.EventType.SWIPE, 
org.geomajas.hammergwt.client.event.EventType.SWIPERIGHT, 
org.geomajas.hammergwt.client.event.EventType.SWIPERIGHT and 
occasionally org.geomajas.hammergwt.client.event.EventType.DOUBLETAP. So, 
I'm pretty much in the same soup as I was before. Here's the sample code.

import staticorg.geomajas.hammergwt.client.event.EventType.*;

HammerTime hammerTime = HammerGwt.create(drawingPaper);
HammerGwt.on(hammerTime, new HammerHandler() {

  @Override
  public void onHammerEvent(NativeHammerEvent event) {
EventType eventType = event.getType();
MaterialToast.fireToast(eventType.toString(), 5000);
  }
}, DOUBLETAP, DRAG, DRAGDOWN, DRAGEND, DRAGLEFT, DRAGRIGHT, DRAGSTART, 
DRAGUP, GESTURE, HOLD,
PINCH, PINCHIN, PINCHOUT, RELEASE, ROTATE, SWIPE, SWIPEDOWN, SWIPELEFT, 
SWIPERIGHT, SWIPEUP,
TAP, TOUCH, TRANSFORM, TRANSFORMEND, TRANSFORMSTART);

As in my earlier post I'm using browsers like Chrome, Firefox, Duck Duck 
Go, Bravo, Opera, and Opera Mini on my Pixel 2 and Samsung Galaxy Tab A.

Any suggestions would be very much appreciated.

Thank You

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/f76f6355-d342-4d8e-8699-83f5e16273eb%40googlegroups.com.


GWT Support for Touch Event

2019-09-06 Thread Velusamy Velu
I'm implementing an online drawing tool using GWT & HTML5. I have handled 
mouse events successfully and I'm venturing in to handling touch events to 
cover devices that only fire touch events. I have tried  
com.google.gwt.event.dom.client.Touch*Events. 

I do notice TouchStart, TouchMove, & TouchEnd events being fired. However, 
when these events utilized (start drawing, continue drawing, finish 
drawing; for e.g., a line) handling events become inconsistent. TouchStart 
is always handled well but the other two, TouchMove and TouchEnd aren't 
handled consistently. Given below is a segment of code.
drawingPaper.sinkEvents(Event.TOUCHEVENTS);

// Handle touch start
drawingPaper.addHandler(new TouchStartHandler() {
  @Override
  public void onTouchStart(TouchStartEvent event) {
startingPoint = PointerEventHelper.getUsableLocation(event, ...);
// no device specific code in the method below
handlePointerDownActionImpl(); /* Consistently getting called */
  }
}, TouchStartEvent.getType());

// Handle touch move
drawingPaper.addHandler(new TouchMoveHandler() {
  @Override
  public void onTouchMove(TouchMoveEvent event) {
currentLocation = PointerEventHelper.getUsableLocation(event, ...);
// no device specific code in the method below
handlePointerMoveActionImpl(); /* Call to this is inconsistent */
  }
}, TouchMoveEvent.getType());


I'm using browsers like Chrome, Firefox, Duck Duck Go, Bravo, Opera, and 
Opera Mini on my Pixel 2 and Samsung Galaxy Tab A.

Any suggestions would be very much appreciated.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/15c87eb4-acec-4c78-8870-406cdc63a5f9%40googlegroups.com.


Re: Unexpected behavior

2019-03-14 Thread Velusamy Velu
Colin:

Appreciate that, and I got the solution I have been looking for in your 
response.

On Thursday, March 14, 2019 at 8:48:09 AM UTC-4, Colin Alworth wrote:
>
> Also telling your JS debugger to pause on uncaught exceptions will help - 
> it will stop when that null.toString() takes place, letting you examine 
> which method you are in when it happens, and which local variable or field 
> is null.
>
> On Wednesday, March 13, 2019 at 3:33:48 PM UTC-5, Jens wrote:
>>
>> Why don't you just look at the JavaScript in Chrome to see if GWT 
>> compiler did some easy optimizations which cause your stepping though 
>> source maps look strange.
>>
>> Especially if you start SDM using -style PRETTY and 
>> -XmethodNameDisplayMode you can understand the JS relatively well, even 
>> without deep JS knowledge.
>>
>> -- J.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unexpected behavior

2019-03-13 Thread Velusamy Velu
Paul:

I appreciate your prompt response and suggestions.

Yes, I'm aware of the toString() on a null object. My attempt is to 
identify how it landed on statement that doesn't make any sense to me.

That's the main issue. As you suggested I attempted to get more meaningful 
exception stack. Tried the following set of parameters, still I only get a 
cryptic message.

-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" 
-startupUrl Peruse.html 
-logLevel ALL 
-style PRETTY 
-XmethodNameDisplayMode FULL 
-gen DEBUGGING 
-codeServerPort 9997 
-port  
-war /.../.../.../Repository/peruse/war com.peruselab.peruse.Peruse

Does that combination make sense? I do see a ton of activity in the Eclipse 
console but no use in the stack trace.

On Tuesday, March 12, 2019 at 6:13:46 PM UTC-4, Paul Robinson wrote:
>
> I don't think you're showing us enough code. The exception indicates 
> something is calling toString() on a null object, but there's nothing in 
> what you've shown us that calls a toString() method.
>
> Try compiling in pretty mode with full stack traces. You'll see better 
> error information.
>
> Paul
>
> On Tue, 12 Mar 2019, 21:53 Velusamy Velu, > 
> wrote:
>
>> Adding a larger screen clip.
>>
>>
>> [image: Screen Shot 2019-03-12 at 5.40.52 PM.png]
>>
>>
>> On Tuesday, March 12, 2019 at 5:48:59 PM UTC-4, Velusamy Velu wrote:
>>>
>>> Friends:
>>>
>>> I'm developing a Chemical drawing tool and have been progressing 
>>> steadily with a lot of difficulties. My technology stack is Java 8, GWT 
>>> 2.8.2, GMD 2.x, Eclipse Photon, running on a MacBook Pro, and Chrome | 
>>> Firefox | Opera for testing. A limited functioning pilot is running at 
>>> http://peruselab.com.
>>>
>>> I just ran into a trouble that I couldn't figure out on my own. Below 
>>> are the relevant snippets of code that's causing trouble. The call (1) 
>>> ActionHandlerMap.getHandler(action) is expected to return an instance 
>>> of PeruseEventHandler. I expect the sequence of execution to be 1, 2, & 3. 
>>> However, upon returning from 2 (verified with the debugger) I see the 
>>> control going to 4 (screen clip 1) followed by throwing an exception 
>>> (screen clip 2). Any idea what could be wrong? Your help will be greatly 
>>> appreciated.
>>>
>>> ...
>>>
>>>   PeruseEventHandler eventHandler = ActionHandlerMap.*getHandler*(action); 
>>> // 1
>>>   Globals.*currentShape* = eventHandler.handle(*null*, *null*); // 3
>>> ...
>>>
>>> *public* *class* ActionHandlerMap {
>>>
>>>   *public* *static* *final* Map 
>>> *ACTION_HANDLER_MAP* = *new* HashMap<>();
>>>
>>>
>>>   *static* {
>>>
>>> *ACTION_HANDLER_MAP*.put(Action.*DRAW_SINGLE_BOND*, *new* 
>>> SingleBondDrawingHandler());
>>>
>>>   }
>>>
>>>
>>>   *public* *static* PeruseEventHandler getHandler(Action anAction) {
>>>
>>> *return* *ACTION_HANDLER_MAP*.get(anAction); // 2
>>>
>>>   }
>>>
>>> }
>>>
>>>
>>> *public* *class* Globals {
>>>
>>>   *public* *static* Action *action*;
>>>
>>>   *public* *static* Shape *currentShape*; // 4
>>>
>>> }
>>> Enter code here...
>>>
>>>
>>> [image: Screen Shot 2019-03-12 at 5.36.35 PM.png]
>>>
>>> Screen clip 1
>>>
>>>
>>>
>>> [image: Screen Shot 2019-03-12 at 5.40.52 PM.png]
>>>
>>>
>>>
>>> -- 
>> 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+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unexpected behavior

2019-03-12 Thread Velusamy Velu


Adding a larger screen clip.


[image: Screen Shot 2019-03-12 at 5.40.52 PM.png]


On Tuesday, March 12, 2019 at 5:48:59 PM UTC-4, Velusamy Velu wrote:
>
> Friends:
>
> I'm developing a Chemical drawing tool and have been progressing steadily 
> with a lot of difficulties. My technology stack is Java 8, GWT 2.8.2, GMD 
> 2.x, Eclipse Photon, running on a MacBook Pro, and Chrome | Firefox | Opera 
> for testing. A limited functioning pilot is running at 
> http://peruselab.com.
>
> I just ran into a trouble that I couldn't figure out on my own. Below are 
> the relevant snippets of code that's causing trouble. The call (1) 
> ActionHandlerMap.getHandler(action) is expected to return an instance of 
> PeruseEventHandler. I expect the sequence of execution to be 1, 2, & 3. 
> However, upon returning from 2 (verified with the debugger) I see the 
> control going to 4 (screen clip 1) followed by throwing an exception 
> (screen clip 2). Any idea what could be wrong? Your help will be greatly 
> appreciated.
>
> ...
>
>   PeruseEventHandler eventHandler = ActionHandlerMap.*getHandler*(action); 
> // 1
>   Globals.*currentShape* = eventHandler.handle(*null*, *null*); // 3
> ...
>
> *public* *class* ActionHandlerMap {
>
>   *public* *static* *final* Map 
> *ACTION_HANDLER_MAP* = *new* HashMap<>();
>
>
>   *static* {
>
> *ACTION_HANDLER_MAP*.put(Action.*DRAW_SINGLE_BOND*, *new* 
> SingleBondDrawingHandler());
>
>   }
>
>
>   *public* *static* PeruseEventHandler getHandler(Action anAction) {
>
> *return* *ACTION_HANDLER_MAP*.get(anAction); // 2
>
>   }
>
> }
>
>
> *public* *class* Globals {
>
>   *public* *static* Action *action*;
>
>   *public* *static* Shape *currentShape*; // 4
>
> }
> Enter code here...
>
>
> [image: Screen Shot 2019-03-12 at 5.36.35 PM.png]
>
> Screen clip 1
>
>
>
> [image: Screen Shot 2019-03-12 at 5.40.52 PM.png]
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Unexpected behavior

2019-03-12 Thread Velusamy Velu
Friends:

I'm developing a Chemical drawing tool and have been progressing steadily 
with a lot of difficulties. My technology stack is Java 8, GWT 2.8.2, GMD 
2.x, Eclipse Photon, running on a MacBook Pro, and Chrome | Firefox | Opera 
for testing. A limited functioning pilot is running at http://peruselab.com.

I just ran into a trouble that I couldn't figure out on my own. Below are 
the relevant snippets of code that's causing trouble. The call (1) 
ActionHandlerMap.getHandler(action) is expected to return an instance of 
PeruseEventHandler. I expect the sequence of execution to be 1, 2, & 3. 
However, upon returning from 2 (verified with the debugger) I see the 
control going to 4 (screen clip 1) followed by throwing an exception 
(screen clip 2). Any idea what could be wrong? Your help will be greatly 
appreciated.

...

  PeruseEventHandler eventHandler = ActionHandlerMap.*getHandler*(action); 
// 1
  Globals.*currentShape* = eventHandler.handle(*null*, *null*); // 3
...

*public* *class* ActionHandlerMap {

  *public* *static* *final* Map 
*ACTION_HANDLER_MAP* = *new* HashMap<>();


  *static* {

*ACTION_HANDLER_MAP*.put(Action.*DRAW_SINGLE_BOND*, *new* 
SingleBondDrawingHandler());

  }


  *public* *static* PeruseEventHandler getHandler(Action anAction) {

*return* *ACTION_HANDLER_MAP*.get(anAction); // 2

  }

}


*public* *class* Globals {

  *public* *static* Action *action*;

  *public* *static* Shape *currentShape*; // 4

}
Enter code here...


[image: Screen Shot 2019-03-12 at 5.36.35 PM.png]

Screen clip 1



[image: Screen Shot 2019-03-12 at 5.40.52 PM.png]



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Why the GWT complier used so much memory?

2018-09-09 Thread Velusamy Velu
Peter:

>From your screen clip it seems about 66% of the available memory is used by 
GWT/Java. How slow is the compilation or how long does it take to do a 
build? Can you give us an idea about the complexity of your application, 
the configuration of your system (memory, CPU, etc.) please?

On Sunday, September 9, 2018 at 4:55:39 AM UTC-4, Peter Cao wrote:
>
> Thanks Luke,
>
> Are there someone working on the optimization of the GWT compiler, it is 
> too slow for us
>
> 在 2018年9月1日星期六 UTC+8下午7:51:09,Luke Last写道:
>>
>> If you're compiling multiple permutations at a time you could reduce the 
>> number.
>>
>> On Thursday, August 30, 2018 at 7:30:17 AM UTC-4, Peter Cao wrote:
>>>
>>>
>>>
>>>
>>> When i was compiling the GWT application,the CPU usage is showing below
>>>
>>> How can i reduce the memory footprint of my application
>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Mouse Events - Move event always follows a mouse up

2018-09-02 Thread Velusamy Velu
I did some experiments with JS as Thomas suggested. Found Chrome & Opera 
firing a mouseMoved event in the end of the sequence: mouseDown, mouseMove, 
mouseUp.

Firefox and MS Edge on the hand behaved as expected - means, the last fired 
event was mouseUp.
Safari on Mac - is inconclusive. The touchpad works as expected, mouseUp 
was the last event fired. With a mouse it's mixed.

Below is the test code.






function mouseDown() {
document.getElementById("myDiv").style.background = "red";
}

function mouseUp() {
document.getElementById("myDiv").style.background = "green";
}

function mouseMove() {
document.getElementById("myDiv").style.background = "blue";
}

function mouseOut() {
document.getElementById("myDiv").style.background = "white";
}



div {
height: 200px;
width: 50%;
background-color: powderblue;
font-family: Verdana;
border: 2px solid black;
    }










On Sunday, September 2, 2018 at 11:29:49 AM UTC-4, Velusamy Velu wrote:
>
> I should have been more careful about what I claimed. Probably my claim 
> that "causes GWT to register a mouse move" is wrong. I think you are right, 
> those events are dispatched by the browser. I haven't tried JS yet.
>
> On Sunday, September 2, 2018 at 4:44:22 AM UTC-4, Thomas Broyer wrote:
>>
>> Could it just be the events your browser dispatches? Have you tried in 
>> pure JS?
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Mouse Events - Move event always follows a mouse up

2018-09-02 Thread Velusamy Velu
I should have been more careful about what I claimed. Probably my claim 
that "causes GWT to register a mouse move" is wrong. I think you are right, 
those events are dispatched by the browser. I haven't tried JS yet.

On Sunday, September 2, 2018 at 4:44:22 AM UTC-4, Thomas Broyer wrote:
>
> Could it just be the events your browser dispatches? Have you tried in 
> pure JS?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Mouse Events - Move event always follows a mouse up

2018-09-01 Thread Velusamy Velu
I have been noticing that lifting the mouse button causes GWT to register a 
mouse move. Initially I thought it was my hand that makes the mouse move 
slightly when lifting my index finger. Then I practiced for a while not to 
move my hand while lifting my index finger. Then made many attempts 
not-to-move mouse when lifting the pressure on the button. No success!

Then I started capturing the mouse and displayed it for each event. The 
sequence of events were - Click LMB, move, wait, and lift finger from the 
button. To my surprise the last point before pressing down, the point at 
which mouse button was down, then the last point (this being the 
unexpected) after lifting are all identical. Please check the attached 
screen clip.

Any idea why this happens?

Thanks
- Velu

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT install at University

2018-08-07 Thread Velusamy Velu
Please explain what do you mean by "installing GWT". We use GWT to develop 
internet applications.

On Monday, August 6, 2018 at 4:14:32 PM UTC-4, Ahmed Is wrote:
>
> Hi guys - anyone here have experience rolling out GWT for a cohort at 
> university? 
>
> I am specifically interested in installing GWT on University Windows 
> servers so that it can be used by about 100 students simultaneously. 
>
> Anyone have experience with that? 
>
> Alternatively, are there any cloud hosts for GWT? 
>
> Thanks!

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT behaves differently in Chrom vs Firefox

2018-07-31 Thread Velusamy Velu
Michael:

I appreciate you sharing the information. I never considered Gradle to 
build, may be it's time.

Thank You
--Velu

On Monday, July 30, 2018 at 3:47:30 PM UTC-4, Michael Joyner wrote:
>
> tasks.withType(org.wisepersist.gradle.plugins.gwt.AbstractGwtActionTask) { 
> args "-noincremental" 
> } 
> gwt { 
> logLevel = 'INFO' 
> maxHeapSize = "2048M"; 
> gwtVersion='2.8.2' 
> modules 'xxx 
> //src += files("build/generated/source/apt/main"); 
> compiler { 
> //ea = false //enable assert statements for testing result conditions 
> strict = true; 
> style = "OBF"; 
> //style = "PRETTY"; 
> //style = "DETAILED"; 
> localWorkers = 4; 
> } 
> superDev { 
> noPrecompile = true; 
> failOnError = false; 
> bindAddress = "0.0.0.0"; 
> } 
> eclipse { 
> addGwtContainer = true; 
> } 
> }
>
> On Mon, Jul 30, 2018 at 3:44 PM, Velusamy Velu  > wrote:
>
>> Michael & David
>>
>> After clearing the TEMP folder and clearing the compiler caches at  
>> localhost:9876 that error message disappeared.
>>
>> Thanks a lot
>>
>> Velusamy K. Velu
>> 614-321-9649
>>
>> <http://www.linkedin.com/in/vkvelu>
>>
>>
>> On Mon, Jul 30, 2018 at 3:18 PM Jens > 
>> wrote:
>>
>>>
>>> Hi Michael: I tried this by Windows > Preferences > General > Workspace 
>>>> > Build and unchecked the "Build automatically" option. It didn't 
>>>> help. Am I doing the right thing? Is there any other option?
>>>>
>>>
>>> GWT SuperDevMode has its own cache that you can clear by visiting the 
>>> SuperDevMode page (localhost:9876) and hit the small clean button at the 
>>> bottom. Once you have done that SDM starts from scratch and compiles 
>>> everything again.
>>>
>>> -- J.
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "GWT Users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> google-web-toolkit+unsubscr...@googlegroups.com .
>>> To post to this group, send email to google-we...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> 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+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT behaves differently in Chrom vs Firefox

2018-07-31 Thread Velusamy Velu
Jens:

Thank you, it helped.
--Velu

On Monday, July 30, 2018 at 3:18:12 PM UTC-4, Jens wrote:
>
>
> Hi Michael: I tried this by Windows > Preferences > General > Workspace > 
>> Build and unchecked the "Build automatically" option. It didn't help. Am 
>> I doing the right thing? Is there any other option?
>>
>
> GWT SuperDevMode has its own cache that you can clear by visiting the 
> SuperDevMode page (localhost:9876) and hit the small clean button at the 
> bottom. Once you have done that SDM starts from scratch and compiles 
> everything again.
>
> -- J.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT behaves differently in Chrom vs Firefox

2018-07-30 Thread Velusamy Velu
Michael & David

After clearing the TEMP folder and clearing the compiler caches at
localhost:9876 that error message disappeared.

Thanks a lot

Velusamy K. Velu
614-321-9649




On Mon, Jul 30, 2018 at 3:18 PM Jens  wrote:

>
> Hi Michael: I tried this by Windows > Preferences > General > Workspace >
>> Build and unchecked the "Build automatically" option. It didn't help. Am
>> I doing the right thing? Is there any other option?
>>
>
> GWT SuperDevMode has its own cache that you can clear by visiting the
> SuperDevMode page (localhost:9876) and hit the small clean button at the
> bottom. Once you have done that SDM starts from scratch and compiles
> everything again.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT behaves differently in Chrom vs Firefox

2018-07-30 Thread Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace > 
Build and unchecked the "Build automatically" option. It didn't help. Am I 
doing the right thing? Is there any other option?

Thanks
Velu

On Tuesday, July 24, 2018 at 11:08:00 AM UTC-4, Michael Joyner wrote:
>
> Is this in SDM mode? If yes, try turning off incremental compilations.
>
> On Mon, Jul 23, 2018 at 9:43 PM, Velusamy Velu  > wrote:
>
>> Friends:
>>
>> I have an application written using GWT 2.8.2 framework and it behaves 
>> differently. The snippet of the GWT code in question is here -
>> (ReferenceError) : L_g_g$ is not defined
>>
>>
>>   for (int j = 1; j < nodes.size(); j++) {
>> Node previousNode = nodes.get(j - 1);
>> Node currentNode = nodes.get(j);
>> int indexFrom = previousNode.getIndex();
>> int indexTo = currentNode.getIndex();
>>
>> if (!connectionMatrix[indexFrom][indexTo]) {
>>   connectionMatrix[indexFrom][indexTo] = true;
>>   connectionMatrix[indexTo][indexFrom] = true;
>>   contributed = true;
>>   BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
>>
>>
>> The last line of the above code snippet is the Culprit. It works as 
>> expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined" 
>> error. In debugger mode I found that L_g_g$ refers to the *BondTriple* 
>> as highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
>>  indexTo);
>>
>> This code has been thoroughly unit tested and every functionality was 
>> verified. The fact that it works in Firefox but fails in Chrome baffles me 
>> even more. BondTriple defined as below. I'm using non-primitive attributes 
>> to check for null. Have anyone ran into a situation like this? I'm having 
>> hard time figuring out what could be wrong. Your help will be greatly 
>> appreciated.
>>
>> public class BondTriple implements Jsonable {
>>   private Integer start;
>>   private Integer finish;
>>   private Integer bondType;
>>   private Shape connector;
>>
>>   public BondTriple(Integer start, Integer finish) {
>> this.start = start;
>> this.finish = finish;
>>   }
>> ...
>>
>>
>>
>> -- 
>> 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+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT behaves differently in Chrom vs Firefox

2018-07-24 Thread Velusamy Velu
Hi Michael

I appreciate your recommendation. Yes it's in SDM mode. I don't have the
luxury to try your suggestion right away due to my travel. Will try it on
my return.

I did suspect something to the effect of a cache behind this. Hence I tried
clearing and rebuilding, it failed yet. Nothing helped so far.


On Tue, Jul 24, 2018, 11:08 AM Michael Joyner  wrote:

> Is this in SDM mode? If yes, try turning off incremental compilations.
>
> On Mon, Jul 23, 2018 at 9:43 PM, Velusamy Velu 
> wrote:
>
>> Friends:
>>
>> I have an application written using GWT 2.8.2 framework and it behaves
>> differently. The snippet of the GWT code in question is here -
>> (ReferenceError) : L_g_g$ is not defined
>>
>>
>>   for (int j = 1; j < nodes.size(); j++) {
>> Node previousNode = nodes.get(j - 1);
>> Node currentNode = nodes.get(j);
>> int indexFrom = previousNode.getIndex();
>> int indexTo = currentNode.getIndex();
>>
>> if (!connectionMatrix[indexFrom][indexTo]) {
>>   connectionMatrix[indexFrom][indexTo] = true;
>>   connectionMatrix[indexTo][indexFrom] = true;
>>   contributed = true;
>>   BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
>>
>>
>> The last line of the above code snippet is the Culprit. It works as
>> expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
>> error. In debugger mode I found that L_g_g$ refers to the *BondTriple*
>> as highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
>>  indexTo);
>>
>> This code has been thoroughly unit tested and every functionality was
>> verified. The fact that it works in Firefox but fails in Chrome baffles me
>> even more. BondTriple defined as below. I'm using non-primitive attributes
>> to check for null. Have anyone ran into a situation like this? I'm having
>> hard time figuring out what could be wrong. Your help will be greatly
>> appreciated.
>>
>> public class BondTriple implements Jsonable {
>>   private Integer start;
>>   private Integer finish;
>>   private Integer bondType;
>>   private Shape connector;
>>
>>   public BondTriple(Integer start, Integer finish) {
>> this.start = start;
>> this.finish = finish;
>>   }
>> ...
>>
>>
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT behaves differently in Chrom vs Firefox

2018-07-23 Thread Velusamy Velu
Friends:

I have an application written using GWT 2.8.2 framework and it behaves 
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined


  for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();

if (!connectionMatrix[indexFrom][indexTo]) {
  connectionMatrix[indexFrom][indexTo] = true;
  connectionMatrix[indexTo][indexFrom] = true;
  contributed = true;
  BondTriple bondTriple = new BondTriple(indexFrom, indexTo);


The last line of the above code snippet is the Culprit. It works as 
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined" 
error. In debugger mode I found that L_g_g$ refers to the *BondTriple* as 
highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
 indexTo);

This code has been thoroughly unit tested and every functionality was 
verified. The fact that it works in Firefox but fails in Chrome baffles me 
even more. BondTriple defined as below. I'm using non-primitive attributes 
to check for null. Have anyone ran into a situation like this? I'm having 
hard time figuring out what could be wrong. Your help will be greatly 
appreciated.

public class BondTriple implements Jsonable {
  private Integer start;
  private Integer finish;
  private Integer bondType;
  private Shape connector;

  public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
  }
...



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Eclipse fails to serve CSS file

2018-01-22 Thread Velusamy Velu
My GWT application development ran into a problem that poses a challenge to 
resolve. The application is developed with GWT 2.7.0 and a pilot is running 
at PeruseLabs  (the Pilot Screen clip is below). This 
application has been in development for quite some months. However, in 
development the CSS file *PeruseLabs.css* doesn't seem to be loading (I 
don't see any evidence that it's loading). This started happening since mid 
January 2018. The CSS (*class icon*) loads as expected in the pilot  but not in 
development (Dev Screen clip all the way down). To reiterate - when this 
project is built and deployed in "prod" it works as expected. The 
development has come to a screeching halt though.

The corresponding icon class is 
.icon {
width: 45px;
margin: 7px;
border-radius: 5px;
cursor: pointer;
}

My development environment is -
Java 8 (Ver 1.8.0_151)
Eclipse Oxygen
GWT 2.7.0
GWT Eclipse Plugin: Version 3.0

Any idea what could be wrong? Thank you in advance.

*Pilot Screen clip*

*Dev Screen clip*



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


interact.min.js.map

2017-12-20 Thread Velusamy Velu
Just added D&D to a GWT application using MaterialDnd addin. Now the 
application is looking for interact.min.js.map but it's missing. Any idea 
why interact.min.js.map is missing? Our project configurations is:

   1. Java 8
   2. GWT 2.7.0
   3. GMD 1.6.0
   4. GMD Material addins 1.6.0
   5. Eclipse Neon.3

When the application is launched an error message "[WARN] 404 - GET 
/interact.min.js.map" is thrown on the server.

This is otherwise working well application. Any idea what could be wrong?

Thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT junit test in super dev mode???

2017-02-14 Thread Velusamy Velu
I think if you provide details of your deployment process it could be 
easier to diagnose the issue.

On Tuesday, February 14, 2017 at 5:52:33 AM UTC-5, Daniel Kln wrote:
>
> Hi, 
>
> i setted in the run config the arg: -Dgwt.args="-runStyle Manual:1".
>
> When i start running the gwt unit test, i get a link, which i have to 
> paste into a browser of my choice. This is what i expected. But than the 
> browser shows:
> Development Mode requires the GWT Developer Plugin
>
> My question: how i can avoid this problem. In production mode the same 
> result appears. 
>
> Thank you a lot for your help
>
> Daniel
>   
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8 compile fails; 2.7 works

2016-11-30 Thread Velusamy Velu
Here's the remainder of the stack trace

 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
 ... 46 more
[ERROR] at Loader.java(29): GWT.create(Loader$LoaderUiBinder.
class)
   com.google.gwt.dev.jjs.ast.JMethodCall
[ERROR] at Loader.java(29): (Loader$LoaderUiBinder) GWT.create(
Loader$LoaderUiBinder.class)
   com.google.gwt.dev.jjs.ast.JCastOperation
[ERROR] at Loader.java(29): static Loader$LoaderUiBinder 
uiBinder = (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class)
   com.google.gwt.dev.jjs.ast.JDeclarationStatement
[ERROR] at Loader.java(24): {
  Composite.$clinit();
  static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create
(Loader$LoaderUiBinder.class);
}
   com.google.gwt.dev.jjs.ast.JBlock
[ERROR] at Loader.java(24): {
  Composite.$clinit();
  static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create
(Loader$LoaderUiBinder.class);
}
   com.google.gwt.dev.jjs.ast.JMethodBody
[ERROR] at Loader.java(24): com.snkv.peruse.client.Loader.
$clinit()V
   com.google.gwt.dev.jjs.ast.JMethod
  [ERROR] Compiler returned false


On Wednesday, November 30, 2016 at 2:45:35 PM UTC-5, Velusamy Velu wrote:
>
> Oops! I do get the error. I was wrong when I said it worked for me. When I 
> attempted to change the GWT version from 2.7.0 to 2.8.0 in eclipse, eclipse 
> switched it back to 2.7.0 for reasons I cannot figure out. Given below are 
> the offending UiBinder code, the corresponding Java code, and the stack 
> trace when switching a running application from GWT 2.7 to 2.8. Any help 
> would be greatly appreciated.
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>xmlns:g="urn:import:com.google.gwt.user.client.ui"
>   xmlns:m="urn:import:gwt.material.design.client.ui">
>   
> 
>   
>   
>   
> PeruseLab - 
> Loading your drawings...
>  "false" ui:field="progressBar" />
> 
>   
>
> 
>   
>  
>
> public class Loader extends Composite {
>
> interface LoaderUiBinder extends UiBinder {
> }
>
> private static LoaderUiBinder uiBinder = GWT.create(LoaderUiBinder.
> class);
>
> @UiField
> PopupPanel launchPad;
>
> @UiField
> MaterialColumn container;
>
> public Loader() {
> initWidget(uiBinder.createAndBindUi(this));
> }
>
> public void hide() {
> clear();
> launchPad.hide(true);
> }
>
> public void show() {
> launchPad.show();
> }
>
> private void clear() {
> while (container.getWidgetCount() > 0) {
> container.remove(0);
> }
> }
> }
>
>
> Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.
> UiBinderWriter.(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/
> lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle
> ;Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/
> rebind/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/
> MessagesWriter;Lcom/google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google
> /gwt/uibinder/rebind/UiBinderContext;ZZLjava/lang/String;Lcom/google/gwt/
> dev/resource/ResourceOracle;Lcom/google/gwt/resources/rg/
> GssResourceGenerator$GssOptions;)V
>  at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(
> UiBinderGenerator.java:174)
>  at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(
> UiBinderGenerator.java:128)
>  at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(
> IncrementalGenerator.java:40)
>  at com.google.gwt.dev.javac.StandardGeneratorContext.
> runGeneratorIncrementally(StandardGeneratorContext.java:745)
>  at com.google.https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8 compile fails; 2.7 works

2016-11-30 Thread Velusamy Velu
Oops! I do get the error. I was wrong when I said it worked for me. When I 
attempted to change the GWT version from 2.7.0 to 2.8.0 in eclipse, eclipse 
switched it back to 2.7.0 for reasons I cannot figure out. Given below are 
the offending UiBinder code, the corresponding Java code, and the stack 
trace when switching a running application from GWT 2.7 to 2.8. Any help 
would be greatly appreciated.

http://dl.google.com/gwt/DTD/xhtml.ent";>

  

  
  
  
PeruseLab - 
Loading your drawings...


  
   

  
 

public class Loader extends Composite {

interface LoaderUiBinder extends UiBinder {
}

private static LoaderUiBinder uiBinder = GWT.create(LoaderUiBinder.class
);

@UiField
PopupPanel launchPad;

@UiField
MaterialColumn container;

public Loader() {
initWidget(uiBinder.createAndBindUi(this));
}

public void hide() {
clear();
launchPad.hide(true);
}

public void show() {
launchPad.show();
}

private void clear() {
while (container.getWidgetCount() > 0) {
container.remove(0);
}
}
}


Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.
UiBinderWriter.(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/
lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;
Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind
/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/
google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
UiBinderContext;ZZLjava/lang/String;Lcom/google/gwt/dev/resource/
ResourceOracle;Lcom/google/gwt/resources/rg/GssResourceGenerator$GssOptions
;)V
 at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(
UiBinderGenerator.java:174)
 at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(
UiBinderGenerator.java:128)
 at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(
IncrementalGenerator.java:40)
 at com.google.gwt.dev.javac.StandardGeneratorContext.
runGeneratorIncrementally(StandardGeneratorContext.java:745)
 at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
103)
 at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(
StandardRebindOracle.java:78)
 at com.google.gwt.dev.shell.StandardRebindOracle.rebind(
StandardRebindOracle.java:262)
 at com.google.gwt.dev.shell.StandardRebindOracle.rebind(
StandardRebindOracle.java:251)
 at com.google.gwt.dev.PrecompilationContextCreator$1.
getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)
 at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.
createStaticRebindExpression(UnifyAst.java:519)
 at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression
(UnifyAst.java:487)
 at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.
maybeHandleMagicMethodCall(UnifyAst.java:415)
 at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:
402)
 at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
 at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
 ... 46 more
[ERROR] at Loader.java(29): GWT.create(Loader$LoaderUiBinder.
class)
   com.google.gwt.dev.jjs.ast.JMethodCall
[ERROR] at Loader.java(29): (Loader$LoaderUiBinder) GWT.create(
Loader$LoaderUiBinder.class)
   com.google.gwt.dev.jjs.ast.JCastOperation
[ERROR] at Loader.java(29): static Loader$LoaderUiBinder 
uiBinder = (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class)
   com.google.gwt.dev.jjs.ast.JDeclarationStatement
[ERROR] at Loader.java(24): {
  Composite.$clinit();
  static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create
(Loader$LoaderUiBinder.class);
}
   com.google.gwt.dev.jjs.ast.JBlock
[ERROR] at Loader.java(24): {
  Composite.$clinit();
  static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create
(Loader$LoaderUiBinder.class);
}
   com.google.gwt.dev.jjs.ast.JMethodBody
[ERROR] at Loader.java(24): com.snkv.peruse.client.Loader.
$clinit()V
   com.google.gwt.dev.jjs.ast.JMethod
  [ERROR] Compiler returned false
  [WARN] recompile failed


On Monday, November 21, 2016 at 4:07:42 PM UTC-5, jgindin wrote:
>
> In our app, we have a UiBinder widget (SomeViewImpl) which has, as its 
> root element, a widget which itself is a UiBinder widget 
> (CollectionManagementLayout).
>
> My UiBinder declaration in SomeViewImpl looks like this:
> interface CollectionManagementPanelUiBinder extends 
> UiBinder {}
>
>
> The UiBinder XML for the SomeViewImpl class starts off like this:
>   
> . . . 
>   
>
>
>
> This code c

Re: GWT 2.8 compile fails; 2.7 works

2016-11-22 Thread Velusamy Velu
This may or may not help you but I want to share it with you. The moment 
GWT 2.8 release was announced I tried it and ran into similar problems. I 
don't remember the exact error messages but it was about the UiBinder. 
Without further attempts I just gave up. After seeing your post I gave it a 
try and this time it worked. I have no clue what fixed other than a clean 
build.

On Monday, November 21, 2016 at 4:07:42 PM UTC-5, jgindin wrote:
>
> In our app, we have a UiBinder widget (SomeViewImpl) which has, as its 
> root element, a widget which itself is a UiBinder widget 
> (CollectionManagementLayout).
>
> My UiBinder declaration in SomeViewImpl looks like this:
> interface CollectionManagementPanelUiBinder extends 
> UiBinder {}
>
>
> The UiBinder XML for the SomeViewImpl class starts off like this:
>   
> . . . 
>   
>
>
>
> This code compiles just fine in GWT 2.7, but with 2.8, I get the following 
> error:
>
> [ERROR] Errors in 
> 'generated://09CDEAB17C92C8C75AB00C9F2F0DF847/com/myco/myproduct/client/stuff/collections/SomeViewImpl_CollectionManagementPanelUiBinderImpl.java'
>   [ERROR] Line 17: The interface UiBinder cannot be implemented more 
> than once with different arguments: 
> UiBinder and 
> UiBinder
>   See snapshot: 
> /tmp/com.myco.myproduct.client.stuff.collections.SomeViewImpl_CollectionManagementPanelUiBinderImpl3472216513944602205.java
>Tracing compile failure path for type 
> 'com.myco.myproduct.client.stuff.collections.SomeViewImpl_CollectionManagementPanelUiBinderImpl'
>   [ERROR] Errors in 
> 'generated://09CDEAB17C92C8C75AB00C9F2F0DF847/com/myco/myproduct/client/stuff/collections/SomeViewImpl_CollectionManagementPanelUiBinderImpl.java'
>  [ERROR] Line 17: The interface UiBinder cannot be implemented 
> more than once with different arguments: 
> UiBinder and 
> UiBinder
>
>
>
> The generated code looks like this:
> public class SomeViewImpl_CollectionManagementPanelUiBinderImpl 
>   implements UiBinder, 
>   SomeViewImpl.CollectionManagementPanelUiBinder {
>
>
> I worked around this by changing the UiBinder declaration in SomeViewImpl 
> to be:
> interface CollectionManagementPanelUiBinder extends UiBinder SomeViewImpl> {}
>
>
> *My question is*: Should this have failed in GWT 2.7? Or is there a bug 
> in GWT 2.8?
>
> thanks,
>
> jay
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Internet Explorer Google Web Toolkit Plugin Installing but not Working.

2016-11-10 Thread Velusamy Velu
Which version of GWT you are trying with? Have you tried the Super Dev mode?

On Thursday, November 10, 2016 at 5:22:13 AM UTC-5, Hendré Louw wrote:
>
> I created a new project in Eclipse with the sample code option. IE prompts 
> me to install the developer plugin, however the link does not work. After 
> coping the plugin link I managed to install the plugin. The download page 
> keep reappearing every time I run the application. Please assist.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsonpRequestBuilder - Timeout while calling

2016-11-09 Thread Velusamy Velu
@Thomas Broyer

Thanks and you are correct, after configuring the web services with CORS it 
works like a charm. I added this filter to web.xml, carefully limiting CORS 
to GET methods only.
 
 
 CorsFilter
 org.apache.catalina.filters.CorsFilter
 
 cors.allowed.origins
 *
 
 
 cors.allowed.methods
 GET
 
 

 
 CorsFilter
 /*
 

--

On Tuesday, November 8, 2016 at 6:09:19 PM UTC-5, Thomas Broyer wrote:

> A status code of 0 is generally indicative of a cross origin request 
> without CORS (or an aborted request or network error)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Velusamy Velu
Did some additional investigation on this by trapping the Response object 
in an exit filter and examining it. I found that the Response from Web 
service is way different from the GWT-Server side code. Given below are the 
screen-clips from both. Long story short - trapping the Jersey Web Service 
result on the GWT client side doesn't appear to be trivial.

GWT Server application Response object

<https://lh3.googleusercontent.com/-1RLWywNWCIg/WCJNostl4LI/AAABjSQ/jvK3f1tynNM8N_oW9-IRcW0xsNEA2EpFQCLcB/s1600/WebService-Response.jpg>

Web service Response object

<https://lh3.googleusercontent.com/-fnx65MmmZ98/WCJN22KkZhI/AAABjSU/uQtyN9_c8w0znMVqF6o-eNQdFWgPXtQ2wCLcB/s1600/WebService-Response.jpg>




On Monday, November 7, 2016 at 5:53:33 PM UTC-5, Velusamy Velu wrote:
>
> Trying to retrieve an object in my GWT client using JsonpRequestBuilder 
> from a cross domain server.  The call goes to server and server does 
> respond with the correct value but the client keeps throwing "Timeout 
> while calling http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; 
> message. Here are the code snippets.
>
> The call is made from this class -
> public class EntityFisher {
> public String fish(String id) {
> JsonpRequestBuilder builder = new JsonpRequestBuilder();
> String url = "http://localhost:8080/layouts/"; + id;
> AsyncCallback callback = new LayoutFisherCallback();
> JsonpRequest layoutJson = builder.requestObject(url, 
> callback);
>   ...
> return t;
> }
> }
>
> LayoutJson.java
> public class LayoutJson extends JavaScriptObject {
> protected LayoutJson() {}
> public static final native LayoutJson build(String json) /*-{
> return eval('(' + json + ')');
> }-*/;
>
> public final native JsonArray getCoordinates() /*-{
> return this.coordinates;
> }-*/;
> }
>
> LayoutFisherCallback.java
> public class LayoutFisherCallback implements AsyncCallback {
> @Override
> public void onFailure(Throwable caught) {UiFlag.flag(caught);}
>
> @Override
> public void onSuccess(LayoutJson layoutJson) {
> JsonArray pointsJson = layoutJson.getCoordinates(); // 
> code never reaches this point
> UiFlag.flagNull("pointsJson", pointsJson);
> ArrayList coordinates = new ArrayList<>();
> UiFlag.flag(coordinates.toString());
> }
> }
>
> the call is kicked off like this
>EntityFisher fisher = new EntityFisher();
>fisher.fish(id);
>
> I see everything done correctly on the server side and the JSON
> {"coordinates":[{"x":100,"y":90,"z":0,"index":0,"time":1478546404606},{"x"
> :118,"y":121,"z":0,"index":1,"time":1478547002023},{"x":154,"y":121,"z":0,
> "index":2,"time":1478547079871}]}
> is sent back as expected but I keep getting the "Timeout while calling 
> http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; on the client side. 
> When I make the request through GWT RequestBuilder (as a same origin 
> request) everything works good.
>
> Any idea what's wrong in the above code?
>
> I would appreciate any help.
> Thanks
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Velusamy Velu
@Thomas Broyer

Thanks for the prompt response and suggestions. I did switch to 
GWT RequestCallback but the problem seems to larger than I expected.

It appears the GWT Response class and the Jersey Response classes may not 
be compatible.
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/{id}")
public Response get(@PathParam("id") String id) {
.
.
.
Response response = Response.ok(json).status(200).build();
return response;

On the GWT client side the response.getStatusCode() is always 0 and the 
call response.getText() returns an empty string.

I'm not sure if there is a simpler solution than using RestyGWT.

On Monday, November 7, 2016 at 5:53:33 PM UTC-5, Velusamy Velu wrote:
>
> Trying to retrieve an object in my GWT client using JsonpRequestBuilder 
> from a cross domain server.  The call goes to server and server does 
> respond with the correct value but the client keeps throwing "Timeout 
> while calling http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; 
> message. Here are the code snippets.
>
> The call is made from this class -
> public class EntityFisher {
> public String fish(String id) {
> JsonpRequestBuilder builder = new JsonpRequestBuilder();
> String url = "http://localhost:8080/layouts/"; + id;
> AsyncCallback callback = new LayoutFisherCallback();
> JsonpRequest layoutJson = builder.requestObject(url, 
> callback);
>   ...
> return t;
> }
> }
>
> LayoutJson.java
> public class LayoutJson extends JavaScriptObject {
> protected LayoutJson() {}
> public static final native LayoutJson build(String json) /*-{
> return eval('(' + json + ')');
> }-*/;
>
> public final native JsonArray getCoordinates() /*-{
> return this.coordinates;
> }-*/;
> }
>
> LayoutFisherCallback.java
> public class LayoutFisherCallback implements AsyncCallback {
> @Override
> public void onFailure(Throwable caught) {UiFlag.flag(caught);}
>
> @Override
> public void onSuccess(LayoutJson layoutJson) {
> JsonArray pointsJson = layoutJson.getCoordinates(); // 
> code never reaches this point
> UiFlag.flagNull("pointsJson", pointsJson);
> ArrayList coordinates = new ArrayList<>();
> UiFlag.flag(coordinates.toString());
> }
> }
>
> the call is kicked off like this
>EntityFisher fisher = new EntityFisher();
>fisher.fish(id);
>
> I see everything done correctly on the server side and the JSON
> {"coordinates":[{"x":100,"y":90,"z":0,"index":0,"time":1478546404606},{"x"
> :118,"y":121,"z":0,"index":1,"time":1478547002023},{"x":154,"y":121,"z":0,
> "index":2,"time":1478547079871}]}
> is sent back as expected but I keep getting the "Timeout while calling 
> http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; on the client side. 
> When I make the request through GWT RequestBuilder (as a same origin 
> request) everything works good.
>
> Any idea what's wrong in the above code?
>
> I would appreciate any help.
> Thanks
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JsonpRequestBuilder - Timeout while calling

2016-11-07 Thread Velusamy Velu
Trying to retrieve an object in my GWT client using JsonpRequestBuilder 
from a cross domain server.  The call goes to server and server does 
respond with the correct value but the client keeps throwing "Timeout while 
calling http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; message. Here 
are the code snippets.

The call is made from this class -
public class EntityFisher {
public String fish(String id) {
JsonpRequestBuilder builder = new JsonpRequestBuilder();
String url = "http://localhost:8080/layouts/"; + id;
AsyncCallback callback = new LayoutFisherCallback();
JsonpRequest layoutJson = builder.requestObject(url, 
callback);
  ...
return t;
}
}

LayoutJson.java
public class LayoutJson extends JavaScriptObject {
protected LayoutJson() {}
public static final native LayoutJson build(String json) /*-{
return eval('(' + json + ')');
}-*/;

public final native JsonArray getCoordinates() /*-{
return this.coordinates;
}-*/;
}

LayoutFisherCallback.java
public class LayoutFisherCallback implements AsyncCallback {
@Override
public void onFailure(Throwable caught) {UiFlag.flag(caught);}

@Override
public void onSuccess(LayoutJson layoutJson) {
JsonArray pointsJson = layoutJson.getCoordinates(); // 
code never reaches this point
UiFlag.flagNull("pointsJson", pointsJson);
ArrayList coordinates = new ArrayList<>();
UiFlag.flag(coordinates.toString());
}
}

the call is kicked off like this
   EntityFisher fisher = new EntityFisher();
   fisher.fish(id);

I see everything done correctly on the server side and the JSON
{"coordinates":[{"x":100,"y":90,"z":0,"index":0,"time":1478546404606},{"x":
118,"y":121,"z":0,"index":1,"time":1478547002023},{"x":154,"y":121,"z":0,
"index":2,"time":1478547079871}]}
is sent back as expected but I keep getting the "Timeout while calling 
http://localhost:8080/layouts/AVhARgXQW9-o1U_GgvJa"; on the client side. 
When I make the request through GWT RequestBuilder (as a same origin 
request) everything works good.

Any idea what's wrong in the above code?

I would appreciate any help.
Thanks

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.0 released

2016-10-22 Thread Velusamy Velu
Kudos to Daniel and the GWT team!

On Friday, October 21, 2016 at 3:21:41 PM UTC-4, Daniel Kurka wrote:
>
> Hi all,
>
> I am very happy to announce GWT 2.8.0 on behalf of the GWT steering 
> committee and the GWT team at Google.
>
> You can download the release from http://www.gwtproject.org/download.html 
> or from maven central.
>
> The release notes can be found at 
> http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0
>
> Daniel,
> on behalf of the GWT team
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Chrome says I need to download the developer plugin, but it won't let me.

2016-10-06 Thread Velusamy Velu
For relatively new GWT developers the difference between running the 
application from within Eclipse in Classic Dev mode and Super Dev mode may 
not be apparent. Classic Dev mode (the one that requires a browser plugin) 
is no longer supported. These plugins are no longer available. Super Dev 
mode is the best choice.

Right click your project > select 'Run As' > Web Application (GWT Super Dev 
Mode>. This will let you run your application. You could also try the 
'Debug As' choice to debug the server side code.

On Wednesday, October 5, 2016 at 11:30:46 AM UTC-4, 
dal...@whippets.wwusd.org wrote:
>
> I've just recently started using GWT and the Google plugin for Eclipse for 
> a school project, but I'm coming to a weird problem when trying to run 
> programs in Chrome. When I made my first Hello World program, it worked 
> perfectly fine, but then the next day when I tried to run it, it said I 
> needed to download a Google developer's plugin. When I clicked the download 
> button, I was given an Error 404 message. I kept trying to run it, and 
> seemingly out of nowhere, it eventually started working again. I thought my 
> problem was averted, but today, I'm getting the same message. Does anyone 
> know what's going on? Thanks!
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSON to Client Side GWT JavaScriptObject

2016-09-22 Thread Velusamy Velu
Thank you very much! I just can't believe I missed that.

On Thursday, September 22, 2016 at 11:10:15 AM UTC-4, Jens wrote:
>
> Missing "return" statement in your JSNI method. Because you returned 
> nothing, the method returns null automatically.
>
> Also you can use 
>
> ServerResponseJson resp = JsonUtils.safeEvel(jsonString);
>
> which is safer than using JS eval() directly.
>
> -- J.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JSON to Client Side GWT JavaScriptObject

2016-09-22 Thread Velusamy Velu


I'm looking for help in converting a JSON to an instance of a POJO with 
embedded objects, on the GWT client side. I'm partially successful but 
unable to convert every piece of the JSON I have.


I have removed all but one working piece of code here to narrow down to the 
problem area. Specifically, my question is why the following method returns 
null?


public final native JsonArray getServerStatusCodeMap() /*-{

// debugger shows serverStatusCodeMap is valid below

this.serverStatusCodeMap; 
}-*/;


The JSON is valid (given below) and I have provided all the relevant code 
in this post. I would greatly appreciate any help.


Here's the JSON:

{
  "idOfSavedObject": "AVc-CQ4OI-SZQb7PIPb_",
  "serverStatusCodeMap": [
{
  "name": "AVc-CTACI-SZQb7PIPcO",
  "value": 202
},
{
  "name": "AVc-CTACI-SZQb7PIPcP",
  "value": 100
}
  ]}

Its JS overlay class is

public class ServerResponseJson extends JavaScriptObject {

protected ServerResponseJson() {}

public static final native ServerResponseJson build(String json) /*-{
return eval('(' + json + ')');
}-*/;

public final native String getIdOfSavedObject() /*-{
return this.idOfSavedObject;
}-*/;

public final native JsonArray getServerStatusCodeMap() /*-{
this.serverStatusCodeMap;
}-*/;}

I debugged and found the method below has the right values

public final native JsonArray getServerStatusCodeMap() /*-{
this.serverStatusCodeMap; // this attribute has the right value, the caller 
of this method gets a null
}-*/;

[image: Screen clip showing the right values for serverStatusCodeMap] 



JsonArray.java

public class JsonArray extends JavaScriptObject {
protected JsonArray() {}

public final native int length() /*-{
return this.length;
}-*/;

public final native E get(int i) /*-{
return this[i];
}-*/;}

the NameNumberJson.java

public class NameNumberJson extends JavaScriptObject {
protected NameNumberJson() {}

public static final native NameNumberJson buildNameNumberJson(String json) 
/*-{
return eval('(' + json + ')');
}-*/;

// Return the whole JSON array, as is
public static final native JsonArray 
getNameNumberJsons(String json) /*-{
return eval('(' + json + ')');
}-*/;

public final native String getName() /*-{
return this.name;
}-*/;

public final native int getValue() /*-{
return this.value;
}-*/;}

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: gwt-material 1.6.0 is now available

2016-08-29 Thread Velusamy Velu
Great work!

Thanks Mark.
Velu

On Friday, August 26, 2016 at 1:30:43 AM UTC-4, mark kevin ringor wrote:
>
> Hi everyone,
>
> Here comes the release of 1.6.0 on gwt-material projects:
>
> #gwt-material  release notes:
>
> https://github.com/GwtMaterialDesign/gwt-material/releases/tag/gwt-material-1.6.0
>
> #gwt-material-addins  
> release notes:
>
> https://github.com/GwtMaterialDesign/gwt-material-addins/releases/tag/gwt-material-addins-1.6.0
>
> #gwt-material-themes  
> release notes:
>
> https://github.com/GwtMaterialDesign/gwt-material-themes/releases/tag/gwt-material-themes-1.6.0
>
> #Central  Repository
> http://search.maven.org/#search%7Cga%7C1%7Cgwt-material
>
> #1.6.0 Demo showcase
> http://gwtmaterialdesign.github.io/gwt-material-demo/
>
>
> 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


HashMap.get(key) function missing

2016-08-13 Thread Velusamy Velu
I think I'm running into an error that appears strange. The code below is 
in a Callback. I'm receiving a JSON from server and need to interrogate it. 
Here's the client side code segment in onReponseReceived(...) 
 ...
 String json = response.getText();
 SearchResponseJson responseJson = SearchResponseJson.build(json);
 String primaryMoleculeId = responseJson.gerPrimaryMatchingId();

 if (primaryMoleculeId != null) {
 String tId = molecule.gettId() + "";
 HashMap idMap = responseJson.getIdMap();
 String id = idMap.get(tId); // <-- affending line
 molecule.setId(id);
 }
 ...

The line String id = idMap.get(tId) throws an exception with the message 
"Exception 
name: JavaScriptException(TypeError) : idMap_0_g$.get_107_g$ is not a 
function?. Strangely if String tId = molecule.gettId() + "" line is changed 
to this - Integer tId = molecule.gettId() it still compiles (I expected 
String id = idMap.get(tId) to fail, having the key declared Integer in the 
map). Both lines compile but neither works. In super dev debug mode the 
content of the map entry I'm trying to get appears as 
894830631:"AVaFi4md0u8eNTTDvmDv". 
Please notice the lack of quotes around the number; that's how it appeared.

Method responseJson.gerPrimaryMatchingId(); is implemented as -

public final native HashMap getIdMap() /*-{
return this.idMap;
}-*/;

And the JSON is 
{  
   "primaryMatchingId":"AVaFi4md0u8eNTTDvmDv",
   "idMap":{  
  "894830631":"AVaFi4md0u8eNTTDvmDv" // <-- notice the quotes around 
the key
   },
   "identicalMatchingIds":[  

   ],
   "matchingIds":[  
  "AVaFi4md0u8eNTTDvmDv"
   ],
   "messageMap":{  

   },
   "statusMap":{  
  "894830631":1
   }
}

I'm using java.util.HashMap.

Any help would be greatly appreciated.
Velu


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Guava

2016-08-10 Thread Velusamy Velu
Thanks Bauna - does your response apply even if I use GWT 2.7?

On Tuesday, August 9, 2016 at 4:27:59 PM UTC-4, Velusamy Velu wrote:
>
> I started using Guava with my GWT application and ran into this benign 
> message when starting the server in Eclipse.
>Ignored 28 units with compilation errors in first pass.
>
> These two inherits were added my gwt.xml file
>  
>  
>
> Any idea why?
>
> Thanks
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Guava

2016-08-09 Thread Velusamy Velu
The errors became serious when attempted to build the project. Here is a 
sample subset of errors-
[java]Tracing compile failure path for type 
'com.google.common.collect.LinkedHashMultimap'
[java]   [ERROR] Errors in 
'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/super/com/google/common/collect/LinkedHashMultimap.java'
[java]  [ERROR] Line 25: The import com.google.j2objc 
cannot be resolved
[java]  [ERROR] Line 303: WeakOuter cannot be resolved to a 
type
[java]Tracing compile failure path for type 
'com.google.common.collect.FilteredMultimapValues'
[java]   [ERROR] Errors in 
'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/FilteredMultimapValues.java'
[java]  [ERROR] Line 40: Weak cannot be resolved to a type
[java]  [ERROR] Line 23: The import com.google.j2objc 
cannot be resolved
[java]Tracing compile failure path for type 
'com.google.common.collect.StandardTable'
[java]   [ERROR] Errors in 
'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/StandardTable.java'
[java]  [ERROR] Line 202: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 569: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 853: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 453: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 767: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 818: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 923: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 542: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 34: The import com.google.j2objc 
cannot be resolved
[java]  [ERROR] Line 513: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 614: WeakOuter cannot be resolved to a 
type
[java]  [ERROR] Line 743: WeakOuter cannot be resolved to a 
type


On Tuesday, August 9, 2016 at 4:27:59 PM UTC-4, Velusamy Velu wrote:
>
> I started using Guava with my GWT application and ran into this benign 
> message when starting the server in Eclipse.
>Ignored 28 units with compilation errors in first pass.
>
> These two inherits were added my gwt.xml file
>  
>  
>
> Any idea why?
>
> Thanks
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Guava

2016-08-09 Thread Velusamy Velu
I started using Guava with my GWT application and ran into this benign 
message when starting the server in Eclipse.
   Ignored 28 units with compilation errors in first pass.

These two inherits were added my gwt.xml file
 
 

Any idea why?

Thanks

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT RPC in GWT 3.0+

2016-07-07 Thread Velusamy Velu
I have developed a few GWT applications but never used the RPC. I didn't 
feel comfortable using RemoveService, RemoteServiceServlet, and ServiceDef; 
it reminded me the days of CORBA and IDL. I have been staying with 
extending the RequestCallback.

On Thursday, July 7, 2016 at 5:54:11 AM UTC-4, Philippe Gonze wrote:
>
> Totally agree. GWT 3.0 without RPC would be GWT 3.dead for many of the 
> current GWT developpers,
>
> For me GWT is "Web development based on Java expertise, with practically 
> no other technology implications". Extremely powerful and pleasant. Seems 
> that GWT 3.0 is announced as "no more GWT":
>
> Our plan will probably to stay with 2.8... But will 2.8 ever be released 
> ??? Developers have been waiting for it for so long... GWT's communication 
> is very strange and paradoyal.
>
>
>
>
> Le vendredi 5 février 2016 10:59:02 UTC+1, gwtar...@gmail.com a écrit :
>>
>> I understand that the future of GWT RPC does not seem bright in 3.0+ but 
>> I want to express my opinion that this is a HUGE mistake. GWT RPC is one of 
>> the most important things in GWT as it truly ties things together in large 
>> apps. Sure, it its raw form it is a bit cumbersome to use but it enables 
>> true code reuse with no extra coding. This is what sets GWT apart from the 
>> run-of-the-mill frameworks out there. Creating custom requests and 
>> responses is not maintainable and scalable in a large app that depends on 
>> extensibility and polymorphism. Ability to communicate almost any Java 
>> object graph without having to specifically annotate or declare anything, 
>> while preserving singletons is a huge advantage.
>>
>> Sure, it lacks a lot of things. We used it with out proprietary wrapper 
>> framework in a way that allows us to simply annotate sever-side methods we 
>> want to expose to the client and everything else is automagically handled - 
>> the client gains the visibility into relevant server classes and methods 
>> with same signatures other than getting results asynchronously. One can 
>> pass results of some method call as an argument of another all without 
>> leaving the sever and without having to wire boilerplate/weird code.For 
>> example, if we had the following code on the server
>>
>>   public class Foo {
>> public static Bar getBar() {
>>   return new Bar();
>> }
>> public static String someText() {
>>   return "Blah: " + System.currentTimeMillis();
>> }
>>   }
>>   public class Bar {
>> public String twice(String text) {
>>   return text + text;
>> }
>>   }
>>   
>> 
>>
>>  with our annotations on the server (not shown) the following client 
>> code would be possible:
>>
>>Foo.getBar().twice(Foo.someText(), new AsyncCallback() {
>>  ...
>>  public void onSuccess(String result) { 
>>...
>>  }
>>}
>>
>> ... no need for creating server + async interfaces, etc.
>>
>> With every other alternative we lose on simplicity and ability to 
>> communicate. All others require us to create more client-server 
>> communication code which we have been able to avoid.
>>
>> Needless to say, we'd be stuck in pre-3.0 land as we have a large code 
>> investment in GWT RPC - we could not accept losing it... but we do want to 
>> go to the newest GWT at any time. It would be greatly disappointing if we 
>> couldn't do this.
>>
>> I do not see the advantages of losing RPC. It does what it does better 
>> than anything else out there and is irreplaceable.
>>
>> Please do not get rid of it. Enhance it. It is what makes GWT better than 
>> the rest. It is what, together with the rest, allows seamless and uniform 
>> language use across the client and the server. 
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to debug GWT application on Eclipse

2016-06-29 Thread Velusamy Velu
I was always using the un-intuitive CTRL-P in Chrome, Firefox, and Opera. 
CTRL-O is more logical.
First I right clicked on the application and selected "Inspect Element" 
then did the CTRL-P or CTRL-O.

On Friday, June 24, 2016 at 7:08:40 AM UTC-4, Frank wrote:
>
> Didn't now about that CTRL+O thing.
> Thanks :-)
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Material Design Addins

2016-06-19 Thread Velusamy Velu
Thank you, your response triggered me to revisit this issue. I made two 
changes to my code and tested successfully.

   1. Upgraded to gwt-material-1.5.1.jar 
   2. Changed the name space to 
   xmlns:ma="urn:import:gwt.material.design.addins.client.window" 
   and declared the window as--> http://gwtmaterialdesign.github.io/gwt-material-demo/#window) it still 
fails.

I hope it helps.

On Sunday, June 19, 2016 at 5:40:51 AM UTC-4, Jaroslav Záruba wrote:
>
> Reading your message again I believe I misunderstood your issue. I got 
> nothing rendered, you are referring to invalid UiBinder XML.
>
> Dne středa 11. května 2016 18:07:09 UTC+2 Velusamy Velu napsal(a):
>>
>> I followed these steps to use the MaterialWindow addin from the 
>> gwt-material-addins-1.5.0.jar in an application.
>>
>>1. Downloaded gwt-material-addins-1.5.0.jar and added to 
>>application's build path in Eclipse.
>>2. Added the line  in the ..gwt.xml
>>3. Added the line 
>>xmlns:ma="urn:import:gwt.material.design.addins.client" in the 
>>UiBinder.
>>4. Then started adding the line >"window" width="50%" title="Documents"> in the UiBinder 
>>
>> But MaterialWindow is not visible to the UiBinder.  Any idea what could 
>> be wrong?
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to make my app more secure. URL token

2016-06-08 Thread Velusamy Velu
Olar Andrei:

You said - "If a letter is removed from the hashed token standing in the 
URL, and then just hit ENTER, the exact page reloads ( with the prompt for 
new password and retype new password )."

In my view your application works as expected; I do not see a problem. 

If you rather prefer the application not to load the UI then validate the 
hash and display the UI only if it validates otherwise don't. This logic 
will be additional to what you already have.

In my case I'm doing that. When user clicks on the link below I verify the 
hash is valid and not expired. If yes, I show the change password dialog 
otherwise I simply show the application in its original mode (authenticated 
or unauthenticated).

http://127.0.0.1:/?resetToken=a3Tp9NNZ9vMHm3UlPdpTe3orsBRMs1xQXETStFxU7LpblbWdzDITZ0KcmLt06qpBENNTW0c2vplqF2Tadkb9Ki3yYlNAH1EIQ1Horc1BbZxIDrerywo0RUwwekHysNGYC0YN3LcvupXejD9kzjAtVrPLuDTKgQdg6s6dnfB1ouBQij1UNfpgttSZ5evLq7ALEKn8BMKFGd2kk2uTklVs6wqw27RDcDDZv&email=...@anymail.com&action=resetPassword
 
<http://127.0.0.1:/?resetToken=a3Tp9NNZ9vMHm3UlPdpTe3orsBRMs1xQXETStFxU7LpblbWdzDITZ0KcmLt06qpBENNTW0c2vplqF2Tadkb9Ki3yYlNAH1EIQ1Horc1BbZxIDrerywo0RUwwekHysNGYC0YN3LcvupXejD9kzjAtVrPLuDTKgQdg6s6dnfB1ouBQij1UNfpgttSZ5evLq7ALEKn8BMKFGd2kk2uTklVs6wqw27RDcDDZv&email=kool.v...@gmail.com&action=resetPasswordStep2>

On Monday, June 6, 2016 at 10:37:01 AM UTC-4, Olar Andrei wrote:
>
> Velusamy Velu:
>
> I'm alredy know that link. I implemented my password reset based on your 
> workflow.
>
> But there again is the same Problem (for me actually, perhaps due to my 
> implementation). If a letter is removed from the hashed token standing in 
> the URL, and then just hit ENTER, the exact page reloads ( with the prompt 
> for new password and retype new password ). In that case when submitting, 
> nothing happens, because the token does not match the Token already stored 
> in the DB, but like I said before, the page reloads, displaying the GUI, 
> and it shoudn't do that.
>
> luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris:
>>
>> Hello,
>>
>> For now my aplication (MVP) has a login page, and 2 other palces, the 
>> AdminPlace and the UserPlace.
>> My URL looks like this:
>>
>> http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin
>>
>> The login form consists of username and password, where the username is 
>> passed as a token to the next Place.
>> A user can't connect if he does not know the password, but let's say I'm 
>> logged in like in the link above. If I change the Admin to Admin2 or 
>> whatever, I still can see the page content. I don't want this. How can I 
>> avoid this ?
>>
>> Thanks in advance
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to make my app more secure. URL token

2016-06-06 Thread Velusamy Velu
Olar:

I'm currently implementing the same. Here's a workflow that might help you 
- http://map-notes.blogspot.com/2013/01/a-good-old-reset-password-workflow.html.
Good luck
Sam V


On Monday, June 6, 2016 at 9:29:19 AM UTC-4, Olar Andrei wrote:
>
> Well, the login is done as down below
>
> final String username = usernameBox.getText();
> final String password = passwordBox.getText();
> GWT.runAsync(new RunAsyncCallback() {
>
> @Override
> public void onSuccess() {
> performUserConnection(username, password);
> }
>
> @Override
> public void onFailure(Throwable reason) {
> // TODO Auto-generated method stub
> }
> });
>
> private static void performUserConnection(String username, String 
> password) {
> DOM.getElementById("loading").getStyle().setDisplay(Display.BLOCK);
> DBConnectionAsync rpcService = (DBConnectionAsync) 
> GWT.create(DBConnection.class);
> ServiceDefTarget target = (ServiceDefTarget) rpcService;
> String moduleRelativeURL = GWT.getModuleBaseURL() + "DBConnectionImpl";
> target.setServiceEntryPoint(moduleRelativeURL);
>
> rpcService.authenticateUser(username, password, new AsyncCallback() {
>
> @Override
> public void onSuccess(User user) {
> DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);
> if (user.getType().equals("User")) {
> String username = user.getUsername();
> presenter.goTo(new UserPlace(username));
> } else if (user.getType().equals("Admin")) {
> String username = user.getUsername();
> presenter.goTo(new AdminPlace(username));
> }
> }
>
> @Override
> public void onFailure(Throwable caught) {
> DOM.getElementById("loading").getStyle().setDisplay(Display.NONE);
> DialogBox dialogBox = createDialogBox();
> dialogBox.setGlassEnabled(true);
> dialogBox.setAnimationEnabled(true);
> dialogBox.center();
> dialogBox.show();
> }
>});
> }
>
> So there is a form, the username and password are sent to the server using 
> rpc, on the user is checked and the password verified (BCrypt hash), and 
> then if they match, in the onSuccess() method the user is redirected to the 
> new Place with the username as token.
>
> How should I change this ?
>
> luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris:
>>
>> Hello,
>>
>> For now my aplication (MVP) has a login page, and 2 other palces, the 
>> AdminPlace and the UserPlace.
>> My URL looks like this:
>>
>> http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin
>>
>> The login form consists of username and password, where the username is 
>> passed as a token to the next Place.
>> A user can't connect if he does not know the password, but let's say I'm 
>> logged in like in the link above. If I change the Admin to Admin2 or 
>> whatever, I still can see the page content. I don't want this. How can I 
>> avoid this ?
>>
>> Thanks in advance
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialSearch - issues

2016-06-02 Thread Velusamy Velu
Great, will await its release.

Thanks
Sam V

On Thursday, June 2, 2016 at 4:53:44 AM UTC-4, mark kevin ringor wrote:
>
> This is solved on 1.5.1
>
> On Sunday, May 1, 2016 at 6:23:28 AM UTC+8, Velusamy Velu wrote:
>>
>> Hi Everyone -
>>
>> The GWT Material Design is a great contribution.  I'm trying to use it in 
>> our project (http://peruselab.com), we plan to release in Aug 2016.
>>
>> One of the component I'm trying to use is the MaterialSearch.  It's well 
>> designed and works as expected. However, the behavior of this is 
>> inconsistent across browsers. This may be a known issue but I'm sharing it 
>> here for the benefit of others. If anyone has found a work around please 
>> let me know. You may verify my findings at the demo site 
>> <http://gwtmaterialdesign.github.io/gwt-material-demo/#search>.
>>
>> Works in
>>
>> Opera Version 36.0 on Windows 10.x
>>
>> Safari Version 9.1.x on Mac 
>>
>> Chrome Version 49.0.2623.112 on Mac but Version 50.x failed 
>>
>>  
>>
>>  
>>
>>
>> <https://lh3.googleusercontent.com/-C0V7zCc1NMU/VyUmCPfnsaI/AAABQd8/_8lOJJ1hdyMUnH64s0C46roT_gJfl93GgCLcB/s1600/Opera%2BVersion%2B36.0.png>
>>  
>> Works but not as expected in -
>>
>> Chrome Version 51.0.2704.29 beta-m (64-bit) on Windows 10.x
>>
>> Chrome Version 50.0.x on Mac failed (Ha... why did I update?)
>>
>> Haven't tried 32 bit version of Chrome yet 
>>
>>
>> <https://lh3.googleusercontent.com/-Mk5-iyMN0I8/VyUlSMmV48I/AAABQdw/nqW0VwbxKVwBKSqZGs4q4AqJ2iTfqmDMgCLcB/s1600/Chrome%2BVersion%2B51.0.2704.29%2Bbeta-m%2B%252864-bit%2529%2Bon%2BWindows%2B10.x.png>
>>
>> MS Edge Version 25.10... on Windows 10 (results list is shown even before 
>> start searching)
>>
>>
>> <https://lh3.googleusercontent.com/-Oej6Wk4MfPI/VyUn2OPMHTI/AAABQeU/7q8EyNU1i_gu9noLjIhJ59eG8MLpslmHwCLcB/s1600/MS%2BEdge%2BVersion%2B25.10586.0.0.png>
>>  
>>  
>>
>> Firefox Version 24 (yes, I have this version to debug GWT apps in classic 
>> mode, occassionally) on Windows 10.x
>>
>>
>> <https://lh3.googleusercontent.com/-RiUZDL5ksSE/VyUkQBE-VAI/AAABQdQ/DWvRmeQHt-sXCrz-E3ltlaux4MRZVdv6QCLcB/s1600/Firefox24.png>
>>  
>>
>> Does not appear in (actually the search icon momentarily appears and 
>> disappears) --
>>
>> Firefox Version 44.0.2 & 46 on Mac
>>
>> Firefox Version 46 on Windows 10
>>
>>
>> <https://lh3.googleusercontent.com/-VqihB1ViNto/VyUr027G-kI/AAABQfo/IvmLjcrDQusZshUrpgweo8-W5gbIkm3PgCLcB/s1600/Screen%2BShot%2B2016-04-30%2Bat%2B5.08.41%2BPM.png>
>>  
>> Have a great rest of the weekend!
>> Thanks
>> Sam Velu
>>
>>  
>>
>>  
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialSearch - issues

2016-05-12 Thread Velusamy Velu
My fault, sorry for the inconvenience, I will make sure this doesn't happen 
again.

On Wednesday, May 11, 2016 at 1:18:32 PM UTC-4, Mike Warne wrote:
>
> *** Did I post the issues in the wrong forum? ***
>
> Yes, this is probably the wrong forum.
> GWT-MaterialDesign is not part of GWT.
>
> https://gitter.im/GwtMaterialDesign/gwt-material
>
> 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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Material Design Addins

2016-05-11 Thread Velusamy Velu
I followed these steps to use the MaterialWindow addin from the 
gwt-material-addins-1.5.0.jar in an application.

   1. Downloaded gwt-material-addins-1.5.0.jar and added to application's 
   build path in Eclipse.
   2. Added the line  in the ..gwt.xml
   3. Added the line xmlns:ma="urn:import:gwt.material.design.addins.client"
in the UiBinder.
   4. Then started adding the line  in the UiBinder 
   
But MaterialWindow is not visible to the UiBinder.  Any idea what could be 
wrong?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialSearch - issues

2016-05-05 Thread Velusamy Velu
Solved it with a CSS style added to my application.css

.input input[type=search]{
height: inherit !important;
}

This correction works as expected in Chrome, Opera, & FireFox.

On Saturday, April 30, 2016 at 6:23:28 PM UTC-4, Velusamy Velu wrote:
>
> Hi Everyone -
>
> The GWT Material Design is a great contribution.  I'm trying to use it in 
> our project (http://peruselab.com), we plan to release in Aug 2016.
>
> One of the component I'm trying to use is the MaterialSearch.  It's well 
> designed and works as expected. However, the behavior of this is 
> inconsistent across browsers. This may be a known issue but I'm sharing it 
> here for the benefit of others. If anyone has found a work around please 
> let me know. You may verify my findings at the demo site 
> <http://gwtmaterialdesign.github.io/gwt-material-demo/#search>.
>
> Works in
>
> Opera Version 36.0 on Windows 10.x
>
> Safari Version 9.1.x on Mac 
>
> Chrome Version 49.0.2623.112 on Mac but Version 50.x failed 
>
>  
>
>  
>
>
> <https://lh3.googleusercontent.com/-C0V7zCc1NMU/VyUmCPfnsaI/AAABQd8/_8lOJJ1hdyMUnH64s0C46roT_gJfl93GgCLcB/s1600/Opera%2BVersion%2B36.0.png>
>  
> Works but not as expected in -
>
> Chrome Version 51.0.2704.29 beta-m (64-bit) on Windows 10.x
>
> Chrome Version 50.0.x on Mac failed (Ha... why did I update?)
>
> Haven't tried 32 bit version of Chrome yet 
>
>
> <https://lh3.googleusercontent.com/-Mk5-iyMN0I8/VyUlSMmV48I/AAABQdw/nqW0VwbxKVwBKSqZGs4q4AqJ2iTfqmDMgCLcB/s1600/Chrome%2BVersion%2B51.0.2704.29%2Bbeta-m%2B%252864-bit%2529%2Bon%2BWindows%2B10.x.png>
>
> MS Edge Version 25.10... on Windows 10 (results list is shown even before 
> start searching)
>
>
> <https://lh3.googleusercontent.com/-Oej6Wk4MfPI/VyUn2OPMHTI/AAABQeU/7q8EyNU1i_gu9noLjIhJ59eG8MLpslmHwCLcB/s1600/MS%2BEdge%2BVersion%2B25.10586.0.0.png>
>  
>  
>
> Firefox Version 24 (yes, I have this version to debug GWT apps in classic 
> mode, occassionally) on Windows 10.x
>
>
> <https://lh3.googleusercontent.com/-RiUZDL5ksSE/VyUkQBE-VAI/AAABQdQ/DWvRmeQHt-sXCrz-E3ltlaux4MRZVdv6QCLcB/s1600/Firefox24.png>
>  
>
> Does not appear in (actually the search icon momentarily appears and 
> disappears) --
>
> Firefox Version 44.0.2 & 46 on Mac
>
> Firefox Version 46 on Windows 10
>
>
> <https://lh3.googleusercontent.com/-VqihB1ViNto/VyUr027G-kI/AAABQfo/IvmLjcrDQusZshUrpgweo8-W5gbIkm3PgCLcB/s1600/Screen%2BShot%2B2016-04-30%2Bat%2B5.08.41%2BPM.png>
>  
> Have a great rest of the weekend!
> Thanks
> Sam Velu
>
>  
>
>  
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialModal in gwt-material-1.5.0.jar

2016-05-05 Thread Velusamy Velu
Has any one ran in to this problem?  If yes, how did you resolve it? I'm 
sure MaterialModal is such a common widget to be used at least a couple of 
times in any given GWT project.

On Friday, April 29, 2016 at 4:58:04 PM UTC-4, Velusamy Velu wrote:
>
> Hello -
>
> I wanted to move my project to gwt-material-1.5.0 from 1.4.  The move 
> could have been painless but for the MaterialModal.  Changing from static 
> to instance model seems like the right thing to do.  As a precaution I 
> created a simple pilot project with gwt-material-1.5.0.jar and followed the 
> steps as in (
> http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted). 
>  This project is not a Maven project so I downloaded 
> the gwt-material-1.5.0.jar file.
>
>
> <https://lh3.googleusercontent.com/-p3BGlq407DA/VyPES0nfzjI/AAABO_I/p6zxnCrhel4dib6i4hJ3JKvhGrK23aMDgCLcB/s1600/ModalTest.png>
>
> It brings up simple button as show above.  The idea is to show a modal 
> when the button is clicked.
>
>
> The problem is it just doesn't work right.  A gray screen appears without 
> the content, like this.
>
>
>
> <https://lh3.googleusercontent.com/-9qrFchP-T80/VyPFD7MhBII/AAABO_Q/cwSEeM1egdY9h7vjZDgeSaK2YtiNech-ACLcB/s1600/ModalTest-gray.png>
>
>
> Here are the snippets of code (I also have attached the Eclipse project 
> file as a zip) -
>
>
> in the entry point class's job is to show a button defined in an UiBinder 
> called ModalLauncher -
> ModalLauncher launcher = new ModalLauncher();
> RootPanel.get("sendButtonContainer").add(launcher);
>
> the module launcher's UI is
>
>  "urn:import:com.google.gwt.user.client.ui"
>  xmlns:m="urn:import:gwt.material.design.client.ui">
>  
>  
>  
>  
>
> its java counterpart is
> @UiHandler("button")
>
> void handleClick(ClickEvent event) {
> AboutUs aboutUs = new AboutUs();
> aboutUs.show();
> }
>
>
> the AboutUs is
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>  "urn:import:com.google.gwt.user.client.ui"
>  xmlns:m="urn:import:gwt.material.design.client.ui">
>  
>  ui:field="aboutUsModal" backgroundColor="blue" dismissable="true">
>  
> />
>  
>  
>
>  
>
>  
>
>  
>
>
> and its java counterpart is - 
> interface AboutUsUiBinder extends UiBinder {
> }
>
> private static AboutUsUiBinder uiBinder = GWT.create(AboutUsUiBinder.
> class);
>
> @UiField
> MaterialModal aboutUsModal;
>
> public AboutUs() {
> initWidget(uiBinder.createAndBindUi(this));
> }
>
> void show() {
> aboutUsModal.openModal();
> }
>
> Any help would be highly appreciated.
>
> Thanks
> Sam Velu
> http://peruselab.com
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialSearch - issues

2016-05-05 Thread Velusamy Velu
I'm wrong about Opera V36, the problem manifests in this browser too.

I'm surprised seeing no response to my post.  Did I post the issues in the 
wrong forum?  Should I have reported this as a bug?  If yes, can someone 
let me know where report this as a bug.

Thanks
Sam Velu

On Saturday, April 30, 2016 at 6:23:28 PM UTC-4, Velusamy Velu wrote:
>
> Hi Everyone -
>
> The GWT Material Design is a great contribution.  I'm trying to use it in 
> our project (http://peruselab.com), we plan to release in Aug 2016.
>
> One of the component I'm trying to use is the MaterialSearch.  It's well 
> designed and works as expected. However, the behavior of this is 
> inconsistent across browsers. This may be a known issue but I'm sharing it 
> here for the benefit of others. If anyone has found a work around please 
> let me know. You may verify my findings at the demo site 
> <http://gwtmaterialdesign.github.io/gwt-material-demo/#search>.
>
> Works in
>
> Opera Version 36.0 on Windows 10.x
>
> Safari Version 9.1.x on Mac 
>
> Chrome Version 49.0.2623.112 on Mac but Version 50.x failed 
>
>  
>
>  
>
>
> <https://lh3.googleusercontent.com/-C0V7zCc1NMU/VyUmCPfnsaI/AAABQd8/_8lOJJ1hdyMUnH64s0C46roT_gJfl93GgCLcB/s1600/Opera%2BVersion%2B36.0.png>
>  
> Works but not as expected in -
>
> Chrome Version 51.0.2704.29 beta-m (64-bit) on Windows 10.x
>
> Chrome Version 50.0.x on Mac failed (Ha... why did I update?)
>
> Haven't tried 32 bit version of Chrome yet 
>
>
> <https://lh3.googleusercontent.com/-Mk5-iyMN0I8/VyUlSMmV48I/AAABQdw/nqW0VwbxKVwBKSqZGs4q4AqJ2iTfqmDMgCLcB/s1600/Chrome%2BVersion%2B51.0.2704.29%2Bbeta-m%2B%252864-bit%2529%2Bon%2BWindows%2B10.x.png>
>
> MS Edge Version 25.10... on Windows 10 (results list is shown even before 
> start searching)
>
>
> <https://lh3.googleusercontent.com/-Oej6Wk4MfPI/VyUn2OPMHTI/AAABQeU/7q8EyNU1i_gu9noLjIhJ59eG8MLpslmHwCLcB/s1600/MS%2BEdge%2BVersion%2B25.10586.0.0.png>
>  
>  
>
> Firefox Version 24 (yes, I have this version to debug GWT apps in classic 
> mode, occassionally) on Windows 10.x
>
>
> <https://lh3.googleusercontent.com/-RiUZDL5ksSE/VyUkQBE-VAI/AAABQdQ/DWvRmeQHt-sXCrz-E3ltlaux4MRZVdv6QCLcB/s1600/Firefox24.png>
>  
>
> Does not appear in (actually the search icon momentarily appears and 
> disappears) --
>
> Firefox Version 44.0.2 & 46 on Mac
>
> Firefox Version 46 on Windows 10
>
>
> <https://lh3.googleusercontent.com/-VqihB1ViNto/VyUr027G-kI/AAABQfo/IvmLjcrDQusZshUrpgweo8-W5gbIkm3PgCLcB/s1600/Screen%2BShot%2B2016-04-30%2Bat%2B5.08.41%2BPM.png>
>  
> Have a great rest of the weekend!
> Thanks
> Sam Velu
>
>  
>
>  
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RAM memory continously increasing while using GWT Application in IE Browser

2016-05-01 Thread Velusamy Velu
This is what I typically do in such circumstances, may work in your case 
too.  Pardon me if this appears to be "preaching the choir".

Step 1 - Detect which component leaks memory

I will disable the code behind each component, one by one.  The last 
component disabled that stopped the memory leak may be the culprit.


Step 2 - Create a POE (Proof of Error)

This will be a whittled down component, hoping to retain the memory leak 
still, will be easy to diagnose by myself.


Step 3 - If step 2 fails share the code in a forum like this (I'm hoping it 
would be OK to share at this point) and ask for help.

This has worked for me so far.  I hope it will help you too.

You may also want to try GWT 2.7, as Daniel Kurka has suggested.

On Sunday, May 1, 2016 at 5:51:04 AM UTC-4, thamarai kannan wrote:
>
> Hi Velusamy sir,
>
> sorry, I can not share the code. Is there any other way to find the 
> root cause and fix.
>
>
>
> On Friday, April 29, 2016 at 7:23:30 PM UTC+5:30, Velusamy Velu wrote:
>
>> Thamarai Kannan:
>>
>> Any reason you chose GWT 2.5.1 instead of the latest version?  As 
>> Gilberto responded it would be easier to pinpoint the problem if you could 
>> share your code, unless you are restricted.
>>
>> On Monday, February 15, 2016 at 5:05:18 AM UTC-5, thamarai kannan wrote:
>>>
>>> Hi, I am using GWT Application. for this application I am using IE10. 
>>> While lading another screen or reloading same page my RAM Memory increasing 
>>> continously. Approximately each load 5MB RAM memory consuming. Anyone help 
>>> me to free this memory space at the time of loading.
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


MaterialSearch - issues

2016-04-30 Thread Velusamy Velu
Hi Everyone -

The GWT Material Design is a great contribution.  I'm trying to use it in 
our project (http://peruselab.com), we plan to release in Aug 2016.

One of the component I'm trying to use is the MaterialSearch.  It's well 
designed and works as expected. However, the behavior of this is 
inconsistent across browsers. This may be a known issue but I'm sharing it 
here for the benefit of others. If anyone has found a work around please 
let me know. You may verify my findings at the demo site 
.

Works in

Opera Version 36.0 on Windows 10.x

Safari Version 9.1.x on Mac 

Chrome Version 49.0.2623.112 on Mac but Version 50.x failed 

 

 


 
Works but not as expected in -

Chrome Version 51.0.2704.29 beta-m (64-bit) on Windows 10.x

Chrome Version 50.0.x on Mac failed (Ha... why did I update?)

Haven't tried 32 bit version of Chrome yet 



MS Edge Version 25.10... on Windows 10 (results list is shown even before 
start searching)


 
 

Firefox Version 24 (yes, I have this version to debug GWT apps in classic 
mode, occassionally) on Windows 10.x


 

Does not appear in (actually the search icon momentarily appears and 
disappears) --

Firefox Version 44.0.2 & 46 on Mac

Firefox Version 46 on Windows 10


 
Have a great rest of the weekend!
Thanks
Sam Velu

 

 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MaterialModal in gwt-material-1.5.0.jar

2016-04-29 Thread Velusamy Velu
Oops! Sorry I missed the attachment. It's available from my *Google Drive* 
<https://drive.google.com/open?id=0BzODu3wpZ7pjeWtXNDNyY3Vxamc>.

On Friday, April 29, 2016 at 4:58:04 PM UTC-4, Velusamy Velu wrote:
>
> Hello -
>
> I wanted to move my project to gwt-material-1.5.0 from 1.4.  The move 
> could have been painless but for the MaterialModal.  Changing from static 
> to instance model seems like the right thing to do.  As a precaution I 
> created a simple pilot project with gwt-material-1.5.0.jar and followed the 
> steps as in (
> http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted). 
>  This project is not a Maven project so I downloaded 
> the gwt-material-1.5.0.jar file.
>
>
> <https://lh3.googleusercontent.com/-p3BGlq407DA/VyPES0nfzjI/AAABO_I/p6zxnCrhel4dib6i4hJ3JKvhGrK23aMDgCLcB/s1600/ModalTest.png>
>
> It brings up simple button as show above.  The idea is to show a modal 
> when the button is clicked.
>
>
> The problem is it just doesn't work right.  A gray screen appears without 
> the content, like this.
>
>
>
> <https://lh3.googleusercontent.com/-9qrFchP-T80/VyPFD7MhBII/AAABO_Q/cwSEeM1egdY9h7vjZDgeSaK2YtiNech-ACLcB/s1600/ModalTest-gray.png>
>
>
> Here are the snippets of code (I also have attached the Eclipse project 
> file as a zip) -
>
>
> in the entry point class's job is to show a button defined in an UiBinder 
> called ModalLauncher -
> ModalLauncher launcher = new ModalLauncher();
> RootPanel.get("sendButtonContainer").add(launcher);
>
> the module launcher's UI is
>
>  "urn:import:com.google.gwt.user.client.ui"
>  xmlns:m="urn:import:gwt.material.design.client.ui">
>  
>  
>  
>  
>
> its java counterpart is
> @UiHandler("button")
>
> void handleClick(ClickEvent event) {
> AboutUs aboutUs = new AboutUs();
> aboutUs.show();
> }
>
>
> the AboutUs is
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>  "urn:import:com.google.gwt.user.client.ui"
>  xmlns:m="urn:import:gwt.material.design.client.ui">
>  
>  ui:field="aboutUsModal" backgroundColor="blue" dismissable="true">
>  
> />
>  
>  
>
>  
>
>  
>
>  
>
>
> and its java counterpart is - 
> interface AboutUsUiBinder extends UiBinder {
> }
>
> private static AboutUsUiBinder uiBinder = GWT.create(AboutUsUiBinder.
> class);
>
> @UiField
> MaterialModal aboutUsModal;
>
> public AboutUs() {
> initWidget(uiBinder.createAndBindUi(this));
> }
>
> void show() {
> aboutUsModal.openModal();
> }
>
> Any help would be highly appreciated.
>
> Thanks
> Sam Velu
> http://peruselab.com
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


MaterialModal in gwt-material-1.5.0.jar

2016-04-29 Thread Velusamy Velu
Hello -

I wanted to move my project to gwt-material-1.5.0 from 1.4.  The move could 
have been painless but for the MaterialModal.  Changing from static to 
instance model seems like the right thing to do.  As a precaution I created 
a simple pilot project with gwt-material-1.5.0.jar and followed the steps 
as in 
(http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted). 
 This project is not a Maven project so I downloaded 
the gwt-material-1.5.0.jar file.



It brings up simple button as show above.  The idea is to show a modal when 
the button is clicked.


The problem is it just doesn't work right.  A gray screen appears without 
the content, like this.





Here are the snippets of code (I also have attached the Eclipse project 
file as a zip) -


in the entry point class's job is to show a button defined in an UiBinder 
called ModalLauncher -
ModalLauncher launcher = new ModalLauncher();
RootPanel.get("sendButtonContainer").add(launcher);

the module launcher's UI is


 
 
 
 

its java counterpart is
@UiHandler("button")

void handleClick(ClickEvent event) {
AboutUs aboutUs = new AboutUs();
aboutUs.show();
}


the AboutUs is

http://dl.google.com/gwt/DTD/xhtml.ent";>

 
   
 
   
 
 
   
 
   
 

 


and its java counterpart is - 
interface AboutUsUiBinder extends UiBinder {
}

private static AboutUsUiBinder uiBinder = GWT.create(AboutUsUiBinder.
class);

@UiField
MaterialModal aboutUsModal;

public AboutUs() {
initWidget(uiBinder.createAndBindUi(this));
}

void show() {
aboutUsModal.openModal();
}

Any help would be highly appreciated.

Thanks
Sam Velu
http://peruselab.com

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RAM memory continously increasing while using GWT Application in IE Browser

2016-04-29 Thread Velusamy Velu
Thamarai Kannan:

Any reason you chose GWT 2.5.1 instead of the latest version?  As Gilberto 
responded it would be easier to pinpoint the problem if you could share 
your code, unless you are restricted.

On Monday, February 15, 2016 at 5:05:18 AM UTC-5, thamarai kannan wrote:
>
> Hi, I am using GWT Application. for this application I am using IE10. 
> While lading another screen or reloading same page my RAM Memory increasing 
> continously. Approximately each load 5MB RAM memory consuming. Anyone help 
> me to free this memory space at the time of loading.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how Dynamically load a GWT Java class

2016-03-29 Thread Velusamy Velu
What's your use case?  Why would you let a user upload code that may 
potentially break your application?  Have you assessed the security risk?

On Tuesday, March 29, 2016 at 7:52:25 AM UTC-4, junaidp wrote:
>
> What I am trying to do is giving user option to upload a GWT composite
>
> As user upload a java class (which is some layout with GWT widgets) , Our 
> application will displays that layout.
>
> lets says its LoginPageView.java class .
>
> Now what i do is , After uploading I place the class in some Client 
> package, so the class is now com.test.client.LoginPageView.java
>
> Now to open this class and show the layout , I have to do
>
> LoginPageView loginView = new LoginPageView();
>
> RootPanel().get().add(loginView );
>
> and it will display the uploaded layout.
>
> But I dont know the name of the class as it was added at run time , so the 
> loading of the class will be at run time, But how will that be possible at 
> CLIENT side.
>
> Is there any way .
>
> thanks
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Mouse Pointer Location

2016-03-22 Thread Velusamy Velu
Friends:

I have a unique problem that's become difficult resolve.  I'm implementing 
a drawing application that detects mouse actions (down, up, drag, move 
etc).  The mouse location must be identified constantly (while - mouse 
moving, mouse clicking, mouse down, mouse up etc).  The location reported 
is accurate when the x is closer to 0 (when the mouse is closer to the left 
most border of the drawing area. But when the mouse is closer to the right 
most border of the drawing area (x is closer to the maximum) the location 
reported is about 1/4th inch away from the mouse's location.  The reported 
value always has a lesser x value compared to the actual mouse position.

Here's the code that gets the mouse location -

public static Point getLocation(MouseEvent event) {
int x = event.getX();
int y = event.getY();
return new Point(x, y);
}

This application is running at http://peruselab.com to experiment.  I also 
have included a couple of screen clips to illustrate the problem.  If a 
line exists on the screen and if you move the mouse closer to either ends 
of the line a circle must appear to indicate "snappability".  Actually the 
difference is gradually increasing from left to right.  That is when the 
mouse is in the middle of the drawing area then the difference between 
reported and actual mouse locations is only about 1/8 of an inch.







I'm under the hope that this is a known issue and some one has found a 
solution.


Thanks in advance.

Velu




-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: downloading file from servlet

2016-03-22 Thread Velusamy Velu
Thank you very much kjordan, it works like a charm.  In addition to your 
suggestion I added this to change the default file name with the extension 
I wanted.

link.getElement().setAttribute("download", "drawing.svg");

I appreciate your help.

On Tuesday, March 22, 2016 at 10:02:10 AM UTC-4, kjordan wrote:
>
> It's possible through a data URI with faking a click on a download anchor: 
> http://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-server
>
> On Monday, March 21, 2016 at 7:53:45 PM UTC-5, Velusamy Velu wrote:
>>
>> Thanks for this discussion, I'm able to resolve one of the issues I was 
>> running in to.  Now I have '*A*' solution if not the most perfect one. 
>>
>> The use I have is - 
>>
>>1. User creates a drawing on HTML5 canvas.
>>2. Drawing is converted to SVG on the browser.
>>3. User wants to save the drawing as SVG file.
>>4. However, I'm not sure a way exists the to save the SVG directly 
>>from the browser.
>>5. So the string representing SVG is sent to the server.
>>6. Server creates a name for the SVG.
>>7. And sends the SVG back to the browser.
>>8. The browser instantly saves the file with the name assigned by the 
>>browser.
>>
>> That's really good, but I'm sure there has to be a way to save the SVG 
>> created by the JS code without making a round trip to server.  Has any one 
>> have the know how?
>>
>> Thanks
>> Velu
>>
>> On Tuesday, October 19, 2010 at 11:49:12 PM UTC-4, mike b wrote:
>>>
>>> I have read all the other posts about downloading Excel files and how 
>>> to do it w/ an IFRAME, with RequestBuilder, and Window.open(). 
>>> However, none of them actually work.  Luckily, I have a working 
>>> servlet which executes and returns successfully with javascript. 
>>> However, we'd like to do it all in GWT.  The error message from IE is 
>>> below.  The Window.open() DOES work with FF, but not with IE. 
>>> Unfortunately, we must deploy to IE, no options there. 
>>>
>>> Situation: 
>>> GWT 2.0.4  mvp4g 1.2.0 
>>> Need to download a file to open in Excel.  At this point, its actually 
>>> a text file, but the MIME type is setup for Excel. 
>>>
>>> The servlet has been tested w/ straight java script using 
>>> "document.body.appendChild(iframe);".  This works like a champ in IE 
>>> and FF. 
>>>
>>> However, when I do "Window.open(url, "_self",null);" in GWT, IE can't 
>>> download the file.  It throws an error saying... 
>>>
>>> " 
>>> Internet Exploroer cannot download MyFile from localhost 
>>>
>>> IE was not able to open this Internet site.  The requests site is 
>>> either unavailable or cannot be found.  Please try again later. 
>>> " 
>>>
>>> In GWT, I have also tried just using a Frame, adding it to a Panel, 
>>> and then calling myFrame.setUrl("myUrl"); 
>>>
>>> This also successfully gets to the servlet, but fails w/ the above 
>>> error message while trying to "open" the file. 
>>>
>>> It seems as if GWT is telling the browser to cancel the download when 
>>> it pops up. 
>>>
>>> Any suggestions?  Any guesses? 
>>>
>>> Thanks, 
>>> mikeb
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: downloading file from servlet

2016-03-21 Thread Velusamy Velu
Thanks for this discussion, I'm able to resolve one of the issues I was 
running in to.  Now I have '*A*' solution if not the most perfect one. 

The use I have is - 

   1. User creates a drawing on HTML5 canvas.
   2. Drawing is converted to SVG on the browser.
   3. User wants to save the drawing as SVG file.
   4. However, I'm not sure a way exists the to save the SVG directly from 
   the browser.
   5. So the string representing SVG is sent to the server.
   6. Server creates a name for the SVG.
   7. And sends the SVG back to the browser.
   8. The browser instantly saves the file with the name assigned by the 
   browser.

That's really good, but I'm sure there has to be a way to save the SVG 
created by the JS code without making a round trip to server.  Has any one 
have the know how?

Thanks
Velu

On Tuesday, October 19, 2010 at 11:49:12 PM UTC-4, mike b wrote:
>
> I have read all the other posts about downloading Excel files and how 
> to do it w/ an IFRAME, with RequestBuilder, and Window.open(). 
> However, none of them actually work.  Luckily, I have a working 
> servlet which executes and returns successfully with javascript. 
> However, we'd like to do it all in GWT.  The error message from IE is 
> below.  The Window.open() DOES work with FF, but not with IE. 
> Unfortunately, we must deploy to IE, no options there. 
>
> Situation: 
> GWT 2.0.4  mvp4g 1.2.0 
> Need to download a file to open in Excel.  At this point, its actually 
> a text file, but the MIME type is setup for Excel. 
>
> The servlet has been tested w/ straight java script using 
> "document.body.appendChild(iframe);".  This works like a champ in IE 
> and FF. 
>
> However, when I do "Window.open(url, "_self",null);" in GWT, IE can't 
> download the file.  It throws an error saying... 
>
> " 
> Internet Exploroer cannot download MyFile from localhost 
>
> IE was not able to open this Internet site.  The requests site is 
> either unavailable or cannot be found.  Please try again later. 
> " 
>
> In GWT, I have also tried just using a Frame, adding it to a Panel, 
> and then calling myFrame.setUrl("myUrl"); 
>
> This also successfully gets to the servlet, but fails w/ the above 
> error message while trying to "open" the file. 
>
> It seems as if GWT is telling the browser to cancel the download when 
> it pops up. 
>
> Any suggestions?  Any guesses? 
>
> Thanks, 
> mikeb

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Forbidden words Service for GWT

2016-02-25 Thread Velusamy Velu
I ran in to the same situation and quickly put together a servlet filter 
that filters out words I felt show the intention of hacking in to my 
system.  For example words like select, 

Context Types

2016-02-21 Thread Velusamy Velu
Friends:

I'm curious about com.google.gwt.canvas.client.Canvas.getContext(String 
contextId) method.  Is there a list of supported context IDs?

Having tried the Context2d successfully I would like to migrate my 
applications to 3D.  The current version of GWT Canvas seems to support 
only 2d, unless I'm mistaken.  If not will there be any support for WebGL 
and CSS 3D in the future releases?

I would greatly appreciate your feedback.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: non-updatable widget

2016-02-13 Thread Velusamy Velu
I would concur with Thomas Broyer.  If you are new to GWT I would recommend 
using the latest stable version 2.7.  I would also recommend UiBinder 
instead of directly manipulating the widgets.

On Friday, February 12, 2016 at 7:50:31 AM UTC-5, John Harrison wrote:
>
> I'm new to GWT and working with legacy code (GWT 2.4) I am trying to 
> update the value of a textarea using setValue  via a valueChangeHandler, 
> but the textArea seem to be updated when I look in debug but not refreshing 
> on screen, I have tried removing the textArea from the view but this also 
> doesn't seem to update the screen,Does anyone have any pointers please
>
> John
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: TextBox fails to show updated text

2016-02-09 Thread Velusamy Velu
Jens:

I appreciate you taking time to verify the issue.  Yes, I was continuing to 
diagnose the issue after posting this question and found the bug.  The 
object that called the setMessage(...) method created its own instance of 
the view.  That view was not connected to the UI at all.  Similar to what 
you said.  After fixing it I couldn't get back to this posting to update it.

Thanks 
Sam V

On Tuesday, February 9, 2016 at 2:38:00 AM UTC-5, Velusamy Velu wrote:
>
> Friends:
>
> I have been working with GWT for the past 18 months and I have been able 
> to achieve considerably.  A pilot version of my application is available at 
> http://peruselab.com/.
>
> However, I landed in a major trouble with the code and I'm quite not sure 
> how to resolve.  To narrow down and focus on the crux of the issue I 
> simplified the code as below.
>
> I have a UiBinder with the content
>
>  xmlns:g="urn:import:com.google.gwt.user.client.ui">
> 
> 
> 
> 
> 
> 
>
> and a snippet of the corresponding Java code:
>
>
> @UiField
> TextBox messageTextBox;
>
> public UserContent() {
> initWidget(uiBinder.createAndBindUi(this));
> messageTextBox.setText("Message to user goes here"); 
> }
>
> public void setMessage(String message) {
> *messageTextBox.setText(message); // fails to work.*
> }
>
> The last line of Java code in red seems like a very simple statement but 
> fails to work.  I even tried messageText.setValue(message) with no 
> resolution. The textBox just couldn't be updated with a new message.  I 
> have tried stepping through the code in debug mode and found that the code 
> indeed updates the TextBox.  But the new value just doesn't show up in the 
> UI.
>
> Does any one have any idea?
>
> Thanks
> Sam V
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


TextBox fails to show updated text

2016-02-08 Thread Velusamy Velu
Friends:

I have been working with GWT for the past 18 months and I have been able to 
achieve considerably.  A pilot version of my application is available 
at http://peruselab.com/.

However, I landed in a major trouble with the code and I'm quite not sure 
how to resolve.  To narrow down and focus on the crux of the issue I 
simplified the code as below.

I have a UiBinder with the content









and a snippet of the corresponding Java code:


@UiField
TextBox messageTextBox;

public UserContent() {
initWidget(uiBinder.createAndBindUi(this));
messageTextBox.setText("Message to user goes here"); 
}

public void setMessage(String message) {
*messageTextBox.setText(message); // fails to work.*
}

The last line of Java code in red seems like a very simple statement but 
fails to work.  I even tried messageText.setValue(message) with no 
resolution. The textBox just couldn't be updated with a new message.  I 
have tried stepping through the code in debug mode and found that the code 
indeed updates the TextBox.  But the new value just doesn't show up in the 
UI.

Does any one have any idea?

Thanks
Sam V

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.