Re: UDP packets & GWT

2009-11-22 Thread Andre Leger
For an update, what I did is output the data to an xml file on the
server, then fetch the data with a simple http GET using
RequestBuilder.  To deal with SOP, I had to put the xml file on the
same domain as my shindig container.

Thanks for the help, it is always appreciated.

Andre


On Nov 9, 9:55 am, Paul Robinson  wrote:
> Run your java app on a server somewhere that can receive the UDP
> packets, and then store them (in memory or in a database). GWT client
> connects to your server to get the data
>
> Andre Leger wrote:
> > Greetings,
>
> > I know this is not a pure GWT question, but a related one.
>
> > I have a web device that continuously sends UDP packets to a specific
> > IP and port.  I have a java application that is able to listen to the
> > port and receive the packets.
>
> > What I want to do is create an OpenSocial gadget in GWT that will
> > somehow take the data and be displayed in the gadget.  I understand
> > that I am not able to use the java.net.DatagramSocket and
> > java.net.DatagramPacket classes in GWT because javascript does not
> > support socket listening.
>
> > Anyone out there have a simple solution that would enable me to get
> > the datagram data somehow.  I would appreciate any suggestions.
>
> > Thank you,
>
> > Andre
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.




UDP packets & GWT

2009-11-09 Thread Andre Leger

Greetings,

I know this is not a pure GWT question, but a related one.

I have a web device that continuously sends UDP packets to a specific
IP and port.  I have a java application that is able to listen to the
port and receive the packets.

What I want to do is create an OpenSocial gadget in GWT that will
somehow take the data and be displayed in the gadget.  I understand
that I am not able to use the java.net.DatagramSocket and
java.net.DatagramPacket classes in GWT because javascript does not
support socket listening.

Anyone out there have a simple solution that would enable me to get
the datagram data somehow.  I would appreciate any suggestions.

Thank you,

Andre
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Character encoding issue with my gadget

2009-07-16 Thread Andre Leger
I finally figured it out,  It's actually an opensocial issue.  The data
being posted on an opensocial container is sanitized to prevent malicious
code injection.

Problem resolved by using:
URL.encodeComponent(newText.getText())
URL.decodeComponent(text)

Now I know :)

Andre

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Character encoding issue with my gadget

2009-07-09 Thread Andre Leger
Thanks Paulo and HW for the reply.

I already have the Eclipse workspace setup to use UTF-8.  Any other ideas
out there?

Andre



On Thu, Jul 9, 2009 at 3:15 AM, hjo1620  wrote:

>
> Have you tried this ?
>
> * Take a backup copy of your entire workspace.
> * Window>Preferences>General>Workspace>Text file encoding>Other: UTF-8
>
>
> /hw
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Character encoding issue with my gadget

2009-07-08 Thread Andre Leger
Greetings,

I have researched this issue a lot and tried many potential solution to no
avail.  Here I am requesting your help.

I have a opensocial gadget that is deployed in a Friend Connect container,
where text is captured using the following Java code (GWT v1.6.4, Eclipse
v3.4.2):

String text = newText.getText();

and is later displayed in a FlexTable using the following code:

textDisplay.setText(0, 0, text);

My problem: Whenever some specific characters are inputed in the gadget,
they are displayed in the FlexTable in an encoded form, for example:
" (quote) displays: "
' (single quote) displays: '
& displays: &

The problem is consistent in all browsers I have  tried (FF, IE, Opera,
Chrome).  It is important to note that I have no problem with French
specific characters é, à, etc.

My XML & HTML file are set to UTF-8 encoding, and Eclipse is configured to
use UTF-8 encoding.  I specifically verified that each Java files are also
encoded in UTF-8.

Thank you in advance,

Andre

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Testing gadgets during development

2009-06-08 Thread Andre Leger
Thanks for the reply.  However, I found what I was looking for with the
Eclipse plugin OpenSocial Development Environment (OSDE).
http://code.google.com/p/opensocial-development-environment/

Andre


On Fri, Jun 5, 2009 at 10:39 PM, Eric Ayers  wrote:

> The gwt-gadgets library (http://code.google.com/p/gwt-google-apis will
> allow debugging in hosted mode, but unfortunately does not support the open
> social spec for gadgets yet.
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Testing gadgets during development

2009-06-04 Thread Andre Leger
Hello,

With the objective of learning more on gadget development, I am currently
modifying the StockWatcher Tutorial code to make it work in Orkut as a
social gadget (opensocial-0.8) using Eclipse 3.4.2 with GWT 1.6.4 &
GWT-gadgets.  I got the first portion to run in the Orkut sandbox.

It is my understanding that it is not possible to test in hosted mode when
developping a gadget ("run as web application").  However, I would like to
know if there is an easier way to test changes, other than copying the
relevant files to a web accessible folder and adding the gadget (XML file)
in the Orkut sandbox.

Thanks for the help,

Andre

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---