Re: Is it possible to use images in the new UIBinder cell rendering feature?

2012-07-17 Thread Thomas Broyer

On Monday, July 16, 2012 10:23:00 PM UTC+2, Brad Leupen wrote:

 Hey there,

 I'm experimenting with the new 2.5 UIBinder Cell Rendering functionality. 
 So far it's working well except that i can't see a non-sprite way to use 
 images in my template. Am i missing something?


You can use a DataResource and its getSafeUri() method, or pass the result 
of AbstractImagePrototype#getSafeHtml() as a ui:with parameter.
Example using a DataResource:

ui:data field=img src=myImage.png /
…
img src={img.getSafeUri} /

IIRC there's an open issue to make it easier to use an ImageResource in 
UiBinder without resorting to @sprite or externalizing the 
AbstractImagePrototype thingy.

-- 
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/-/4GLFiro1NsEJ.
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: NULL Points + Fire Fox

2012-07-17 Thread Thomas Broyer


On Tuesday, July 17, 2012 2:53:13 AM UTC+2, Paul Stockley wrote:

 I can tell you that if you are working in anyway with JSO objects, devmode 
 will mask out null pointer exceptions. Maybe this is related. The problem 
 has to do with the JS method devmode uses to execute the JSNI code in the 
 browser. The stupid JS spec says if an object is null just do nothing, When 
 executing the JS for real this method isn't used and you get an error.


It's not just do nothing, it's use the global object (or maybe look up 
the scope chain).
To make things clear for everyone: DevMode executes JSNI method's by using 
.call() on the JS Function, passing the 'this' 
object (jsniFunc.call(thisObj, args)), and that object can be 'null', 
executing the method with the global object (equivalent to 'window') as the 
'this' object. In prod mode though, the code is compiled to a real method 
call (thisObj.jsniFunc(arg1, arg2), or staticified as jsniFunc(thisObj, 
arg1, arg2)) and then there can be a null has no jsniFunc property error 
at runtime.

See http://code.google.com/p/google-web-toolkit/issues/detail?id=3069

-- 
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/-/nuaNiG88WMsJ.
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: RequestFactory VS Cloud Endpoints (App Engines Java Rest API)

2012-07-17 Thread YatiRaj B
Hello Kevin,

It didn't work for me :(

I'm working on HP 64bit WIndows Vista. Is that a problem for some reason?
Not sure!

Here's what I have/did:

   1. I have everything latest: Juno, GPE 1.7 etc
   2. The system did behave as explained by you when I changed Facet to 1.6
   3. After the errors are gone, I right clicked the *Project* -
Google - Generate
   Cloud Endpoint and it gave me error.
   4. I know this is *not *what you told. But I tried as it was on Google
   IO video
   5. As per your suggestion, I clicked on *POJO*-Google-Generate Cloud
   Endpoint and it gave me error: *This is not a JDO/JPA entity class*
   6. Of course it is not. But isn't it supposed to do on any class I want
   a service from (as long as I've the API annotations)?
   7. I'm pasting my example classes here below. Basically I created a
   class which accepts a number and returns the square of it. And another
   class that will work as my Servlet if I were to write a servlet: this
   takes the number from client requests and creates a square class with this
   number and gets the square of the number.

*POJO Square:*
public class Square {

int var;
int square;
 public Square(int var) {
this.var = var;
 this.square = var * var;
}

public int getVar() {
 return var;
}

public void setVar(int var) {
 this.var = var;
setSquare(var * var);
}

public int getSquare() {
return square;
}

private void setSquare(int square) {
this.square = square;
 }
}


*POJO SquareEndPoint:*
@Api(name = square)
public class SquareEndpoint {

@ApiMethod(name = square.getSquare)
 public int getSquare(int number){
Square sq;
sq = new Square(number);
 return sq.getSquare();
}
}


I'll try on actual JDO/JPA class very soon. It may work but my other
question remains: storing to DataStore may not me my only intention to
create these endpoints. I might provide such simple service as: Celsius
to Fahrenheit etc... But that's a different question. Let me 1st get this
working! :)

your views on it?

Thank you!
Raj.


On Tue, Jul 17, 2012 at 9:32 AM, YatiRaj B byati...@gmail.com wrote:

 Hi Kevin,

 Deeply appreciate your reply as promised! :)

 I'll check if it works for me very soon today and let you know... just
 started the day :P

 Thanks again!
 Raj.



 On Tue, Jul 17, 2012 at 1:27 AM, Kevin Moore kmoore...@gmail.com wrote:

 As Promised...


 For some reason... do the following...

 *Assumptions..*

- You have the Latest Eclipse(Juno)
- You have installed all the latest APPEngine SDK 1.70
- You have Java SDK 1.70 at least..
- You Created a POJO
- You Generated your endpoint class by right-clicking on the
POJO-Google-Generate Cloud Endpoint Class


 *The symptoms...you are experiencing*
 When you right mouse click on the
 project then Google-Generate Cloud Endpoint Client Library...
 you get a quick flash and then nothing!!!

 *Solution*
 1. Click on the menu bar of the IDE
Window-Show View-Navigator
 2. This should take you to the Navigator Window.
 3. Expanding the .settings folder in the Navigator window
under your project.
  4. double-click the file org.eclipse.wst.common.project.facet.core.xml
 5. It should look like what I have below... but probably yours says
 ..version=1.7
 CHANGE IT TO 1.6 just like mine below...and save

 ?xml version=1.0 encoding=UTF-8?
 faceted-project
   installed facet=java version=1.6/
 /faceted-project

 6. Your Project will the probably start to Complain
 so click on the Window-Show VIew-Problem option and
 choose to do the quick fix...
 7. Your project will stop complaining...

 8. Go back to Package Explorer and Google-Generate Cloud Endpoint Client
 Library
Again this should now work.

 BUT YOU WANTED TO TEST THE END POINTS
 LOCALLY...RIGHT?

 9. Once you are running you projects locally...
 enter the following format on the url and..

 http://localhost://_ah/api/X/v1/Y
 where X = @Api(name = thenameyouputhere)
 andY =  your POJO name lowercase
 DONT forget the v1
 This should yield an empty JSON list

 but because you can do a POST from the url
 in your browser...

 To test all of the inputs, this is best done with CURL even on a
 Windows PC
 here is the link to get CURL
 http://www.paehl.com/open_source/?CURL_7.26.0

 9. You only need for now the non-ssl version..
 you will need the SSL version when you are
 able to deploy to appengine... for now you will be testing locally...

 10. once you have downloaded and installed curl ...
   go to the curl folder do the following...

 11.
 To ADD and Entry
 curl --header Content-Type: application/json -X POST -d  {\X\:\Some
 New Value} http://localhost:888/_ah/api/Yt/v1/Z;
 X = Some Variable in your POJO that you Want to ADD (not the Identity)
 where Y = @Api(name = thenameyouputhere)
 andZ =  your POJO name lowercase
 DONT forget the v1

 NOW repeat Step 9 then 11 again...

 Hope it helps, let me know either way ...

 On Mon, Jul 16, 2012 at 2:03 AM, YatiRaj B byati...@gmail.com wrote:

 Wo! that's an 

Re: RequestFactory VS Cloud Endpoints (App Engines Java Rest API)

2012-07-17 Thread Kevin Moore
Raj,
I have not tried to create a service as you did, I did it with a judo pojo.

can you please try the steps I suggested, using a
pojo , very simple one, then when it works modify the service to ignore the
pojo and see what happens.
On Jul 17, 2012 3:08 AM, YatiRaj B byati...@gmail.com wrote:

 Hello Kevin,

 It didn't work for me :(

 I'm working on HP 64bit WIndows Vista. Is that a problem for some reason?
 Not sure!

 Here's what I have/did:

1. I have everything latest: Juno, GPE 1.7 etc
2. The system did behave as explained by you when I changed Facet to
1.6
3. After the errors are gone, I right clicked the *Project* - Google
- Generate Cloud Endpoint and it gave me error.
4. I know this is *not *what you told. But I tried as it was on Google
IO video
5. As per your suggestion, I clicked on *POJO*-Google-Generate Cloud
Endpoint and it gave me error: *This is not a JDO/JPA entity class*
6. Of course it is not. But isn't it supposed to do on any class I
want a service from (as long as I've the API annotations)?
7. I'm pasting my example classes here below. Basically I created a
class which accepts a number and returns the square of it. And another
class that will work as my Servlet if I were to write a servlet: this
takes the number from client requests and creates a square class with this
number and gets the square of the number.

 *POJO Square:*
 public class Square {

 int var;
 int square;
  public Square(int var) {
 this.var = var;
  this.square = var * var;
 }

 public int getVar() {
  return var;
 }

 public void setVar(int var) {
  this.var = var;
 setSquare(var * var);
 }

 public int getSquare() {
 return square;
 }

 private void setSquare(int square) {
 this.square = square;
  }
 }


 *POJO SquareEndPoint:*
 @Api(name = square)
 public class SquareEndpoint {

 @ApiMethod(name = square.getSquare)
  public int getSquare(int number){
 Square sq;
 sq = new Square(number);
  return sq.getSquare();
 }
 }


 I'll try on actual JDO/JPA class very soon. It may work but my other
 question remains: storing to DataStore may not me my only intention to
 create these endpoints. I might provide such simple service as: Celsius
 to Fahrenheit etc... But that's a different question. Let me 1st get this
 working! :)

 your views on it?

 Thank you!
 Raj.


 On Tue, Jul 17, 2012 at 9:32 AM, YatiRaj B byati...@gmail.com wrote:

 Hi Kevin,

 Deeply appreciate your reply as promised! :)

 I'll check if it works for me very soon today and let you know... just
 started the day :P

 Thanks again!
 Raj.



 On Tue, Jul 17, 2012 at 1:27 AM, Kevin Moore kmoore...@gmail.com wrote:

 As Promised...


 For some reason... do the following...

 *Assumptions..*

- You have the Latest Eclipse(Juno)
- You have installed all the latest APPEngine SDK 1.70
- You have Java SDK 1.70 at least..
- You Created a POJO
- You Generated your endpoint class by right-clicking on the
POJO-Google-Generate Cloud Endpoint Class


 *The symptoms...you are experiencing*
 When you right mouse click on the
 project then Google-Generate Cloud Endpoint Client Library...
 you get a quick flash and then nothing!!!

 *Solution*
 1. Click on the menu bar of the IDE
Window-Show View-Navigator
 2. This should take you to the Navigator Window.
 3. Expanding the .settings folder in the Navigator window
under your project.
  4. double-click the file org.eclipse.wst.common.project.facet.core.xml
 5. It should look like what I have below... but probably yours says
 ..version=1.7
 CHANGE IT TO 1.6 just like mine below...and save

 ?xml version=1.0 encoding=UTF-8?
 faceted-project
   installed facet=java version=1.6/
 /faceted-project

 6. Your Project will the probably start to Complain
 so click on the Window-Show VIew-Problem option and
 choose to do the quick fix...
 7. Your project will stop complaining...

 8. Go back to Package Explorer and Google-Generate Cloud Endpoint
 Client Library
