does xml API use gwt's own engine?

2011-09-18 Thread wahaha
gwt's xml API,is it use his own analyzing engine or not?

-- 
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: byte array to Image

2011-09-18 Thread AgitoM
Hi All,

Thank you so much for the many replies.
Tried out the solution and library suggested by Xi just now, since his
solution was the easiest to verify.
It works.

After having downloaded this library:
http://sourceforge.net/projects/migbase64/

I convert the byte string like this:
String base64String = data:image/png;base64, +
Base64.encodeToString(image,false);

Then simply use it at the client side like this:
Image image = new Image(base64String);

The image now displays. I think the base64 library I initially used
was not browser safe as Jens and Thad suggested.
Would have build a servlet as Jens suggested if it had not worked.

As for your question Alexandre, I don't know why the service developer
suggested I could not use base64.
Could have been inexperience on his behalf :-). Clearly base64 does
work.

On Sep 17, 12:02 am, Xi chenx...@gmail.com wrote:
 Hi,

     I've usedhttp://sourceforge.net/projects/migbase64/in my
 application, to convert the byte array to a base64 string, which works
 pretty well and efficient
     My code is like : String base64 = data:image/png;base64, +
 Base64.encodeToString(bytes,false);
     And at the client side, you just set the value into an image
 element's src attribute.

     But be careful, IE CAN NOT take charge of an image that bigger
 than 32KB by using the Base64 way.

     Hope this can help you.

 On 16 sep, 12:54, AgitoM karel.m...@gmail.com wrote:

  Hi all,

  From a web service I am receiving a byte array that represents a
  image.
  I need to somehow squeeze this byte array into a image widget or
  similar widget on my client side.

  First I tried to convert the byte array to a base64 string:
  String base64 = Base64Utils.toBase64(image);
  base64 = data:image/png;base64,+base64;

  This didn't work. The developer of the web service informed me that I
  should not convert the byte array to a base64 string, and just use it
  directly.

  To test if the byte array represented a correct image, I saved the
  byte array to a physical image:
  InputStream in = new ByteArrayInputStream(image);
  BufferedImage bImage = ImageIO.read(in);

  File outputfile = new File(saved.png);
  ImageIO.write(bImage, png, outputfile);

  This succesfully resulted in a physical image being created.

  However I don't want to write the file and then send the URL to the
  image widget on my client side.

  Anybody have any suggestion about how I can get this byte array
  squeezed into a image?
  Or convert this byte array to a base64 string that does work?

-- 
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: Event to Know when a User is Leaving GWT Application

2011-09-18 Thread POODevelopper
Is it a good idea to put there the code that back up data to the
LocalStorage ?

On Sep 17, 9:21 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Window.ClosingEvent? As a reminder, note that all your activities' mayStop 
 will be called at that time, and the returned message will be used as the 
 event's message. There also of course Window.CloseEvent.

-- 
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: GWT4Touch is now in beta phase, take it for a spin!

2011-09-18 Thread Tom Carchrae
This is pretty cool.

But, unless I just didn't see it, it does not look like there is any way to
get data in/out of Sencha's Store objects.

How are you supposed to populate the data of the components?  Is this
possible?

Or more generally, how are you supposed to use this to populate data in the
components.  (my expectation is a wrapper on the Store API for CRUD and
ability to add listeners)

Btw, are you using any library/tool to auto-generate the GWT JS wrapper?

Tom

On Fri, Sep 16, 2011 at 9:48 AM, Alfredo Quiroga-Villamil laww...@gmail.com
 wrote:

 All:

 Ready for you to play with is our latest addition GWT4Touch which includes
 chart support. Develop slick Sencha Touch mobile apps in Java.

 Take it for a spin, visit us at http://www.emitrom.com/gwt4touch

 As usual any feedback will be greatly appreciated.

 The Emitrom Team.

 --
 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.


-- 
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: GWT4Touch is now in beta phase, take it for a spin!

