Monday, November 6, 2023

undefined String problem

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/1c533314-10bf-446f-ae28-694c6770fb07n%40googlegroups.com.

No comments:

Post a Comment