Again this should now work.

 BUT YOU WANTED TO TEST THE END POINTS
 LOCALLY...RIGHT?

 9. Once you are running you projects locally...
 enter the following format on the url and..

 http://localhost://_ah/api/X/v1/Y
 where X = @Api(name = thenameyouputhere)
 andY =  your POJO name lowercase
 DONT forget the v1
 This should yield an empty JSON list

 but because you can do a POST from the url
 in your browser...

 To test all of the inputs, this is best done with CURL even on a
 Windows PC
 here is the link to get CURL
 http://www.paehl.com/open_source/?CURL_7.26.0

 9. You only need for now the non-ssl version..
 you will need the SSL version when you are
 able to deploy to appengine... for now you will be testing locally...

 10. once you have downloaded and installed curl ...
   go to the curl folder do the following...

 11.
 To ADD and Entry
 curl --header Content-Type: application/json -X POST -d
  {\X\:\Some New Value} 

Re: Setting Locale language dynamically initially

2012-07-17 Thread Rana Issa
Thanks a lot, I will try this
Rana

On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote:

 You could build your app's host html page dynamically (jsp, php, whatever) 
 and add a meta property to the head as described in 
 https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying

 That way your app loads directly the specified language if its available, 
 otherwise it loads the default language.

 -- J.


-- 
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/-/4w-DBdwJKMMJ.
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: How i change the locale language of the application

2012-07-17 Thread Rana
Hi,

I found the problem!
In the module file I need to set the order of search:
set-configuration-property name='locale.searchorder' 
value='queryparam,cookie,useragent' /
I had a space so, it caused GWT not to function well
set-configuration-property name='locale.searchorder' value='queryparam, 
cookie, useragent' /  //that caused the issue.

Issue solved
Rana

On Friday, July 6, 2012 12:56:08 AM UTC+2, Rana wrote:

 Hi,

 I am also, not finding a way to set the locale in GWT. The only way I 
  found is to use a query parameter that will re-load the page. However, 
 although the url locale is changed,the actual page doesn't change the 
 language.
 Does anyone know why does this happen?

 The code for changing the url:

 public static void changeLocale(String localeParamName, String newLocale) {
 UrlBuilder newUrl = Window.Location.createUrlBuilder();
 newUrl.setParameter(localeParamName, newLocale);
 Window.Location.assign(newUrl.buildString());
 }

 On Wednesday, October 22, 2008 9:36:55 AM UTC+2, Lothar Kimmeringer wrote:

 Eduardo Cardoso schrieb:
  WITHOUT refreshing a page and no use of  ?locale=en_US after url?

 At the moment, when using Messages or Constants you can't do that
 because the different languages are realized with different HTML-
 pages that must be loaded when changing the locale.

  something like : setLocale(new Locale.BR) and the page refresh all text
  data.

 I'm thinking about this as well for a while because there are
 projects where the change of the Locale during runtime is a
 explicit requirement ruling out GWT at the moment.

 You can solve that using GWT by not using the Constants/Messages-
 framework but with the Dictionary-classes but that eliminates
 the advantages you have with the interfaces allowing you to do
 the compiler the job of checking the correct spelling of the keys.


 Regards, Lothar



-- 
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/-/POuc4BmbvawJ.
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: Setting Locale language dynamically initially

2012-07-17 Thread Thomas Broyer


On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote:

 You could build your app's host html page dynamically (jsp, php, whatever) 
 and add a meta property to the head as described in 
 https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying

 That way your app loads directly the specified language if its available, 
 otherwise it loads the default language.


BTW, it looks like that's exactly what Google is doing for Groups: do a 
view-source and you'll see that meta. 

-- 
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/-/-h50gzTeMakJ.
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: RequestBuilder and Browser same-origin-policy

2012-07-17 Thread Deepak Singh
So how can i create such GWT 'Proxy' ?

On Tue, Jul 17, 2012 at 3:25 AM, Jens jens.nehlme...@gmail.com wrote:

 Creating a GWT proxy service that is accessible under your domain is
 probably the best you can do. So you would post to your own server and then
 make a call from your server JVM to the 3rd party server.

 -- J.

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

 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.




-- 
Deepak Singh

-- 
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: RequestBuilder and Browser same-origin-policy

2012-07-17 Thread kim young ill
catch the request at your server code (either servlets or rpc-impl, make
httpurlconnection to remote host  post the params with it. get result 
write back to your client

On Tue, Jul 17, 2012 at 11:06 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 So how can i create such GWT 'Proxy' ?


 On Tue, Jul 17, 2012 at 3:25 AM, Jens jens.nehlme...@gmail.com wrote:

 Creating a GWT proxy service that is accessible under your domain is
 probably the best you can do. So you would post to your own server and then
 make a call from your server JVM to the 3rd party server.

 -- J.

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

 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.




 --
 Deepak Singh

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



RequestFactory complex scenario

2012-07-17 Thread bond
Hi,
we have this complex scenario:

public Class A{

private long id;

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval 
= false)
private ListA child = new ArrayListA();

@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = 
true)
private A parent;
}

On the client I have a tree showing our objects. I want to edit an item of 
the tree and change its parent. So I make a request to server in which I 
persist the item I changed. But in this manner on the server I have an 
ConstrainViolationException because the old parent still have the object 
the i changed on his list's child. So, in order to make work this example I 
have to make 2 requests, the first to modify the old parent's child list, 
and then a  request to modify the item I changed. It's work fine but this 
not guaratees the transaction.

Any suggestions?

Thanks

Daniele

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



Document.get().isOrHasChild(element) != isAttached() in CHrome ??

2012-07-17 Thread Ed
I show a widget in a popup: it's added to the RootPanel and then in a 
deferred command I noticed that in Chrome the Widget is attached (
Widget.isAttached() method equals true) but when calling 
Document.get().isOrHasChild(widget.getElement()) it returns false I 
think this should be true also, just like I see in Firefox.

Any idea's why this is false in Chrome?

- Ed

-- 
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/-/qlaGdbyGo_0J.
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: Debugging is terribly slow

2012-07-17 Thread Magnus


 Nevertheless I would like to play a game against you in your chess GWT 
 app! ;-)


Please send an email address and a nickname to ch...@muenchen-mail.de and 
I'll create an account :-)

Magnus

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



Application size due to Internationalization

2012-07-17 Thread Rana
Hi,

Does anyone have a solution to the huge size of application, when we apply 
to it internationalization using the static method? We are supposed to 
support 66 languages. The application takes a long time during compilation 
and the size of the application is huge, we cannot upload it to google app 
engine.

Many thanks
Rana

-- 
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/-/O2UdTIQN79AJ.
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: NULL Points + Fire Fox

2012-07-17 Thread Thomas Broyer
On Tue, Jul 17, 2012 at 1:36 PM, Sean slough...@gmail.com wrote:
 Thanks for the feed back guys. I'm going to have to deploy more often then,
 null pointers are nasty to find with no stack trace.

No need to redeploy, use Super Dev Mode ;-)

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



No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
Hi, I am trying to test my code and I am encountering this issue. Please 
let me know what is the problem.

com.java.client.ExportDataToExcelTest - is in my src folder 
and ExportDataToExcelTest.java - is in test folder. Is that the problem. 
I saw in the GWT tutorial that if the test forlder's client package 
structure should be same as that in the src folder, the test will run. I 
have all the src and test folders in my classpath with all the required 
jars and the project also.


Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
errors.
[ERROR] Errors in 
'file:/C:/Users/x/workspace/ExportDataToExcel/test/com/java/client/ExportDataToExcelTest.java'
   [ERROR] Line 13: No source code is available for type 
com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a 
required module?
[ERROR] Unable to find type 'com.java.client.ExportDataToExcelTest'
   [ERROR] Hint: Previous compiler errors may have made this type 
unavailable
   [ERROR] Hint: Check the inheritance chain from your module; it may not 
be inheriting a required module or a module may not be adding its source 
path entries properly
[ERROR] Errors in 
'file:/C:/Users/x/workspace/ExportDataToExcel/test/com/java/client/ExportDataToExcelTest.java'
   [ERROR] Line 13: No source code is available for type 
com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a 
required module?
[ERROR] Unable to find type 'com.java.client.ExportDataToExcelTest'
   [ERROR] Hint: Previous compiler errors may have made this type 
unavailable
   [ERROR] Hint: Check the inheritance chain from your module; it may not 
be inheriting a required module or a module may not be adding its source 
path entries properly


Thanks.

-- 
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/-/jl6gtDUz0QsJ.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson

[ERROR] Line 13: No source code is available for type 
 com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a 
 required module?

This is the problem. You are trying to convert to javascript the server class 
ExportDataToExcel. Either its package should be added to the set of packages to 
be converted to javascript, or else you should stop referring to it from code 
that is converted to javascript.

Paul

-- 
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
Hi Paul, thanks for your reply. I understand that server side code cannot 
be changed to Javascript. The question here was how can I test my server 
side logic in GWT.

On Tuesday, July 17, 2012 9:59:05 AM UTC-4, Paul Robinson wrote:


 [ERROR] Line 13: No source code is available for type 
 com.ag.sapwidgets.server.ExportDataToExcel; did you forget to inherit a 
 required module? 
  
 This is the problem. You are trying to convert to javascript the server 
 class ExportDataToExcel. Either its package should be added to the set of 
 packages to be converted to javascript, or else you should stop referring 
 to it from code that is converted to javascript. 

 Paul 


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



DevMode not working in Chrome after update