2011-09-18 Thread Tom Carchrae
Some more digging and I see how you are doing it at the moment (creating Js
data and passing it in)

 http://www.gwt4touch.appspot.com//sources/demos/linechart.html



On Sun, Sep 18, 2011 at 5:38 AM, Tom Carchrae t...@carchrae.net wrote:

 This is pretty cool.

 But, unless I just didn't see it, it does not look like there is any way to
 get data in/out of Sencha's Store objects.

 How are you supposed to populate the data of the components?  Is this
 possible?

 Or more generally, how are you supposed to use this to populate data in the
 components.  (my expectation is a wrapper on the Store API for CRUD and
 ability to add listeners)

 Btw, are you using any library/tool to auto-generate the GWT JS wrapper?

 Tom


 On Fri, Sep 16, 2011 at 9:48 AM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 All:

 Ready for you to play with is our latest addition GWT4Touch which includes
 chart support. Develop slick Sencha Touch mobile apps in Java.

 Take it for a spin, visit us at http://www.emitrom.com/gwt4touch

 As usual any feedback will be greatly appreciated.

 The Emitrom Team.

 --
 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.




-- 
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.



Empty response from server using RequestBuilder getStatusCode() = 0

2011-09-18 Thread RShekhar
I have a GWT script which needs to get data from a PHP file kept on
the same server (Domain). Everything works fine on my local server
i.e. no SOP issues but when I transfer all the files to production
server I get getStatusCode() = 0 with empty response.


I have kept Both script mymodule.nocache.js and PHP files are in same
folder to avoid any issues with SOP:

http://mydomain.com/tools/gwt/mymodule.nocache.js ( and all the
associated files)
http://mydomain.com/tools/gwt/mylogoic.php
http://mydomain.com/tools/gwt/index.html
etc.

Following is my gwt code:

String url = http://mydomain.com/tools/gwt/
mylogic.php?q=;

url  += inputTextBox.getText();
url = URL.encode(url);

  RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
url);
  builder.setHeader(Content-Type,application/x-www-form-
urlencoded);
  try {
Request request = builder.sendRequest( , new
RequestCallback() {
  public void onError(Request request, Throwable exception) {
 // Couldn't connect to server (could be timeout, SOP
violation, etc.)
  }

  public void onResponseReceived(Request request, Response
response) {
if (200 == response.getStatusCode()) {
outputTextBox.setText(response.getText());
Window.alert(+response.getStatusCode());
} else {
errorLabel.setText(Status Text =  +
response.getStatusText());
}
  }
});
  } catch (RequestException e) {
// Couldn't connect to server
  }

PHP file:

?php
$q = $_GET['q'];
$symbols = explode(' ', $q);
$in_val = $symbols[0];
echo $in_val;
?

Also, if i directly access the PHP file it returns the correct
variable value.
i.e.
http://mydomain.com/tools/gwt/uconvert.php?q=10
i get in return: 10

I tried to debug using firebug and got following output:

GET http://mydomain.com/tools/gwt/uconvert.php?q=100   200 OK   231ms

Parameter: q100

Response Headers

DateSun, 18 Sep 2011 13:42:42 GMT
Server  Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5
mod_bwlimited/1.4
Cache-Control   no-cache
Pragma  no-cache
Keep-Alive  timeout=5, max=100
Connection  Keep-Alive
Transfer-Encoding   chunked
Content-Typetext/plain; charset=utf-8

Request Headers
Hostmydomain.com
User-Agent  Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2)
Gecko/20100101 Firefox/6.0.2
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Content-Typetext/plain; charset=utf-8
Referer http://www.mydomain.com/tools/gwt/index.html
Origin  http://www.mydomain.com

Please help.

Thanks
Ravi

-- 
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: localization/custom text/ message through configuration

2011-09-18 Thread István Szoboszlai
Hello,

We have an open source project, that is not publicly announced yet as we
still need to do some inmporvements on the code. You can find it at
code.google.com/p/ineform

