Tuesday, November 7, 2023

Re: undefined String problem

This is my bad :-)

The problem is me losing track of threading issues, which I've solved

It's *not* a GWT problem

On Tuesday, 7 November 2023 at 04:08:06 UTC dav...@googlemail.com wrote:
I'm using GWT 2.10
My app client code calls the server to get the ip address of the client.

Testing locally, I have this snippet

String lp = remoteIP.getIP();
Window.alert(ip);

 the pop up says 127.0.0.1 as expected, but  trying to include the ip string in some HTML output gives "undefined" as output.

So how to get the same value in some HTML to be displayed in a FlowPanel as in the alert popup? I tried to use the StringUtils.javaScriptString() method, but that does not effect the situation.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/199e7769-dac3-43a6-b39c-4ea489169e86n%40googlegroups.com.

No comments:

Post a Comment