2012-07-17 Thread Andy
I updated Chrome this morning and now when I try to use DevMode I get an 
error Could not load GWT DevMode Plugin and an offer to Download the GWT 
Developer Plugin. When I try to download it (it's already installed), it 
says Extensions, apps, and user scripts can only be added from the Chrome 
Web Store. and there's no GWT plugin in the store.

-- 
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/-/VVBOUBnzvwEJ.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
On 17/07/12 15:07, Venkat wrote:
 how can I test my server side logic in GWT.
GWT is client-side technology. To test server code, set up tests that are 
independent of GWT. That is, just create regular junit tests that check your 
server classes work properly.

Paul


-- 
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
Hi Paul, I have changed the test from GWT Test to JUnit Test. Now I am 
getting this exception. I am using SmartGWT, and in server side coding I 
have SmartGWT classes used for Business Logic.


java.lang.UnsatisfiedLinkError: 
com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;
at com.smartgwt.client.util.JSOHelper.createObject(Native Method)
at com.smartgwt.client.core.DataClass.init(DataClass.java:35)
at com.smartgwt.client.rpc.RPCResponse.init(RPCResponse.java:71)
at com.smartgwt.client.data.DSResponse.init(DSResponse.java:71)
at 
com.java.client.ExportDataToExcelTest.testRetrieveData(ExportDataToExcelTest.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Thanks,

On Tuesday, July 17, 2012 10:20:57 AM UTC-4, Paul Robinson wrote:

 On 17/07/12 15:07, Venkat wrote: 
  how can I test my server side logic in GWT. 
 GWT is client-side technology. To test server code, set up tests that are 
 independent of GWT. That is, just create regular junit tests that check 
 your server classes work properly. 

 Paul 




-- 
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/-/OxQ4_m9VCkMJ.
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 Maven build best practices

2012-07-17 Thread dhoffer
I'm assuming that classes in GWT's client folder have no reason to be 
compiled into classes and go into the war's WEB-INF/classes folder as GWT 
already converted that to JavaScript but what's the best way to prevent 
this?  I'm using the gwt-maven-plugin to compile the GWT code in my war 
maven module.

-- 
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/-/c0nfhkp97y8J.
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: Document.get().isOrHasChild(element) != isAttached() in CHrome ??

2012-07-17 Thread Thomas Broyer


On Tuesday, July 17, 2012 2:06:41 PM UTC+2, Ed wrote:

 I show a widget in a popup: it's added to the RootPanel and then in a 
 deferred command I noticed that in Chrome the Widget is attached (
 Widget.isAttached() method equals true) but when calling 
 Document.get().isOrHasChild(widget.getElement()) it returns false I 
 think this should be true also, just like I see in Firefox.

 Any idea's why this is false in Chrome?


This is strange, isOrHasChild uses contains(), and 
document.contains(someElt) returns true for me in Chrome Dev Tools.
Note that Firefox uses a different code, based on 
http://www.quirksmode.org/blog/archives/2006/01/contains_for_mo.html 
(Node.contains 
has only been added in Firefox 9, according to the MDN 
https://developer.mozilla.org/en/DOM/Node.contains ), so it's not really a 
surprise that it returns a different value.

Have you tried Document.get().getBody().isOrHasChild(widget.getElement()) ?

-- 
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/-/wkPFiXpViVUJ.
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: DevMode not working in Chrome after update

2012-07-17 Thread Thomas Broyer

On Tuesday, July 17, 2012 4:16:03 PM UTC+2, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.


I believe I already answered this question in the past couple of days but I 
can't find it back.
See 
http://techie-buzz.com/browsers/chrome-blocking-extension-apps-scripts-chrome-web-store.html
 

-- 
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/-/YNUAQvdwWngJ.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
I don't use SmartGWT, but it looks like you're using client-side code there. If 
you're using regular junit tests, then you must stick to server-side classes.

It also looks like you're testing RPC code...do you really need to test from 
client to server in one test?

Paul


On 17/07/12 15:44, Venkat wrote:
 Hi Paul, I have changed the test from GWT Test to JUnit Test. Now I am 
 getting this exception. I am using SmartGWT, and in server side coding I have 
 SmartGWT classes used for Business Logic.


 java.lang.UnsatisfiedLinkError: 
 com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;
 at com.smartgwt.client.util.JSOHelper.createObject(Native Method)
 at com.smartgwt.client.core.DataClass.init(DataClass.java:35)
 at com.smartgwt.client.rpc.RPCResponse.init(RPCResponse.java:71)
 at com.smartgwt.client.data.DSResponse.init(DSResponse.java:71)
 at 
 com.java.client.ExportDataToExcelTest.testRetrieveData(ExportDataToExcelTest.java:24)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at junit.framework.TestCase.runTest(TestCase.java:168)
 at junit.framework.TestCase.runBare(TestCase.java:134)
 at junit.framework.TestResult$1.protect(TestResult.java:110)
 at junit.framework.TestResult.runProtected(TestResult.java:128)
 at junit.framework.TestResult.run(TestResult.java:113)
 at junit.framework.TestCase.run(TestCase.java:124)
 at junit.framework.TestSuite.runTest(TestSuite.java:243)
 at junit.framework.TestSuite.run(TestSuite.java:238)
 at junit.framework.TestSuite.runTest(TestSuite.java:243)
 at junit.framework.TestSuite.run(TestSuite.java:238)
 at 
 org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
 at 
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
 at 
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

 Thanks,

 On Tuesday, July 17, 2012 10:20:57 AM UTC-4, Paul Robinson wrote:

 On 17/07/12 15:07, Venkat wrote:
  how can I test my server side logic in GWT.
 GWT is client-side technology. To test server code, set up tests that are 
 independent of GWT. That is, just create regular junit tests that check your 
 server classes work properly.

 Paul


 -- 
 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/-/OxQ4_m9VCkMJ.
 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: GWT Maven build best practices

2012-07-17 Thread Thomas Broyer

On Tuesday, July 17, 2012 4:53:12 PM UTC+2, dhoffer wrote:

 I'm assuming that classes in GWT's client folder have no reason to be 
 compiled into classes and go into the war's WEB-INF/classes folder as GWT 
 already converted that to JavaScript but what's the best way to prevent 
 this?  I'm using the gwt-maven-plugin to compile the GWT code in my war 
 maven module.


IMO, the best way is to use separate projects for client and server code 
(see https://github.com/tbroyer/gwt-maven-archetypes for examples)

Alternately, you can use maven-war-plugin's packagingExclude to exclude 
WEB-INF/classes/**/client/** classes (and make sure you set all your GWT 
dependencies –GIN, GXT, whatever– as scope=provided so they don't go in 
WEB-INF/lib either).
(actually, my archetypes use this in the 'client' module to exclude 
everything from WEB-INF/ and thus only keep the generated scripts and 
resources in the client WAR, which is then used as an overlay in the 
'server' module that contains the web.xml, index.html, and servlets and 
other server-side code and dependencies)

-- 
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/-/fRPALn54S_EJ.
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: RequestFactory VS Cloud Endpoints (App Engines Java Rest API)

2012-07-17 Thread YatiRaj B
Hi Kevin,

Sure I'll try on a JDO Pojo and let you know. Plz give me some time, I'm
stuck somewhere...

Thank you for your support
Raj.


On Tue, Jul 17, 2012 at 12:48 PM, Kevin Moore kmoore...@gmail.com wrote:

 Raj,
 I have not tried to create a service as you did, I did it with a judo pojo.

 can you please try the steps I suggested, using a
 pojo , very simple one, then when it works modify the service to ignore
 the pojo and see what happens.
 On Jul 17, 2012 3:08 AM, YatiRaj B byati...@gmail.com wrote:

 Hello Kevin,

 It didn't work for me :(

 I'm working on HP 64bit WIndows Vista. Is that a problem for some reason?
 Not sure!

 Here's what I have/did:

1. I have everything latest: Juno, GPE 1.7 etc
2. The system did behave as explained by you when I changed Facet to
1.6
3. After the errors are gone, I right clicked the *Project* - Google
- Generate Cloud Endpoint and it gave me error.
4. I know this is *not *what you told. But I tried as it was on
Google IO video
5. As per your suggestion, I clicked on *POJO*-Google-Generate
Cloud Endpoint and it gave me error: *This is not a JDO/JPA entity
class*
6. Of course it is not. But isn't it supposed to do on any class I
want a service from (as long as I've the API annotations)?
7. I'm pasting my example classes here below. Basically I created a
class which accepts a number and returns the square of it. And another
class that will work as my Servlet if I were to write a servlet: this
takes the number from client requests and creates a square class with this
number and gets the square of the number.

 *POJO Square:*
 public class Square {

 int var;
 int square;
  public Square(int var) {
 this.var = var;
  this.square = var * var;
 }

 public int getVar() {
  return var;
 }

 public void setVar(int var) {
  this.var = var;
 setSquare(var * var);
 }

 public int getSquare() {
 return square;
 }

 private void setSquare(int square) {
 this.square = square;
  }
 }


 *POJO SquareEndPoint:*
 @Api(name = square)
 public class SquareEndpoint {

 @ApiMethod(name = square.getSquare)
  public int getSquare(int number){
 Square sq;
 sq = new Square(number);
  return sq.getSquare();
 }
 }


 I'll try on actual JDO/JPA class very soon. It may work but my other
 question remains: storing to DataStore may not me my only intention to
 create these endpoints. I might provide such simple service as: Celsius
 to Fahrenheit etc... But that's a different question. Let me 1st get this
 working! :)

 your views on it?

 Thank you!
 Raj.


 On Tue, Jul 17, 2012 at 9:32 AM, YatiRaj B byati...@gmail.com wrote:

 Hi Kevin,

 Deeply appreciate your reply as promised! :)

 I'll check if it works for me very soon today and let you know... just
 started the day :P

 Thanks again!
 Raj.



 On Tue, Jul 17, 2012 at 1:27 AM, Kevin Moore kmoore...@gmail.comwrote:

 As Promised...


 For some reason... do the following...

 *Assumptions..*

- You have the Latest Eclipse(Juno)
- You have installed all the latest APPEngine SDK 1.70
- You have Java SDK 1.70 at least..
- You Created a POJO
- You Generated your endpoint class by right-clicking on the
POJO-Google-Generate Cloud Endpoint Class


 *The symptoms...you are experiencing*
 When you right mouse click on the
 project then Google-Generate Cloud Endpoint Client Library...
 you get a quick flash and then nothing!!!

 *Solution*
 1. Click on the menu bar of the IDE
Window-Show View-Navigator
 2. This should take you to the Navigator Window.
 3. Expanding the .settings folder in the Navigator window
under your project.
  4. double-click the file
 org.eclipse.wst.common.project.facet.core.xml
 5. It should look like what I have below... but probably yours says
 ..version=1.7
 CHANGE IT TO 1.6 just like mine below...and save

 ?xml version=1.0 encoding=UTF-8?
 faceted-project
   installed facet=java version=1.6/
 /faceted-project

 6. Your Project will the probably start to Complain
 so click on the Window-Show VIew-Problem option and
 choose to do the quick fix...
 7. Your project will stop complaining...

 8. Go back to Package Explorer and Google-Generate Cloud Endpoint
 Client Library
Again this should now work.

 BUT YOU WANTED TO TEST THE END POINTS
 LOCALLY...RIGHT?

 9. Once you are running you projects locally...
 enter the following format on the url and..

 http://localhost://_ah/api/X/v1/Y
 where X = @Api(name = thenameyouputhere)
 andY =  your POJO name lowercase
 DONT forget the v1
 This should yield an empty JSON list

 but because you can do a POST from the url
 in your browser...

 To test all of the inputs, this is best done with CURL even on a
 Windows PC
 here is the link to get CURL
 http://www.paehl.com/open_source/?CURL_7.26.0

 9. You only need for now the non-ssl version..
 you will need the SSL version when you are
 able to deploy to appengine... for now you will be testing locally...

 10. once 

Re: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
I have removed the client side code from the test case, the exception is 
gone. But I got one exception that is below. I am guessing this is because 
I did not specified the test folder in my Module. If yes, can you please 
tell me how can I do that. Usually we specify the src folder as source in 
module, how can we do that for test folder.


testRetrieveData(com.java.server.ExportDataToExcelTest)com.google.gwt.junit.JUnitFatalLaunchException:
 
The test class 'com.java.server.ExportDataToExcelTest' was not found in 
module 'com.java.ExportDataToExcelTest'; no compilation unit for that type 
was seen
at 
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:743)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1346)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at com.java.server.GWTAllTests.main(GWTAllTests.java:19)


On Tuesday, July 17, 2012 11:05:23 AM UTC-4, Paul Robinson wrote:

  I don't use SmartGWT, but it looks like you're using client-side code 
 there. If you're using regular junit tests, then you must stick to 
 server-side classes. 

 It also looks like you're testing RPC code...do you really need to test 
 from client to server in one test?

 Paul


 On 17/07/12 15:44, Venkat wrote:
  
 Hi Paul, I have changed the test from GWT Test to JUnit Test. Now I am 
 getting this exception. I am using SmartGWT, and in server side coding I 
 have SmartGWT classes used for Business Logic. 

  
  java.lang.UnsatisfiedLinkError: 
 com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;
  at com.smartgwt.client.util.JSOHelper.createObject(Native Method)
  at com.smartgwt.client.core.DataClass.init(DataClass.java:35)
  at com.smartgwt.client.rpc.RPCResponse.init(RPCResponse.java:71)
  at com.smartgwt.client.data.DSResponse.init(DSResponse.java:71)
  at 
 com.java.client.ExportDataToExcelTest.testRetrieveData(ExportDataToExcelTest.java:24)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at junit.framework.TestCase.runTest(TestCase.java:168)
  at junit.framework.TestCase.runBare(TestCase.java:134)
  at junit.framework.TestResult$1.protect(TestResult.java:110)
  at junit.framework.TestResult.runProtected(TestResult.java:128)
  at junit.framework.TestResult.run(TestResult.java:113)
  at junit.framework.TestCase.run(TestCase.java:124)
  at junit.framework.TestSuite.runTest(TestSuite.java:243)
  at junit.framework.TestSuite.run(TestSuite.java:238)
  at junit.framework.TestSuite.runTest(TestSuite.java:243)
  at junit.framework.TestSuite.run(TestSuite.java:238)
  at 
 org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
  at 
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
  at 
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

  Thanks,

 On Tuesday, July 17, 2012 10:20:57 AM UTC-4, Paul Robinson wrote: 

 On 17/07/12 15:07, Venkat wrote: 
  how can I test my server side logic in GWT. 
 GWT is client-side technology. To test server code, set up tests that are 
 independent of GWT. That is, just create regular junit tests that check 
 your server classes work properly. 

 Paul 


  -- 



  

-- 
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/-/oK8CaeSghUkJ.
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: GWT Maven build best practices

2012-07-17 Thread David Hoffer
Thanks, I thought I would look at the module structure you use in your
gwt-maven-archetypes https://github.com/tbroyer/gwt-maven-archetypes. I
downloaded the zip but when I try to run clean install I get this error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2
.2:integration-test (default-integration-test) on project modular-webapp:
[ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn goals -rf :modular-webapp

Any ideas?

-Dave

On Tue, Jul 17, 2012 at 9:14 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On Tuesday, July 17, 2012 4:53:12 PM UTC+2, dhoffer wrote:

 I'm assuming that classes in GWT's client folder have no reason to be
 compiled into classes and go into the war's WEB-INF/classes folder as GWT
 already converted that to JavaScript but what's the best way to prevent
 this?  I'm using the gwt-maven-plugin to compile the GWT code in my war
 maven module.


 IMO, the best way is to use separate projects for client and server code
 (see https://github.com/tbroyer/gwt-maven-archetypes for examples)

 Alternately, you can use maven-war-plugin's packagingExclude to exclude
 WEB-INF/classes/**/client/** classes (and make sure you set all your GWT
 dependencies –GIN, GXT, whatever– as scope=provided so they don't go in
 WEB-INF/lib either).
 (actually, my archetypes use this in the 'client' module to exclude
 everything from WEB-INF/ and thus only keep the generated scripts and
 resources in the client WAR, which is then used as an overlay in the
 'server' module that contains the web.xml, index.html, and servlets and
 other server-side code and dependencies)

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

 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: Document.get().isOrHasChild(element) != isAttached() in CHrome ??

2012-07-17 Thread Ed Bras
Thanks Thomas for ur feedback.
I am still using FF 6.0 (because of the plugin hassle)  ;)... I am just
about to push a test release and then have planned to update FF and it's
plugin
I will test it again then... (also with  Document.get().getBody().
isOrHasChild(widget.getElement()) )
To be continued...

On Tue, Jul 17, 2012 at 4:57 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Tuesday, July 17, 2012 2:06:41 PM UTC+2, Ed wrote:

 I show a widget in a popup: it's added to the RootPanel and then in a
 deferred command I noticed that in Chrome the Widget is attached (
 Widget.isAttached() method equals true) but when calling
 Document.get().isOrHasChild(**widget.getElement()) it returns false
 I think this should be true also, just like I see in Firefox.

 Any idea's why this is false in Chrome?


 This is strange, isOrHasChild uses contains(), and
 document.contains(someElt) returns true for me in Chrome Dev Tools.
 Note that Firefox uses a different code, based on
 http://www.quirksmode.org/blog/archives/2006/01/contains_for_mo.html 
 (Node.contains
 has only been added in Firefox 9, according to the MDN
 https://developer.mozilla.org/en/DOM/Node.contains ), so it's not really
 a surprise that it returns a different value.

 Have you tried Document.get().getBody().isOrHasChild(widget.getElement()) ?

 --
 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/-/wkPFiXpViVUJ.
 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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
Let me explain what I did, I think you got confused of what I have said. I 
changed the package of my test class in test folder to the same server side 
package in src folder.

com.java.client to com.java.server. Then the exception previously showed 
was gone and below exception showed up. I changed because I thought, I am 
testing server side code so the package structure should be same as the 
server side package of src folder.

On Tuesday, July 17, 2012 11:24:30 AM UTC-4, Venkat wrote:

 I have removed the client side code from the test case, the exception is 
 gone. But I got one exception that is below. I am guessing this is because 
 I did not specified the test folder in my Module. If yes, can you please 
 tell me how can I do that. Usually we specify the src folder as source in 
 module, how can we do that for test folder.


 testRetrieveData(com.java.server.ExportDataToExcelTest)com.google.gwt.junit.JUnitFatalLaunchException:
  
 The test class 'com.java.server.ExportDataToExcelTest' was not found in 
 module 'com.java.ExportDataToExcelTest'; no compilation unit for that type 
 was seen
 at 
 com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:743)
 at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1346)
 at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
 at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
 at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
 at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
 at com.java.server.GWTAllTests.main(GWTAllTests.java:19)


 On Tuesday, July 17, 2012 11:05:23 AM UTC-4, Paul Robinson wrote:

  I don't use SmartGWT, but it looks like you're using client-side code 
 there. If you're using regular junit tests, then you must stick to 
 server-side classes. 

 It also looks like you're testing RPC code...do you really need to test 
 from client to server in one test?

 Paul


 On 17/07/12 15:44, Venkat wrote:
  
 Hi Paul, I have changed the test from GWT Test to JUnit Test. Now I am 
 getting this exception. I am using SmartGWT, and in server side coding I 
 have SmartGWT classes used for Business Logic. 

  
  java.lang.UnsatisfiedLinkError: 
 com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;
  at com.smartgwt.client.util.JSOHelper.createObject(Native Method)
  at com.smartgwt.client.core.DataClass.init(DataClass.java:35)
  at com.smartgwt.client.rpc.RPCResponse.init(RPCResponse.java:71)
  at com.smartgwt.client.data.DSResponse.init(DSResponse.java:71)
  at 
 com.java.client.ExportDataToExcelTest.testRetrieveData(ExportDataToExcelTest.java:24)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at junit.framework.TestCase.runTest(TestCase.java:168)
  at junit.framework.TestCase.runBare(TestCase.java:134)
  at junit.framework.TestResult$1.protect(TestResult.java:110)
  at junit.framework.TestResult.runProtected(TestResult.java:128)
  at junit.framework.TestResult.run(TestResult.java:113)
  at junit.framework.TestCase.run(TestCase.java:124)
  at junit.framework.TestSuite.runTest(TestSuite.java:243)
  at junit.framework.TestSuite.run(TestSuite.java:238)
  at junit.framework.TestSuite.runTest(TestSuite.java:243)
  at junit.framework.TestSuite.run(TestSuite.java:238)
  at 
 org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
  at 
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
  at 
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

  Thanks,

 On Tuesday, July 17, 2012 10:20:57 AM UTC-4, Paul Robinson wrote: 

 On 17/07/12 15:07, Venkat wrote: 
  how can I test my server side logic in GWT. 
 GWT is client-side technology. To test server code, set up tests that 
 are independent of GWT. That is, just create regular junit tests that check 
 your server classes work properly. 

 Paul 


  -- 



  

-- 
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/-/2BEXJh36pKUJ.
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, 

Re: GWT Maven build best practices

2012-07-17 Thread Thomas Broyer


On Tuesday, July 17, 2012 5:37:21 PM UTC+2, dhoffer wrote:

 Thanks, I thought I would look at the module structure you use in your  
 gwt-maven-archetypes https://github.com/tbroyer/gwt-maven-archetypes. I 
 downloaded the zip but when I try to run clean install I get this error:

 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-archetype-plugin:2
 .2:integration-test (default-integration-test) on project modular-webapp:
 [ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the 
 -e swit
 ch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, 
 please rea
 d the following articles:
 [ERROR] [Help 1] 
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
 xception
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the 
 command

 [ERROR]   mvn goals -rf :modular-webapp

 Any ideas?


I'd bet you're on 
Windows: https://github.com/tbroyer/gwt-maven-archetypes/issues/22


-- 
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/-/eD7X4zNO0bMJ.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson

On 17/07/12 16:24, Venkat wrote:
 I have removed the client side code from the test case, the exception is 
 gone. But I got one exception that is below. I am guessing this is because I 
 did not specified the test folder in my Module. If yes, can you please tell 
 me how can I do that. Usually we specify the src folder as source in 
 module, how can we do that for test folder.
You can add any number of packages in your gwt.xml file using:
source path=foo/
source path=bar/

Paul

-- 
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: GWT Maven build best practices

2012-07-17 Thread David Hoffer
Yes of course:)  It's our corporate standard.  Deleting the tests solved
the problem.

Thanks,
-Dave

On Tue, Jul 17, 2012 at 10:09 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Tuesday, July 17, 2012 5:37:21 PM UTC+2, dhoffer wrote:

 Thanks, I thought I would look at the module structure you use in your
 gwt-maven-archetypes https://github.com/tbroyer/gwt-maven-archetypes.
 I downloaded the zip but when I try to run clean install I get this error:

 [ERROR] Failed to execute goal org.apache.maven.plugins:**
 maven-archetype-plugin:2
 .2:integration-test (default-integration-test) on project modular-webapp:
 [ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e swit
 ch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please rea
 d the following articles:
 [ERROR] [Help 1] http://cwiki.apache.org/**confluence/display/MAVEN/**
 MojoExecutionEhttp://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
 xception
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command

 [ERROR]   mvn goals -rf :modular-webapp

 Any ideas?


 I'd bet you're on Windows:
 https://github.com/tbroyer/gwt-maven-archetypes/issues/22


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

 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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
I have done that, now it is giving me the inherit issue, can you tell me I 
can inherit all the classes that I want to inherit like this.
Can I use * to inherit all.
inherits name=com.google.gwt.*  /

On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote:


 On 17/07/12 16:24, Venkat wrote: 
  I have removed the client side code from the test case, the exception is 
 gone. But I got one exception that is below. I am guessing this is because 
 I did not specified the test folder in my Module. If yes, can you please 
 tell me how can I do that. Usually we specify the src folder as source in 
 module, how can we do that for test folder. 
 You can add any number of packages in your gwt.xml file using: 
 source path=foo/ 
 source path=bar/ 

 Paul 


-- 
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/-/5gtaJ0CKPwcJ.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
I did that, but some of the jars from SmartGWT are not getting inherited. 
and I don't know what are those classes modules are, so that I can inherit 
that. I tried giving the classes directly with the package structure, but 
it is changing it to module and saying it does not exist.

On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote:


 On 17/07/12 16:24, Venkat wrote: 
  I have removed the client side code from the test case, the exception is 
 gone. But I got one exception that is below. I am guessing this is because 
 I did not specified the test folder in my Module. If yes, can you please 
 tell me how can I do that. Usually we specify the src folder as source in 
 module, how can we do that for test folder. 
 You can add any number of packages in your gwt.xml file using: 
 source path=foo/ 
 source path=bar/ 

 Paul 


-- 
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/-/ukKrAhLX6G0J.
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: No source code is available problem for my server side code while testing

2012-07-17 Thread Paul Robinson
Not as far as I know, but then why would you want to? You should only import 
the modules you need, otherwise I imagine the compile will take longer.

Some google modules import other google modules, so you don't need to add an 
inherit for literally every one.

Paul

On 17/07/12 17:26, Venkat wrote:
 I have done that, now it is giving me the inherit issue, can you tell me I 
 can inherit all the classes that I want to inherit like this.
 Can I use * to inherit all.
 inherits name=com.google.gwt.*  /

 On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote:


 On 17/07/12 16:24, Venkat wrote:
  I have removed the client side code from the test case, the exception 
 is gone. But I got one exception that is below. I am guessing this is because 
 I did not specified the test folder in my Module. If yes, can you please tell 
 me how can I do that. Usually we specify the src folder as source in 
 module, how can we do that for test folder.
 You can add any number of packages in your gwt.xml file using:
 source path=foo/
 source path=bar/

 Paul

 -- 
 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/-/5gtaJ0CKPwcJ.
 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: No source code is available problem for my server side code while testing

2012-07-17 Thread Venkat
I mean I was just trying and the classes that it told me to inherit, I 
don't know the module for those classes. I am waiting for reply from 
SmartGWT forum, man these guys does not reply at all, these guys suck. GWT 
forum is bang on target, I really like it. Thanks for your support.

On Tuesday, July 17, 2012 12:32:13 PM UTC-4, Paul Robinson wrote:

  Not as far as I know, but then why would you want to? You should only 
 import the modules you need, otherwise I imagine the compile will take 
 longer.

 Some google modules import other google modules, so you don't need to add 
 an inherit for literally every one.

 Paul

 On 17/07/12 17:26, Venkat wrote:
  
 I have done that, now it is giving me the inherit issue, can you tell me I 
 can inherit all the classes that I want to inherit like this. 
 Can I use * to inherit all.
 inherits name=com.google.gwt.*  /

 On Tuesday, July 17, 2012 12:14:52 PM UTC-4, Paul Robinson wrote: 


 On 17/07/12 16:24, Venkat wrote: 
  I have removed the client side code from the test case, the exception 
 is gone. But I got one exception that is below. I am guessing this is 
 because I did not specified the test folder in my Module. If yes, can you 
 please tell me how can I do that. Usually we specify the src folder as 
 source in module, how can we do that for test folder. 
 You can add any number of packages in your gwt.xml file using: 
 source path=foo/ 
 source path=bar/ 

 Paul 

  -- 



  

-- 
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/-/mFXpMPoJHh0J.
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: GWT 2.5 RC1 Is Here!

2012-07-17 Thread Satyarao Kambapu
good

On Thursday, June 28, 2012 2:09:07 AM UTC+5:30, Rajeev Dayal wrote:

 Hey all,

 We're excited to announce the GWT 2.5 Release Candidate! Read about it on 
 the GWT Blog http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html, 
 and download it here http://developers.google.com/web-toolkit/download 
 (bottom 
 of the page). The RC has been uploaded to Maven Central with the version 
 string of 2.5.0-rc1.

 Please give it a try and let us know your feedback! Also, many thanks to 
 all of you for your contributions. Without your help, we wouldn't have had 
 a GWT 2.5 release at all!


 -Rajeev, on behalf of the GWT team


-- 
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/-/31Dgjz5ffAcJ.
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.



Should UiBinder support @UiHandler for Elements?

2012-07-17 Thread Justin Santa Barbara
I'm experimenting with writing my UiBinders in relatively pure HTML (with 
Twitter Bootstrap), rather than using Widgets everywhere.  My motivation is 
more about being designer friendly than performance etc.

I've had some success manually overriding onBrowserEvent.  However, 
inspired by UiRenderer, and looking at the UiBinder generator code, it 
looks like it should be possible to use @UiHandler and 
include onBrowserEvent in the interface.  When I try it, I still get the 
normal error though: there's no addClickHandler method on a generic Element.

Has anyone got UiHandler to work with Elements in UiBinder?  Is the code 
currently in the UiBinder generator really intended for use only by 
UiRenderer?

Thanks,
Justin

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



Visualization lib | Drawing a horizontal line across a columnChart

2012-07-17 Thread Anu
I want to draw a median line across horizontal google column chart. Do you 
any one having the solution

-- 
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/-/okOuKTHmqJkJ.
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 can i get the Class method information at runtime using GWT Deffered Binding ?

2012-07-17 Thread Aaryan Khanna
This is really major issue with me in GWT project , i am trying to
make one generic solution  for the current scenario of my project in
which i required some help

here i am providing the code and the requirement related to same

Class A  has one method namely
method A(Object anotherClassObject){

this line is commented because i am not able to get the method of
another class at runtime
  System.out.println(passed class method+
anotherClassObject.getName());

}


}



Class B... calls this method and pass the custom object say Contact
{

 classAObject.methodA(Contact contactObject);
}


Now Contact.java say have properties or method like


Class Contact{

private String name;

public String getName(){
  return alexander;
}





 I went through DefferdBinding , reflection but not able to find out
the right solution by which i can solve this issue

please provide me the solution ASAP





}

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



Failed to create an instance of 'XXX' via deferred binding

2012-07-17 Thread cpow99
I am new to GWT and have been experiencing a error when running the DMP in 
FireFox and IE. I have been able to establish the error occurs when 
attempting to add new properties to JSNI objects. For example an error is 
raised on the highlighted line below.
 
private static final native void ExampleMethod(MyObject myObject)
/*-{

$wnd.MyObject = myObject;
$wnd.MyObject.newFn= function(){};

}-*/;
 
Failed to create an instance of 'com.myProject.MyObject' via deferred 
binding 
com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't 
support this property or method
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
 

Strangely this behavior is only seen when using the GWT DMP in FireFox or 
IE. When run under Chrome things are fine. 
 
Anyone know what is going on here?
 
Thanks,
Chris

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



Hi, cakephp and GWT

2012-07-17 Thread Alexcitron
Hello such,
I would like to know the difference between cakephp and GWT!
saludos! 

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



Start GWT compiler with super dev mode compiler settings

2012-07-17 Thread Rocco De Angelis
Hi All,

is it possible to start the 'normal' GWT compiler with the same settings 
which will be used by the super dev mode recompiler (see com.google.gwt.dev.
codeserver.CompilerOptionsImpl)?
I think in general this should be possible or not?

The GWT compiler already offers a -draftCompile option but a 
-superDraftCompile option is missing :)

BR
Rocco  


-- 
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/-/IGPzPhdat-4J.
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.



UiBinder and MVP: Problem with SuggestBox and CellBrowser

2012-07-17 Thread Oscar Perez
Hi,
I am fairly new to GWT and still trying to figure out how things work. I am 
trying the activities and places tutorial and found a chicken-egg 
problem... I am trying to use a suggestbox but the problem is that takes a 
suggestoracle in the constructor. If I create the view beforehand (since it 
is an expensive object) how do I pass the suggestoracle to the suggestbox? 
I take, of course, that suggestoracle should belong to the presenter.. With 
CellTable is fairly easy because does have a setModel method but in 
CellBrowser / SuggestBox I cannot figure out how to proceed...
Thanks!
Oscar

-- 
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/-/D-4tvybklckJ.
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.



List/tabel to show complex data

2012-07-17 Thread Ralf Ovelgoenne

I want to show a list of complex data in a table or a list.
This is a mockup example for one entry in the list or one row in the table:

https://lh6.googleusercontent.com/-xvphtU0iziw/UAVBZ1hdV5I/AG4/-JpYSeqx8b0/s1600/mockup_result.png

Which is the best way to do that with GWT? I played around with the cell 
table a little bit. Is there a way to show panels in a cell of the table?


-- 
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/-/FP3PYmCUxVEJ.
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: How can GWT war file deployed to sharepoint?

2012-07-17 Thread Victor Benarbia
What about the backend ? 
You probably need to run an ORM / Service layer.

Can you describe your application  ?

Victor

On Sunday, July 15, 2012 10:41:46 AM UTC-5, Joseph Lust wrote:

 It should not be hard for a static webapp, since GWT just makes some 
 JS/CSS/HTML files. So if you can access files in this manner on Sharepoint, 
 it might work.

 However if you want RPCs and server side actions, you'll have to see what 
 kind of code you can run on Sharepoint, which is probably limited to .Net, 
 if anything. I would not expect a Java backend to work on Sharepoint 
 without substantial effort.


 Sincerely,
 Joseph


-- 
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/-/UhMsROTsV4AJ.
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: Access shared class in client and server

2012-07-17 Thread karun
Hi
 
can any one guide me.
 
Thanks
karun
On Friday, July 13, 2012 1:37:29 AM UTC+5:30, karun wrote:

 Hi 
  
 i have class in shared package, its very simple class which has a static 
 variable. i want to assign a value for this static variable in server class 
 and access the same value in client class.
  
 is it possible to access the value of static variable in client class, to 
 which i modify or assign a value in server class ?
  
 * 

 package
 *com.ca.csp.cso.project.shared;* 

 public
 **class* LocalisedString 

 {
 * 

 public
 **static* String *str_value;* 

 **}
  
 *package* com.ca.csp.cso.project.server;
  
 impot com.ca.csp.cso.project.shared.LocalisedString;
 ** 
 *public* *class* SimLookUpImpl *extends* RemoteServiceServlet {
 * 

 public
 **void* init() *throws* ServletException {* 

 super
 *.init(); 

 *try* { 

 LocalisedString.*str_value = samplestring;*

 *}*

 *catch* (Exception e) { 

 }

 }

 }
 * package* com.ca.csp.cso.project.client;
  
 * 

 impot com.ca.csp.cso.project.shared.LocalisedString;

 public
 **class* SimplePanel *extends* FlowPanel { 

 public SimplePanel ()

 {

 window.Alert(LocalisedString.*str_value *); // prints null;

 }

 }

  

 Thanks

 karun


-- 
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/-/Owk5rwmydFEJ.
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: Converting existing app to MVP

2012-07-17 Thread Daniel Kurka
It`s hard to give a general advice on how to tackle this best, because it 
highly depends on your current application and the structure of your code.

Let me outline a few important things, which you should take into 
consideration:
Navigation inside a one page app is a very important thing. 
It essentially means that reload and the back button have to work like in a 
normal webpage situation.
This is very easy to implement with GWT, but its very hard to retrofit apps 
if you don`t have that right from the start. Make sure to use a proper 
history support mechanism throughout your app.

The other thing that comes to mind:
I always like moving in small steps and see if the floor support my weight. 
So I am not a big fan of an everything new approach in one big step. If you 
code is already cut into what you call small widgets that talk to a back 
end try separating them first into a presenter, a model and a view and 
write tests for them. Writing test will help you keep your code in the 
right places (you can write unit tests for views) and it shows you that you 
did not break anything from the basic functionality of the widget while 
going forward. This would mean that it should be possible to port all your 
presenters first and then change the overall structure of your 
application. 

If you want a more detailed recommendation, we should take a look into some 
example code from the app to see what actually needs to be done.

-Daniel



On Thursday, July 5, 2012 1:27:55 AM UTC+2, Zane wrote:

 We have a alpha stage application with significant code developed in the 
 classic style with front end widgets (using UiBinder in many cases, but 
 not exclusively) making calls to back end services and directly updating 
 the UI themselves. I.e., clicking on row in CellTable summary widget clears 
 main content area and adds edit detail widget for the row. Clicking on 
 cancel clears content area and adds summary widget back in. That kind of 
 thing.

 We've been looking into MVP and the concepts and style seem clear enough 
 on their own. I don't think we'd have a problem with green field 
 development, but in our case it is a question of refactoring and 
 transitioning the existing application.

 I figure we'll get started with the login module, which is relatively 
 small and isolated compared to the application proper.

 Thinking ahead to the larger task of transitioning the full application, I 
 have two questions.

 First, any general advice or references?

 Second and more specifically, it seems clear enough that the transition 
 will proceed view-by-view, starting with the initial look and proceeding 
 through the options. What's not clear to me at the moment is whether 
 there's any trick, or how reasonable it is to tie the classic style code 
 into the MVP portions so that we can maintain functionality during the 
 transition process.

 Or, whether it's more reasonable to bite the bullet and transition 
 everything in one go. 

 Thanks in advance for any advice.

 Regards,

 Z


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



List/tabel to show complex data

2012-07-17 Thread Thomas Broyer
For such a case where there aren't really any column, I'd rather use a CellList.
Creating such a complex cell is made much easier with 2.5's UiBinder for 
Cells.

You could also try 2.5's CellTableBuilder (where you could easily make the 
buttons on the upper right corner dynamic by adding Columns) but it'd probably 
be more complicated.

-- 
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/-/1FEy_eHRPqQJ.
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: DevMode not working in Chrome after update

2012-07-17 Thread Andy
I still get the error Could not load GWT DevMode Plugin and the normal 
offer to download it (even though it was and is again installed).

On Tuesday, July 17, 2012 11:03:10 AM UTC-4, Thomas Broyer wrote:


 On Tuesday, July 17, 2012 4:16:03 PM UTC+2, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.


 I believe I already answered this question in the past couple of days but 
 I can't find it back.
 See 
 http://techie-buzz.com/browsers/chrome-blocking-extension-apps-scripts-chrome-web-store.html
  


-- 
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/-/1bZGyEQs18EJ.
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: DevMode not working in Chrome after update

2012-07-17 Thread Thomas Broyer


On Tuesday, July 17, 2012 8:21:36 PM UTC+2, Andy wrote:

 I still get the error Could not load GWT DevMode Plugin and the normal 
 offer to download it (even though it was and is again installed).


Make sure click to play (or some other similar configuration for plugins) 
is disabled.
I enabled it a while ago (it works well to disable Flash ads when browsing 
the web ;-) ), while I was doing Firefox-specific dev, and when I switched 
back to Chrome I didn't understand at first why the plugin wouldn't load: 
it was just blocked by the click to play setting.

-- 
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/-/-DqGt6WI8bYJ.
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: Access shared class in client and server

2012-07-17 Thread Jens
You have to send an instance of LocalisedString from server to client. 

-- J.

-- 
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/-/a1URLfjEgD4J.
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 app unloading

2012-07-17 Thread Robert W
I created gwt module for embedding on any site, currently there are 
traditional html sites and one fully changeable by ajax calls. There is my 
pain: I can't unload gwt application. I'm trying nullify object tree in 
java, purge html by javascript, i created modularized version, but nothing 
better. Where to look: in bootstraper, memleaks. ;maybe gwt is not 
unloadable, i'm new in deep javascript analysis. 

-- 
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/-/j5t8VjvTHNwJ.
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 2.5.0-rc1 HtmlUnit has broken getElementsByTagNameNS implementation

2012-07-17 Thread Colin Alworth
GWT 2.4 included a custom copy of htmlunit, apparently built from rev 
5940[1] of the htmlunit's source - the following unit test passes under 
that version using the com.google.gwt.xml.XML module:

  public void testSelectElement() {
String xml = rootchild/childchild /child 
attr='value'contents/childother //root;
Document doc = XMLParser.parse(xml);
NodeList children = 
doc.getDocumentElement().getElementsByTagName(child);// works
assertEquals(3, children.getLength());

NodeList all = doc.getDocumentElement().getElementsByTagName(*);// 
fails
assertEquals(4, all.getLength());//child x3 + other
  }

The method getElementsByTagName is implemented by 
XMLParserImplStandard.getElementsByTagNameImpl(JavaScriptObject, String), 
which invokes o.getElementsByTagNameNS(*,tagName); in JSNI, resulting in 
o.getElementsByTagNameNS(*,*) in the failing case. This works in all 
real browsers (that would use that impl), and in the 2.4.0 copy of htmlunit.

In the GWT 2.5.0-rc1 -dev jar, this has been updated to the 1.9 release[2], 
which no longer passes this test case. I've noticed that there is an extra 
patch for 1.9 that modifies document.getElementsByTagNameNS[3], but this 
apparently doesn't affect the case where getElementsByTagNameNS is invoked 
on an element (or the fix is for something else altogether). Based on my 
quick testing, it isn't possible to load both gwt-dev 2.5.0-rc1 and 
htmlunit r5940 on the classpath to resolve this, as the GWT unit test code 
is now wiring up webClient.setJavaScriptErrorListener, and didn't do so in 
earlier GWT versions.

Is there an additional patch which can be applied to HtmlUnit to ensure 
that this behavior is the same in real/emulated browsers? Is there a 
cleaner way to detect that HtmlUnit is being used, to kick to another impl 
of such classes?

Tentative workaround for the actual case where this presented itself (the 
XML module was just a way to build a clear case of the issue) was to check 
if tagName was *, and if so, invoke element.getElementsByTagName(*) 
instead.


[1] 
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/dev/build.xml#101
[2] 
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/dev/build.xml#102
[3] 
http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftools%2Flib%2Fhtmlunit%2Fhtmlunit-2.9

-- 
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/-/60xpTM7j7msJ.
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: GWT 2.5.0-rc1 HtmlUnit has broken getElementsByTagNameNS implementation

2012-07-17 Thread Thomas Broyer
This is only a workaround but you can selectively disable the unit-test in 
HtmlUnit by annotating it with @DoNotRunWith(Platform.HtmlUnitBug); that 
way, it'll only be run in real browsers (when using -runStyle Manual, 
RemoteWeb, Selenium or ExternalBrowser)