As part of this framework we have an i18n solution as well. You do not have
to use the full framework, you can use only the i18n component of it. If you
are interested we can have a skype meeting and I can help you get started
with the framework.

Üdvözlettel / Best Regards
- István Szoboszlai
istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com


On Wed, Sep 14, 2011 at 10:20 PM, kelly kellyche...@gmail.com wrote:

 Hi,

 I have a web application that I want to distribute to multiple user
 grroups./company.

 I want to make the text on my screen fllexible that they can change
 the properties file without re-compiling it.

 ie companyName = my Company

 my client with company name ABC Company can change it like
 companyName = ABC company

 is that for image, as long as they can replace the image with the same
 filename in the war file, they can change it themselves as well?

 --
 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.



-- 
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: Empty response from server using RequestBuilder getStatusCode() = 0

2011-09-18 Thread Thomas Broyer

On Sunday, September 18, 2011 3:49:59 PM UTC+2, RShekhar wrote:

 I have a GWT script which needs to get data from a PHP file kept on 
 the same server (Domain). Everything works fine on my local server 
 i.e. no SOP issues but when I transfer all the files to production 
 server I get getStatusCode() = 0 with empty response.

[…] 

 Request Headers 
 Host mydomain.com 

[…] 

 Referer http://www.mydomain.com/tools/gwt/index.html 
 Origin http://www.mydomain.com 


www.mydomain.com is not the same as mydomain.com; it *is* a SOP issue. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/rLu_8ua9IaQJ.
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: GWT4Touch is now in beta phase, take it for a spin!

2011-09-18 Thread Alain Ekambi
Hi Tom,
I m glad you saw the chart example. Like you suspected we are currenttly
adding support for the Sencha Data Package.
That example illustrate the use of the JsonStore. Before the final release
we will add more demos illustrating how  to use stores with widgets.

We actually do not use any tools to generate the GWT overlays. The problem
we had with automatic generation is that the documentation of the different
products is most of the times broken or incomplete. Since we would hav to
check anyway if the Java method actually does what the underlying JS methog
 does  we decided to write everything by hand ! This is a huge amount of
work considering the size of the libraries we support but it gives us more
control over the Java API.

Thx for the inputs and keep them coming.

Cheers.

Alain




2011/9/18 Tom Carchrae t...@carchrae.net

 Some more digging and I see how you are doing it at the moment (creating Js
 data and passing it in)

  http://www.gwt4touch.appspot.com//sources/demos/linechart.html



 On Sun, Sep 18, 2011 at 5:38 AM, Tom Carchrae t...@carchrae.net wrote:

 This is pretty cool.

 But, unless I just didn't see it, it does not look like there is any way
 to get data in/out of Sencha's Store objects.

 How are you supposed to populate the data of the components?  Is this
 possible?

 Or more generally, how are you supposed to use this to populate data in
 the components.  (my expectation is a wrapper on the Store API for CRUD and
 ability to add listeners)

 Btw, are you using any library/tool to auto-generate the GWT JS wrapper?

 Tom


 On Fri, Sep 16, 2011 at 9:48 AM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 All:

 Ready for you to play with is our latest addition GWT4Touch which
 includes chart support. Develop slick Sencha Touch mobile apps in Java.

 Take it for a spin, visit us at http://www.emitrom.com/gwt4touch

 As usual any feedback will be greatly appreciated.

 The Emitrom Team.

 --
 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.



  --
 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.




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

-- 
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.



How do I get web workers to work in GWT?

2011-09-18 Thread Xavier
Can someone provide a simple example on how to setup web workers in
GWT?  I would greatly appreciate any help on this!

-- 
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: byte array to Image

2011-09-18 Thread leandro borbosa
I also needed this one.
Thx for sharing !

2011/9/18 AgitoM karel.m...@gmail.com

 Hi All,

 Thank you so much for the many replies.
 Tried out the solution and library suggested by Xi just now, since his
 solution was the easiest to verify.
 It works.

 After having downloaded this library:
 http://sourceforge.net/projects/migbase64/

 I convert the byte string like this:
 String base64String = data:image/png;base64, +
 Base64.encodeToString(image,false);

 Then simply use it at the client side like this:
 Image image = new Image(base64String);

 The image now displays. I think the base64 library I initially used
 was not browser safe as Jens and Thad suggested.
 Would have build a servlet as Jens suggested if it had not worked.

 As for your question Alexandre, I don't know why the service developer
 suggested I could not use base64.
 Could have been inexperience on his behalf :-). Clearly base64 does
 work.

 On Sep 17, 12:02 am, Xi chenx...@gmail.com wrote:
  Hi,
 
  I've usedhttp://sourceforge.net/projects/migbase64/in my
  application, to convert the byte array to a base64 string, which works
  pretty well and efficient
  My code is like : String base64 = data:image/png;base64, +
  Base64.encodeToString(bytes,false);
  And at the client side, you just set the value into an image
  element's src attribute.
 
  But be careful, IE CAN NOT take charge of an image that bigger
  than 32KB by using the Base64 way.
 
  Hope this can help you.
 
  On 16 sep, 12:54, AgitoM karel.m...@gmail.com wrote:
 
   Hi all,
 
   From a web service I am receiving a byte array that represents a
   image.
   I need to somehow squeeze this byte array into a image widget or
   similar widget on my client side.
 
   First I tried to convert the byte array to a base64 string:
   String base64 = Base64Utils.toBase64(image);
   base64 = data:image/png;base64,+base64;
 
   This didn't work. The developer of the web service informed me that I
   should not convert the byte array to a base64 string, and just use it
   directly.
 
   To test if the byte array represented a correct image, I saved the
   byte array to a physical image:
   InputStream in = new ByteArrayInputStream(image);
   BufferedImage bImage = ImageIO.read(in);
 
   File outputfile = new File(saved.png);
   ImageIO.write(bImage, png, outputfile);
 
   This succesfully resulted in a physical image being created.
 
   However I don't want to write the file and then send the URL to the
   image widget on my client side.
 
   Anybody have any suggestion about how I can get this byte array
   squeezed into a image?
   Or convert this byte array to a base64 string that does work?

 --
 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.



-- 
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.



GWT CellTable Add Widgets on The Footer

2011-09-18 Thread POODevelopper
Hello I'm using GWT 2.4 and I want to Add Some Widgets on the footer on a 
CellTable, Is It possible. Below A Mockup if What I want to accomplish : 

https://lh5.googleusercontent.com/-9QTjFJdhCvE/TnZVRqYMfaI/AHs/WQLAmuvw6c4/FooterCellTable.png
It Is Possible out the box ??

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TU1kFJIgjXgJ.
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: Dart GWT

2011-09-18 Thread Alain Ekambi
Is Dart even out yet ?

2011/9/18 Alexander Orlov alexander.or...@loxal.net

 Some of you maybe already read this 
 mailhttp://markmail.org/message/uro3jtoitlmq6x7t.
 Yes, Google's new structural web programming language aka Dart... Also I
 suppose that some of you are even working on its integration into GWT.

 Keeping it within your NDA frame, is it possible to tell how GWT's Dart
 integration will look like? I am thinking of a *compile to Dart* option
 or something like *JSNI on steroids* version for Dart... /dreaming :)

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/BGntSBd1XlAJ.
 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.




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

-- 
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: Empty response from server using RequestBuilder getStatusCode() = 0

2011-09-18 Thread RShekhar
Thanks Thomas.

Finally I fixed this issue.

I changed the url from http://mydomain.com/tools/gwt/mylogic.php?q=;
to /tools/gwt/mylogic.php?q=.


RS