On Tuesday, July 17, 2012 10:34:31 PM UTC+2, Colin Alworth wrote:

 GWT 2.4 included a custom copy of htmlunit, apparently built from rev 
 5940[1] of the htmlunit's source - the following unit test passes under 
 that version using the com.google.gwt.xml.XML module:

   public void testSelectElement() {
 String xml = rootchild/childchild /child 
 attr='value'contents/childother //root;
 Document doc = XMLParser.parse(xml);
 NodeList children = 
 doc.getDocumentElement().getElementsByTagName(child);// works
 assertEquals(3, children.getLength());

 NodeList all = doc.getDocumentElement().getElementsByTagName(*);// 
 fails
 assertEquals(4, all.getLength());//child x3 + other
   }

 The method getElementsByTagName is implemented by 
 XMLParserImplStandard.getElementsByTagNameImpl(JavaScriptObject, String), 
 which invokes o.getElementsByTagNameNS(*,tagName); in JSNI, resulting in 
 o.getElementsByTagNameNS(*,*) in the failing case. This works in all 
 real browsers (that would use that impl), and in the 2.4.0 copy of htmlunit.

 In the GWT 2.5.0-rc1 -dev jar, this has been updated to the 1.9 
 release[2], which no longer passes this test case. I've noticed that there 
 is an extra patch for 1.9 that modifies document.getElementsByTagNameNS[3], 
 but this apparently doesn't affect the case where getElementsByTagNameNS is 
 invoked on an element (or the fix is for something else altogether). Based 
 on my quick testing, it isn't possible to load both gwt-dev 2.5.0-rc1 and 
 htmlunit r5940 on the classpath to resolve this, as the GWT unit test code 
 is now wiring up webClient.setJavaScriptErrorListener, and didn't do so in 
 earlier GWT versions.

 Is there an additional patch which can be applied to HtmlUnit to ensure 
 that this behavior is the same in real/emulated browsers? Is there a 
 cleaner way to detect that HtmlUnit is being used, to kick to another impl 
 of such classes?

 Tentative workaround for the actual case where this presented itself (the 
 XML module was just a way to build a clear case of the issue) was to check 
 if tagName was *, and if so, invoke element.getElementsByTagName(*) 
 instead.


 [1] 
 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/dev/build.xml#101
 [2] 
 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/dev/build.xml#102
 [3] 
 http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftools%2Flib%2Fhtmlunit%2Fhtmlunit-2.9


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



DevMode for Firefox 14

2012-07-17 Thread Alan Leung
While I am technically no longer on the team, I got curious and started
looking at the FF14 changes.

There were some slight changes in the JS Object layout again but they seem
easy enough to fix.

I have built it for Linux 32 bit: http://acleung.com/ff14-linux32.xpi

-Alan

-- 
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: List/tabel to show complex data

2012-07-17 Thread Joseph Lust
A question for Thomas and others:

From the supplied mockup, why would one use the CellTable/CellList 
structures rather than just UiBinder? From what I can tell, just making a 
simple Widget/element with 3 spans, 1 label, and 3 buttons in a div would 
do the trick. As long as there are not hundreds of them, and he is not 
using typical table behaviors like sort/filter/columns, what is the benefit 
of CellX over a UiBound HTMLPanel/div?

I have not benchmarked it, but I assume the event wireup on the UiBinder 
adds some overhead and that you could save some overhead by not using 
Widget. However, when there are buttons and interactions like in this one, 
UiBinder might be a cleaner way to achieve it. Where does the inflection 
point lay?


Sincerely,
Joseph

-- 
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/-/-W1LSdqWCqAJ.
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: GWT 2.5.0-rc1 HtmlUnit has broken getElementsByTagNameNS implementation

2012-07-17 Thread Colin Alworth
Right, thanks - that is a way to get around it, but in the case I'm after, 
queries are occurring on dom elements on the page, which means that any 
tests which use these widgets or tools are unable to be run in html - this 
has the potential to poison a lot of tests, by virtue of depending on a 
browser that claims it is what it says it is...

And that's why we're all in the wonderful state where all browsers have 
'mozilla' somewhere in their useragent string.

Thanks for the suggestion, maybe this bug will force my project to start 
using real browser testing by default, instead of sanity testing in 
htmlunit first, then going to the actual browsers.
-Colin

On Tuesday, July 17, 2012 4:34:24 PM UTC-5, Thomas Broyer wrote:

 This is only a workaround but you can selectively disable the unit-test in 
 HtmlUnit by annotating it with @DoNotRunWith(Platform.HtmlUnitBug); that 
 way, it'll only be run in real browsers (when using -runStyle Manual, 
 RemoteWeb, Selenium or ExternalBrowser)

 On Tuesday, July 17, 2012 10:34:31 PM UTC+2, Colin Alworth wrote:

 GWT 2.4 included a custom copy of htmlunit, apparently built from rev 
 5940[1] of the htmlunit's source - the following unit test passes under 
 that version using the com.google.gwt.xml.XML module:

   public void testSelectElement() {
 String xml = rootchild/childchild /child 
 attr='value'contents/childother //root;
 Document doc = XMLParser.parse(xml);
 NodeList children = 
 doc.getDocumentElement().getElementsByTagName(child);// works
 assertEquals(3, children.getLength());

 NodeList all = doc.getDocumentElement().getElementsByTagName(*);// 
 fails
 assertEquals(4, all.getLength());//child x3 + other
   }

 The method getElementsByTagName is implemented by 
 XMLParserImplStandard.getElementsByTagNameImpl(JavaScriptObject, String), 
 which invokes o.getElementsByTagNameNS(*,tagName); in JSNI, resulting in 
 o.getElementsByTagNameNS(*,*) in the failing case. This works in all 
 real browsers (that would use that impl), and in the 2.4.0 copy of htmlunit.

 In the GWT 2.5.0-rc1 -dev jar, this has been updated to the 1.9 
 release[2], which no longer passes this test case. I've noticed that there 
 is an extra patch for 1.9 that modifies document.getElementsByTagNameNS[3], 
 but this apparently doesn't affect the case where getElementsByTagNameNS is 
 invoked on an element (or the fix is for something else altogether). Based 
 on my quick testing, it isn't possible to load both gwt-dev 2.5.0-rc1 and 
 htmlunit r5940 on the classpath to resolve this, as the GWT unit test code 
 is now wiring up webClient.setJavaScriptErrorListener, and didn't do so in 
 earlier GWT versions.

 Is there an additional patch which can be applied to HtmlUnit to ensure 
 that this behavior is the same in real/emulated browsers? Is there a 
 cleaner way to detect that HtmlUnit is being used, to kick to another impl 
 of such classes?

 Tentative workaround for the actual case where this presented itself (the 
 XML module was just a way to build a clear case of the issue) was to check 
 if tagName was *, and if so, invoke element.getElementsByTagName(*) 
 instead.


 [1] 
 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/dev/build.xml#101
 [2] 
 http://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/dev/build.xml#102
 [3] 
 http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftools%2Flib%2Fhtmlunit%2Fhtmlunit-2.9



-- 
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/-/6eVso7HsM5QJ.
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: Application size due to Internationalization

2012-07-17 Thread Joseph Lust
Rana,

I've read that internal Google apps must build to 240 permutations for the 
supported browsers and languages. To support this they:

   - Conduct draft compilations only using their desired dev permutation
   - Do complete compiles for releases/CI/test on a server farm

There are instructions out there that do this sort of thing:

   - gwt-distcc http://code.google.com/p/gwt-distcc/ 
   - GWT Distributed Build 
documentationhttp://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds

Of course you probably don't need to do a complete build that often (CI 
machine, pre-release), so collapsing the permutations or just doing a 
single permutation draft compile might suffice.


Sincerely,
Joseph

-- 
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/-/Vj9EwhQO_bMJ.
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: Failed to create an instance of 'XXX' via deferred binding

2012-07-17 Thread Joseph Lust
What is the ' MyObject' object? You are passing it in from the Java side, 
but in JSNI JSO objects can only be created in JS 
(docshttps://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI#sharing
). 

Is ' MyObject' a JSO Overlay?


Sincerely,
Joseph

-- 
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/-/JnSpbDMnK2YJ.
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: Cannot compile from command line

2012-07-17 Thread Joseph Lust
Can you supply the commandline argument you're using to launch the GWT 
compile from in the batch file?

Just a wild guess, since you've redacted your path, but on my GWT projects 
the argument passed in looks something like this:
com.lustforge.testbed.TestBed
*
*
Perhaps you need:
main.package.client.entrypoint.EntryPoint 




Sincerely,
Joseph

-- 
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/-/JCNXVbQSAmQJ.
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: Hi, cakephp and GWT

2012-07-17 Thread Joseph Lust
CakePHP: PHP server side website framework. Interpreted at runtime.
GWT: Java client/server side toolkit for RIA's. Compiled as war file.

Try building with their sample projects to learn more.



Sincerely,
Joseph

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



When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread MAQ
Hi,

I hope the question is clear, I'm a total GWT newbie. My project requires 
the use of some of Google's APIs. Two main solutions are provided one for 
XML and another for JSON (gdata-java-client and google-api-java-client).

Which one would be more suitable (easier, more compatible etc.)? Or is it a 
mere personal choice?

Regards,
Mo

-- 
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/-/8RtTIWO0YYkJ.
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: Setting Locale language dynamically initially

2012-07-17 Thread Joseph Lust
Thomas,

The Groups page source is a fun read. Question for you, is there a certain 
compiler flag that can be used to inline the CSS/JS (bootstraping) into the 
page like is done on Groups? The CSS adds to the load time, but if it's 
small enough, must be a win in the long run. Inlining the bootstrap script 
makes since given that it's 

-- 
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/-/Tgro5iADYsQJ.
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: Setting Locale language dynamically initially

2012-07-17 Thread Joseph Lust
Thomas,

The Groups page source is a fun read.

Question for you, is there a certain compiler flag that can be used to 
inline the CSS/JS (bootstraping - I see the code in there for injecting 
script tags) into the page like is done on Groups? The CSS adds to the 
load time, but if it's small enough, must be a win in the long run. 
Inlining the bootstrap script makes since given that it's a nocache file. I 
was thinking this would be neat for the compiler/Maven plugin, but assume 
it is a bespoke internal Google solution.

Another neat bit about the Groups pages are the extra headers added:

   1. x-content-type-options:
   nosniff
   2. x-frame-options:
   SAMEORIGIN
   3. x-ua-compatible:
   chrome=1
   4. x-xss-protection:
   1; mode=block
   

I'd never used these before, but I'll consider the security features now. 
The user agent flag makes me think that there is no permutation 
bootstrapping going on in the page after all, but rather server side, 
however there is still the bootstrapping code in the page. Odd.


Sincerely,
Joseph

-- 
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/-/J4R3Atn4sKwJ.
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: RequestBuilder and Browser same-origin-policy

2012-07-17 Thread Joseph Lust
If you have the flexibility to use GET rather than POST over JSON, the 
JSONPRequestBuilder 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/jsonp/client/JsonpRequestBuilder.htmlis
 
a nice solution to SOP without any proxies. You said you were connecting to 
a 3rd party domain, so you might want to consider a more RESTful solution 
than the RPC you mentioned, since that RPC call will be bound to that 
deployment of your code (that set of .rpc files). With RPC, you'd have to 
ensure that all RPC code, on all servers, was updated for each release when 
an RPC changes.

Sincerely,
Jospeh

-- 
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/-/CxVpguOvd3wJ.
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: DevMode for Firefox 14

2012-07-17 Thread David Guo
Hi Alan,

Too bad to hear this news. Hope someone can continue to work on this 
devmode.


On Wednesday, July 18, 2012 8:08:06 AM UTC+8, Alan Leung wrote:

 While I am technically no longer on the team, I got curious and started 
 looking at the FF14 changes.

 There were some slight changes in the JS Object layout again but they seem 
 easy enough to fix.

 I have built it for Linux 32 bit: http://acleung.com/ff14-linux32.xpi

 -Alan


-- 
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/-/pHnt595PlN4J.
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 2.5-RC1 feature UiRenderer doesnt work as expected.

2012-07-17 Thread Vasu
I tried to create a sample by using UiRenderer. But Showing null values as 
result. And as the UiRenderer code implementation is generated I am not 
even able to debug it. Following is the sample I tried.

Person.java
--
public class Person {

private Stringfname;
private Stringlname;
private Stringemailid;
private intage;

/**
 * @return the fname
 */
public String getFname() {
return fname;
}

/**
 * @param fname
 *the fname to set
 */
public void setFname(String fname) {
this.fname = fname;
}

/**
 * @return the lname
 */
public String getLname() {
return lname;
}

/**
 * @param lname
 *the lname to set
 */
public void setLname(String lname) {
this.lname = lname;
}

/**
 * @return the emailid
 */
public String getEmailid() {
return emailid;
}

/**
 * @param emailid
 *the emailid to set
 */
public void setEmailid(String emailid) {
this.emailid = emailid;
}

/**
 * @return the age
 */
public int getAge() {
return age;
}

/**
 * @param age
 *the age to set
 */
public void setAge(int age) {
this.age = age;
}

}
--


PersonCell.ui.xml
--
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
ui:with field='person' type='com.sample.renderer.Person' /

div
First Name :
span
ui:text from='{person.getFname}' /
/span
p
Last Name :
span
ui:text from='{person.getLname}' /
/span
/p
p
Email :
span
ui:text from='{person.getEmailid}' /
/span
/p
/div
/ui:UiBinder
--

PersonCell.java
--
public class PersonCell extends AbstractCellPerson {

interface MyUiRenderer extends UiRenderer {
void render(SafeHtmlBuilder sb, Person person);
}

private static MyUiRendererrenderer= 
GWT.create(MyUiRenderer.class);

@Override
public void render(com.google.gwt.cell.client.Cell.Context context, 
Person value, SafeHtmlBuilder sb) {
renderer.render(sb, value);
}

}
--

onModuleLoad implementation

--
PersonCell cell = new PersonCell();
CellListPerson cellList = new CellListPerson(cell);
ListPerson list = new ArrayListPerson();
Person p = new Person();
p.setFname(Pranoti);
p.setLname(Patil);
p.setEmailid(pranoti.pa...@gmail.com);
p.setAge(30);
list.add(p);

p = new Person();
p.setFname(Pandurang);
p.setLname(Patil);
p.setEmailid(pandurang.pa...@gmail.com);
p.setAge(30);
list.add(p);

p = new Person();
p.setFname(Ravi);
p.setLname(Kumar);
p.setEmailid(ravi.ku...@gmail.com);
p.setAge(30);
list.add(p);

cellList.setRowCount(list.size(), true);
cellList.setRowData(list);

RootPanel.get().add(cellList);

--


output:

--

First Name : null

Last Name : null

Email : null
First Name : null

Last Name : null

Email : null
First Name : null

Last Name : null

Email : null
--


Any help would be much appriciated. I am not getting if I am 
missing something. Even I tried the sample given on GWT documenntation 
located at refer, getting similar results.

   When I tried to debug above code by applying break points inside 
redner() method of PersonCell, to check if I get required object over 
there, while it renders every cell. And I am able to see proper object is 
getting passed over there. But When apply break point in 

GWT 2.5-rc1 feature uirender is not working as expected.

2012-07-17 Thread Vasu
I tried to create a sample by using UiRenderer. But Showing null values as 
result. And as the UiRenderer code implementation is generated I am not 
even able to debug it. Following is the sample I tried.

Person.java
--
public class Person {

private Stringfname;
private Stringlname;
private Stringemailid;
private intage;

/**
 * @return the fname
 */
public String getFname() {
return fname;
}

/**
 * @param fname
 *the fname to set
 */
public void setFname(String fname) {
this.fname = fname;
}

/**
 * @return the lname
 */
public String getLname() {
return lname;
}

/**
 * @param lname
 *the lname to set
 */
public void setLname(String lname) {
this.lname = lname;
}

/**
 * @return the emailid
 */
public String getEmailid() {
return emailid;
}

/**
 * @param emailid
 *the emailid to set
 */
public void setEmailid(String emailid) {
this.emailid = emailid;
}

/**
 * @return the age
 */
public int getAge() {
return age;
}

/**
 * @param age
 *the age to set
 */
public void setAge(int age) {
this.age = age;
}

}
--


PersonCell.ui.xml
--
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
ui:with field='person' type='com.sample.renderer.Person' /

div
First Name :
span
ui:text from='{person.getFname}' /
/span
p
Last Name :
span
ui:text from='{person.getLname}' /
/span
/p
p
Email :
span
ui:text from='{person.getEmailid}' /
/span
/p
/div
/ui:UiBinder
--

PersonCell.java
--
public class PersonCell extends AbstractCellPerson {

interface MyUiRenderer extends UiRenderer {
void render(SafeHtmlBuilder sb, Person person);
}

private static MyUiRendererrenderer= 
GWT.create(MyUiRenderer.class);

@Override
public void render(com.google.gwt.cell.client.Cell.Context context, 
Person value, SafeHtmlBuilder sb) {
renderer.render(sb, value);
}

}
--

onModuleLoad implementation

--
PersonCell cell = new PersonCell();
CellListPerson cellList = new CellListPerson(cell);
ListPerson list = new ArrayListPerson();
Person p = new Person();
p.setFname(Pranoti);
p.setLname(Patil);
p.setEmailid(pra.@gmail.com);
p.setAge(30);
list.add(p);

p = new Person();
p.setFname(Pandurang);
p.setLname(Patil);
p.setEmailid(pa.@gmail.com);
p.setAge(30);
list.add(p);

p = new Person();
p.setFname(Ravi);
p.setLname(Kumar);
p.setEmailid(ra.@gmail.com);
p.setAge(30);
list.add(p);

cellList.setRowCount(list.size(), true);
cellList.setRowData(list);

RootPanel.get().add(cellList);

--


output:

--

First Name : null

Last Name : null

Email : null
First Name : null

Last Name : null

Email : null
First Name : null

Last Name : null

Email : null
--


Any help would be much appriciated. I am not getting if I am 
missing something. Even I tried the sample given on GWT documenntation 
located at 
referhttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Rendering_HTML_for_Cells,
 
getting similar results.

   When I tried to debug above code by applying break points inside 
redner() method of PersonCell, to check if I get required object over 
there, while it renders every cell. And I am able 

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread Robert W
I don't understant in what context you use solution word but generally 
json is standard for api use, with gwt overlays mechanism it easy to use in 
java typing model.

On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:

 Hi,

 I hope the question is clear, I'm a total GWT newbie. My project requires 
 the use of some of Google's APIs. Two main solutions are provided one for 
 XML and another for JSON (gdata-java-client and google-api-java-client).

 Which one would be more suitable (easier, more compatible etc.)? Or is it 
 a mere personal choice?

 Regards,
 Mo


-- 
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/-/5YOWBEZ1blUJ.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread MAQ
Sorry, I meant 2 options provided by Google APIs.

On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote:

 I don't understant in what context you use solution word but generally 
 json is standard for api use, with gwt overlays mechanism it easy to use in 
 java typing model.

 On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:

 Hi,

 I hope the question is clear, I'm a total GWT newbie. My project requires 
 the use of some of Google's APIs. Two main solutions are provided one for 
 XML and another for JSON (gdata-java-client and google-api-java-client).

 Which one would be more suitable (easier, more compatible etc.)? Or is it 
 a mere personal choice?

 Regards,
 Mo



-- 
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/-/a-UmrmuD--IJ.
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: DevMode for Firefox 14

2012-07-17 Thread Dennis Haupt
maybe we should all vote somewhere to make jetbrains/the eclipse guys
support source maps in their javascript debuggers asap? seems like a
better option to me than maintaining an unmaintained plugin in the long run

Am 18.07.2012 05:30, schrieb David Guo:
 Hi Alan,
 
 Too bad to hear this news. Hope someone can continue to work on this
 devmode.
 
 
 On Wednesday, July 18, 2012 8:08:06 AM UTC+8, Alan Leung wrote:
 
 While I am technically no longer on the team, I got curious and
 started looking at the FF14 changes.
 
 There were some slight changes in the JS Object layout again but
 they seem easy enough to fix.
 
 I have built it for Linux 32 bit:
 http://acleung.com/ff14-linux32.xpi
 http://acleung.com/ff14-linux32.xpi
 
 -Alan
 
 -- 
 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/-/pHnt595PlN4J.
 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: DevMode for Firefox 14

2012-07-17 Thread Juan Pablo Gardella
Thanks Alan again!

I hope if you can build to XP too.

2012/7/18 David Guo angel243...@gmail.com

 Hi Alan,

 Too bad to hear this news. Hope someone can continue to work on this
 devmode.


 On Wednesday, July 18, 2012 8:08:06 AM UTC+8, Alan Leung wrote:

 While I am technically no longer on the team, I got curious and started
 looking at the FF14 changes.

 There were some slight changes in the JS Object layout again but they
 seem easy enough to fix.

 I have built it for Linux 32 bit: 
 http://acleung.com/ff14-**linux32.xpihttp://acleung.com/ff14-linux32.xpi

 -Alan

  --
 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/-/pHnt595PlN4J.
 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-contrib] wrong error message on ResizeComposite

2012-07-17 Thread Duilio Protti
Hi,

A few days ago I submitted a patch for this issue, that was already 
reported on 2010:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4534 

but is still not fixed.

My patch is at: http://gwt-code-reviews.appspot.com/1767805/

However, I'm not sure who is the most appropriate person to designate as 
reviewer for it. Any ideas?

Thanks in advance,
Duilio.

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

[gwt-contrib] Re: @RequestFor should support interfaces, Fix issue 7509 (issue1764804)

2012-07-17 Thread manuel . carrasco . m


http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
File
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
(right):

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java#newcode65
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java:65:
public T Class? extends T resolveClientType(Class? domainClass,
ClassT clientClass) {
On 2012/07/16 11:48:01, tbroyer wrote:

There's no reason for this method to be 'public'. IMO,

ServiceLayerDecorator

subclasses should only override methods from the ServiceLayerDecorator

API, not

add to that API (as they're implementation details, there's no way

to call

those other public methods anyway).


Agree



Also, at first, I didn't quite understand why you didn't simply call
resolveClientType(Class,Class,boolean) with 'false' as the third

argument when

processing interfaces.
Now that I think a bit more about it, I think you might want to pass a
SetClass? as a third argument here to avoid processing interfaces

twice (in

case where I2 and I3 both extend I1, and C1 implements both I2 and I3;

that

would definitely save computation time if I1 itself extends a bunch of

other

interfaces).
Or we might declare this is really an edge case that's not worth

optimizing for

(it could very well be the case; particularly given that the result is

cached in

the ServiceLayerCache).
Also, the case for List/Set/TypeUtils probably makes it worth having
interfaces+superclass processing in a separate, recursive method as

you did

here.


Yep, at first I had those method in the original one, for no reason I
moved them to the recursive function, so IMO makes sense run these 'if'
just one in the overriden method and that the recursive one processes
superclasses and interfaces as you point.
I agree that having a set to store visited classes does not worth, apart
from increase a bit the complexity of the code, it only will be useful
for very few cases, and only before the result was cached.

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java#newcode69
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java:69:
if (List.class.isAssignableFrom(domainClass)) {
On 2012/07/16 11:48:01, tbroyer wrote:

Those 3 if's (List, Set, isValueType) could probably be moved to
resolveClientType(Class,Class,boolean) and thus done only once.


Done.

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java
File
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java
(right):

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java#newcode2
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java:2:
* Copyright 2010 Google Inc.
On 2012/07/16 11:48:01, tbroyer wrote:

We're in 2012 ;-)


Done.

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java#newcode28
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java:28:
* Tests RequestFactory when using proxies for interfaces. Issues #5762
and #7509
On 2012/07/16 11:48:01, tbroyer wrote:

Maybe put links to the issues here instead of just their number.


Done.

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java#newcode32
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java:32:
protected interface Factory extends RequestFactory {
Addec, I din't know that. In fact without adding that line I din't get
any error running the suites:
ant -Dgwt.junit.testcase.includes=**/RequestFactorySuite.class test
ant -Dgwt.junit.testcase.includes=**/RequestFactoryJreSuite.class test

BTW: I'm unable to run RF tests from eclipse even after configuring the
annotation processing as the README says, I always get the error 'The
RequestFactory ValidationTool must be run'. Do you know anything more to
configure/run?

On 2012/07/16 11:48:01, tbroyer wrote:

You need to add that interface to requestfactory/build.xml for ant

testrf to

pass.


http://gwt-code-reviews.appspot.com/1764804/

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


[gwt-contrib] Re: @RequestFor should support interfaces, Fix issue 7509 (issue1764804)

2012-07-17 Thread manuel . carrasco . m


http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java
File
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java
(right):

http://gwt-code-reviews.appspot.com/1764804/diff/9007/user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java#newcode32
user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java:32:
protected interface Factory extends RequestFactory {
Yep, it worked, thanks.

http://gwt-code-reviews.appspot.com/1764804/diff/9009/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
File
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
(right):

http://gwt-code-reviews.appspot.com/1764804/diff/9009/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java#newcode65
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java:65:
private T Class? extends T resolveClientType(Class? domainClass,
ClassT clientClass) {
I know the rule, I forgot to make eclipse sort the methods though.

Some times it makes sense put methods closed because of readability, IMO
not a big issue.

On 2012/07/16 14:21:43, tbroyer wrote:

We talked in the Steering Committee about relaxing the rule, but for

now private

methods have to go after public, protected and package ones.


http://gwt-code-reviews.appspot.com/1764804/

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


[gwt-contrib] Re: Allowing users to hit enter when focused on table header cell to sort a sortable column. Also ma... (issue1765804)

2012-07-17 Thread skybrian

LGTM


http://gwt-code-reviews.appspot.com/1765804/

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


[gwt-contrib] Re: Added support for validation group inheritance. (issue1777803)

2012-07-17 Thread idol


http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java
File
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java
(right):

http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java#newcode175
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java:175:
private SetClass? findAllExtendedGroups(CollectionClass?
baseGroups,
On 2012/07/15 04:16:41, Nick Chalko wrote:

This is complicated enough it should probably have a unit test just

for it.
Logic will be moved to a method of GroupInheritanceMap class and unit
test created for this method of that class.

http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java
File
user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java
(right):

http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java#newcode42
user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java:42:
private static MapClass?, SetClass?
createDefaultInheritanceMap() {
Moved to GroupInheritanceMap class constructor

http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java
File user/src/com/google/gwt/validation/rebind/ValidatorCreator.java
(right):

http://gwt-code-reviews.appspot.com/1777803/diff/1/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java#newcode161
user/src/com/google/gwt/validation/rebind/ValidatorCreator.java:161: for
(Class? parent : group.getInterfaces()) {
On 2012/07/15 04:16:41, Nick Chalko wrote:

What about superClasses ?

Validation groups are only Java interfaces (the JSR-303 section 3.4 says
Groups are represented by interfaces.) which means the only parents
will be interfaces as well - no super classes.

I believe the only exception to this is the implicit class group (where
you pass the class with constraints itself as a group to imply only the
constraints contained in that class). But that edge case is handled in
the AbstractGwtSpecificValidator line 110.

http://gwt-code-reviews.appspot.com/1777803/

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


[gwt-contrib] Re: Added support for validation group inheritance. (issue1777803)

2012-07-17 Thread nchalko

Let me know when you are ready for a new rieview

http://gwt-code-reviews.appspot.com/1777803/

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