On Sep 18, 11:41 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Sunday, September 18, 2011 3:49:59 PM UTC+2, RShekhar wrote:

  I have a GWT script which needs to get data from a PHP file kept on
  the same server (Domain). Everything works fine on my local server
  i.e. no SOP issues but when I transfer all the files to production
  server I get getStatusCode() = 0 with empty response.

 […]

  Request Headers
  Host mydomain.com

 […]

  Refererhttp://www.mydomain.com/tools/gwt/index.html
  Originhttp://www.mydomain.com

 www.mydomain.comis not the same as mydomain.com; it *is* a SOP issue.

-- 
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: Dart GWT

2011-09-18 Thread Alexander Orlov


On Sunday, September 18, 2011 11:11:51 PM UTC+2, nino wrote:

 Is Dart even out yet ? 


Not yet and therefore I'm asking those questions. Dart will be introduced on 
10-12th Oct. during the GOTO Conference.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hfc75rz0-fcJ.
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.



Understanding @ExtraTypes

2011-09-18 Thread opn
I want to check out the new polymorphism features available for 
RequestFactory soon and stumbled upon the @ExtraTypes 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/ExtraTypes.java?spec=svn10499r=10317annotation.
 
From the JavaDoc and this 
testhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryPolymorphicTest.java?spec=svn10317r=10317I
 maybe should understand what exactly it does, but I don't! ;)

What is the effect when putting it on top of a proxy interface?
When do I put it above the RequestContext inteface?

Regards
Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/34j7G9WjCvwJ.
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.



Json serialization

2011-09-18 Thread Facundo Schwindt
Hi everyone ...

This days I was surfing different method to serialize and deserialize Json.
I found Piriti ( http://code.google.com/p/piriti/ ) this run on the client
side only.

but I try to reproduce an example of the wiki with no good results.
http://code.google.com/p/piriti/wiki/Json#Implementation

Any one knows where really I have to put the JSON data of this example in a
GWT project? :

JSON data

{
isbn: 978-0345417954,
pages: 432,
title: The Hotel New Hampshire,
author: {
firstname: John,
surname: Irving,
},
reviews: [
A hectic gaudy saga with the verve of a Marx Brothers movie.,
Rejoice! John Irving has written another book according to
your world.,
Spellbinding, intensely human, a high-wire act of dazzling virtuosity.
]

}


and how a do for that example works on my gwt project ?

Thanks
Ezequiel

-- 
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: ListBox and Data Binding

2011-09-18 Thread Craig Mitchell
Use ValueListBox, not ListBox.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/x4ATANz8NcgJ.
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: EJB integration in GWT-jBoss-project

2011-09-18 Thread Norman Klingspor
Friday I found the answer to my problem mentioned above:

As this is a connection between 2 seperate projects, I had to use the
mapped-name to identify my ejb-class.


@EJB(mappedName = sung/app/kylintv/product ) instead of
@EJB(name = Product )

As there are further errors coming up, I'll be using this thread for a
short description of problems and their solutions until the first run
is completed. I hope this'll help others like me.

Norman

On 16 Sep., 10:59, Norman Klingspor norman.klings...@googlemail.com
wrote:
 Hi Karim,

 thanks for the help - and you were totally right. I just made the 
 well i failed in adding compiled classes. Instead I included the
 source-files :-)

 Now, that I get this far, however, another error (of course) occurs:

 My jBoss brings up a deployment error:

 DEPLOYMENTS IN ERROR:
   Deployment vfs:///D:/Development/jboss-6.1.0.Final/server/default/
 deploy/kylintv.gwt.war is in error due to the following reason(s):
 java.lang.RuntimeException: Could not resolve @EJB reference:
 [EJBReference: beanInterface 'sung.app.kylintv.product.Product',
 beanName 'null', mappedName 'null', lookupName 'null', owning unit
 'AbstractVFSDeploymentContext@73321136{vfs:///D:/Development/
 jboss-6.1.0.Final/server/default/deploy/kylintv.gwt.war}'] for
 environment entry: env/Product in unit
 AbstractVFSDeploymentContext@73321136{vfs:///D:/Development/
 jboss-6.1.0.Final/server/default/deploy/kylintv.gwt.war}

         at
 org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:
 1228) [:2.2.2.GA]
         at
 org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:
 905) [:2.2.2.GA]
         at
 org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:
 87) [:6.1.0.Final]
         at
 org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:
 107) [:0.2.2]
         at
 org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:
 135) [:6.1.0.Final]
         at
 org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:
 56) [:6.1.0.Final]
         at
 org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:
 827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]
         at org.jboss.bootstrap.impl.base.server.AbstractServer
 $StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-
 base.jar:2.1.0-alpha-6]
         at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

 Like this, there seems to be an error with my called in classes.

 relvant code-snippets:

 gwt-server:
 ...     private Product product;

         @EJB(name = Product )
         public void setProduct(Product product)
         {
                 this.product = product;
         }
 ...

 ejb-source:
 ...
 Stateless(name=Product)
 @Local(Product.class)
 public class ProductHome extends HomeBaseProductEntity implements
 Serializable, Product
 {
 ...

 Is there another requirement, which I didnt include?

-- 
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.



Problem Updating View Programmatically

2011-09-18 Thread gcr
All,

I am attempting to do something that must be very common, but I can't
get it to work.  I place either a canvas or a TextBox on the screen
and change it programmatically and my changes don't show up on the
screen.

I am using uibinder.  If I give say, my TextBox an initial value
g:TextBoxXXX/g:TextBox this value is displayed on the screen when
I run the app.  But if I attempt to change the value by calling
textBox.setText(YYY) from the program.  The display continues to
show the original XXX.  It's as if I need to do some kind of refresh.

A similar thing is happening with Canvas.  I create the Canvas in the
program, add it to a SimpleLayoutPanel, and draw on it--nothing
appears.

All this is consistent throughout my app.  Any data values I declare
in the uibinder file. appear just fine, but any values is set from the
program have no effect.

Clearly, I am doing something wrong, but what?  Do I need to repaint
somehow?

Thanks

-- 
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.



[gwt-contrib] Any facts about GWT Dart?

2011-09-18 Thread Alexander Orlov
Some of you maybe already read this 
mailhttp://markmail.org/message/uro3jtoitlmq6x7t. 
Yes, Google's new structural web programming language aka Dart... Also I 
suppose that some of you are even working on its integration into GWT.

Keeping it within your NDA frame, is it possible tot tell how GWT's Dart 
integration will look like? I am thinking of a *compile to Dart* option or 
something like *JSNI on steroids* version for Dart... /dreaming :)

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Enable FF6 Plugin in MissingPlugin Page. (issue1551803)

2011-09-18 Thread acleung

Reviewers: rjrjr,

Description:
Enable FF6 Plugin in MissingPlugin Page.


Please review this at http://gwt-code-reviews.appspot.com/1551803/

Affected files:
  M plugins/MissingPlugin/war/MissingPlugin.html


Index: plugins/MissingPlugin/war/MissingPlugin.html
===
--- plugins/MissingPlugin/war/MissingPlugin.html(revision 10654)
+++ plugins/MissingPlugin/war/MissingPlugin.html(working copy)
@@ -35,7 +35,7 @@

   firefox-old :
   {
-caption : Sorry, the GWT Developer Plugin only supports  
Firefox 3.0 - 5.0 at present,
+caption : Sorry, the GWT Developer Plugin only supports  
Firefox 3.0 - 6.0 at present,

 url : http://www.getfirefox.com;,
 supported : false
   },
@@ -173,7 +173,8 @@
   } else if (ua.indexOf(gecko) != -1) {
   if (ua.indexOf(rv:1.9) != -1 ||
   ua.indexOf(rv:2.0) != -1 ||
-  ua.indexOf(rv:5.0) != -1) {
+  ua.indexOf(rv:5.0) != -1 ||
+  ua.indexOf(rv:6.0) != -1) {
   id = 'firefox';
 } else {
   id = 'firefox-old';


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors