native implementation of com.google.gwt.core.client.JavaScriptObject

2011-08-26 Thread Raja Shekhar
Hi,

Could anyone please provide me the location where i can the implementation
of com.google.gwt.core.client.JavaScriptObject in GWT?

Or

I would like to create MOCK implementation
for com.google.gwt.core.client.JavaScriptObject, please guide me on how to
do this?

-- 
Thanks,
Raja

-- 
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 Developer Plugin for Firefox 6

2011-08-26 Thread Olivier Hoareau
I second that!

On 25 août, 16:48, Tony Rah xsegr...@gmail.com wrote:
 GWT Team,
 Perhaps it would help if you posted a white paper on how to build the
 pluggin and then the community could keep up with the new release
 schedule until the official ones are available.

 On Aug 25, 7:07 am, JB jul.bram...@gmail.com wrote:







  Just confirming I applied the patch linked by Thomas above and re-
  built gwt-dev-plugin.xpi with:
   BROWSER=ff06; make

  And the plugin works (tested on Linux-x86).

  This should make it very soon now!

  On Aug 24, 12:49 pm, Thomas Broyer t.bro...@gmail.com wrote:

   I bet it shouldn't be long:http://gwt-code-reviews.appspot.com/1523805/

-- 
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: Code Split

2011-08-26 Thread Raphaël Brugier
Hi,

To get information on how your code is split you can use the soyc (story of 
your compile) flag, see:
http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

To get information on when your splitted code is loaded, use the speed 
tracer plugin for chrome:
http://code.google.com/webtoolkit/speedtracer/index.html


Regards,
Raphaël Brugier.

-- 
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/-/eJAUT95yEucJ.
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: Inherited exceptions in GWT-RPC

2011-08-26 Thread Paul Robinson

You shouldn't need to do anything. It should work as you thought. That is, you 
can throw any subclass of the declared exception(s).

Is there something about BException and CException that stops them from being 
gwt-serializable?

Alternatively, maybe it's because AException extends RuntimeException, and is 
therefore not a checked exception. It could be that, being an unchecked 
exception, GWT silently drops it (or rather, its subclasses) from the list of 
exceptions to expect.

Try AException extends Exception instead.

HTH
Paul

On 25/08/11 21:09, Ryan wrote:

My understanding is that in GWT-RPC, if a service throws an exception
declared in the signature, then GWT will report that exception back to
the client as-is.  If it's any other exception that's thrown, then GWT
wraps it in an InvocationException.

I have a hierarchy of exceptions that could get thrown in my
application.  For example:

class AException extends RuntimeException {}
class BException extends AException {}
class CException extends AException {}

If I declare AException in the client, and throw it in the server,
then the onFailure() method gets called with AException as expected.
However, if I declare AException in the client, but throw either of
the two child classes in the server, GWT wraps it in an
InvocationException.

What is the best way to intercept ALL the child exceptions?  The only
thing I can see so far is declaring each possible child exception in
the service signature, but that seems very brittle to me.

Thanks,
Ryan



--
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: native implementation of com.google.gwt.core.client.JavaScriptObject

2011-08-26 Thread Alain Ekambi
Ctrl + Shift + T  (Windows, Eclipse)
Then type JavaScriptObject

2011/8/26 Raja Shekhar grsvarma...@gmail.com

 Hi,

 Could anyone please provide me the location where i can the implementation
 of com.google.gwt.core.client.JavaScriptObject in GWT?

 Or

 I would like to create MOCK implementation
 for com.google.gwt.core.client.JavaScriptObject, please guide me on how to
 do this?

 --
 Thanks,
 Raja

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




-- 

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

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



Aw: Code Split

2011-08-26 Thread Jens
Have you compiled your app and used Firebug to see what is loaded? If not do 
so, because in dev mode code behind a split point is not loaded 
asynchronously via a ajax call. This only happens when you have compiled 
your app and don't use dev mode.

-- 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/-/HmfNnUwwhA8J.
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 Developer Plugin for Firefox 6

2011-08-26 Thread Thomas Broyer
Is anything more than 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/README.txt
 and 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/xpcom/README.txt
 needed?

-- 
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/-/iavfWWhp1xoJ.
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 Cache Events

2011-08-26 Thread StrongSteve
Hello,

I am currently experimenting with the application cache.
After creating a appcache.manifests for the different browser versions
I am wondering if there is a way to listen for the application cache
events inside GWT?

Using Chrome Dev Tools you see a lot what is going on with the
application cache.
For example things like:

Document was loaded from Application Cache with manifest XXX
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 43) XXX
...
Application Cache UpdateReady event

Any chance to capture these events inside GWT?
My further goal is to detect dynamically if my application is on- or
offline.

Thanks in Advance!
Stefan

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



CellTable needs overflow set

2011-08-26 Thread Al Forbes
Hi,

I have a pretty standard CellTable setup with the center of a
DockLayoutPanel, but the table is never visible. I can fix it by setting if
set the DockLayout properties overflowX and overflowY to visible.

The sample
(com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.java) shipped
with GWT 2.3 also sets the property:
 dock.getWidgetContainerElement(table).getStyle().setProperty(overflowY,
visible);

Is this a problem with my layout/CSS, a GWT bug, or something else? Any
hints appreciated...

The generated html looks like this:

div style=position: absolute;   left: 0ex; top: 6ex; right: 0ex; bottom:
0ex; 
table __gwtcellbasedwidgetimpldispatchingfocus=true
__gwtcellbasedwidgetimpldispatchingblur=true cellspacing=0 .

The style (as shown in firebug)
element.style {
position: absolute;
*overflow-x: hidden;*
*overflow-y: hidden;*
left: 0ex;
top: 6ex;
right: 0ex;
bottom: 0ex;
}

With the overflow set and table displaying correctly:
div style=position: absolute; overflow-x: visible; overflow-y: visible;
left: 0ex; top: 6ex; right: 0ex; bottom: 0ex; 
table __gwtcellbasedwidgetimpldispatchingfocus=true
__gwtcellbasedwidgetimpldispatchingblur=true cellspacing=0 .

Thanks

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



Aw: Application Cache Events

2011-08-26 Thread Jens
To see what variables/methods/events are available on the ApplicationCache 
take a look at: http://www.w3.org/TR/html5/offline.html#applicationcache 
A small example how to use it in native JavaScript can be found 
here: http://www.html5rocks.com/en/tutorials/appcache/beginner/

So you should be able to write some JSNI methods to access the application 
cache programmatically through GWT. Also take a look at the javascript 
property window.navigator.onLine.

-- 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/-/hYpq79Xx6bkJ.
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: Aw: Application Cache Events

2011-08-26 Thread Thomas Broyer
See also http://code.google.com/p/gwt-mobile-webkit/wiki/AppCacheDesign and 
http://code.google.com/p/gwt-mobile-webkit/source/browse/trunk/gwt-mobile-webkit/applicationcache/
(work in progress, according to the project's home page, though it hasn't 
changed much for some time: 
http://code.google.com/p/gwt-mobile-webkit/source/browse/trunk/gwt-mobile-webkit/applicationcache/
 )

-- 
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/-/70UJVrSz6TIJ.
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: format dates in specific timezone

2011-08-26 Thread mariyan nenchev
I don't want to make mappings manually.

It's very funny that such thing can't be done with gwt.

On Thu, Aug 25, 2011 at 11:05 PM, Sydney sydney.henr...@gmail.com wrote:

 If you want to use GMT+1 timezone style I guess you need to do some kind of
 mapping.

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

 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: Custom internationalization with gwt

2011-08-26 Thread mariyan nenchev
Any help with this, please?

On Thu, Aug 25, 2011 at 4:19 PM, mariyan nenchev
nenchev.mari...@gmail.comwrote:

 Hi,

 I want to make custom internationalization for my gwt app. What does this
 means? Imagine that my app must be internationalized for men and women.
 (id=men, id=women).
 is it possible to make two different .properties files like
 MyAppMessages_men_en.properties
 MyAppMessages_women_en.properties

 MyAppMessages_men_fr.properties
 MyAppMessages_men_fr.properties

 etc...

 and my app host page will be accessed like this for example
 http://blabla/MyAppHostPage.html?locale=enid=men
 and this must load english version for men.

 Thanks.


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



Re: GWT + HttpServlets

2011-08-26 Thread Hareen Bejjanki
Hi Karim Duran

I don't know any thing about GWT servlet.
Could you please provide me an elaborated example for the same, and where
can I get the plugins for it.

On Thu, Aug 25, 2011 at 10:46 PM, karim duran karim.du...@gmail.com wrote:

 Hi Hareen,

 Could you be more precise. I don't understand what you mean 

 What do you want to do, generate dynamically an image with a servlet ?
 What kind of servlet ? a J2EE standard servlet or a GWT servlet ?

 So, imagine that in your WebApp, your user is logged and you have store
 userID in session as a String.
 Imagine you use doGet(HttpServletRequest req, HttpServletResponse resp)
 servlet method (GET HTTP action)

 1) to retrieve information in session in standard J2EE servlet class just
 do that :
 String userID = (String)req.getSession().getAttribute(userID); // return
 the userID already stored in session

 So, imagine that you get imageID as a request parameter named imageid
 2) to serve an image from your servlet just do that :
 String imageID = req.getParameter(imageid); // retrieve the request
 parameter imageid
 resp.setContentType(image/png); // you want to serve a PNG image

 3) proceed to serve the image in HTTP outputstream
 .../.. get image data in byte array byte[] imageBytes .../...
 ServletOutputStream out = resp.getOutputStream();
 out.write(imageBytes);
 out.close();

 4) Register your servlet getimage in web.xml in order the J2EE container
 knows it exists

 5) call your servlet with a url link in your web page :
 /getimage?imageid=123456

 That's all.

 If you send me more information about what you want to do, i can help you
 more.
 GWT servlet extends standard HttpServlet, so methods are still available.

 I hope it helps.

 Regards.
 Karim Duran



 2011/8/25 Hareen Bejjanki bejjanki.har...@gmail.com

 Can any one please suggest me a way to link an image to a HttpServlet,
 where I can use sessions, requests and etc..

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




-- 
Thanks  Regards
Hareen Bejjanki

-- 
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-RPC Unable to access servlet in web application

2011-08-26 Thread vaibhav bhalke
Hi,

I integrated my gwt module in to existing web application and deployed on
jboss.

when I trying to hit gwt_servlet then I am getting error message on failure
method of asynccallback

i.e. *The requested resource
(/warFileName/GWTAPPS/myGwtModuleName/GWTServletName) is not available.*

*
*

My war contain is as follows

*GWTAPPS* :

*myGwtModuleName*(folder) : (folder contains --)advanced,css,gwt,images
folder and some *.cache.png files myGwtModule.html, myGwtModule.css

*WEB-INF* - *deploy* - *myGwtModuleName*

I copied compiled gwt_servlet file into
/warFileName/GWTAPPS/myGwtModuleName/ still getting same error i.e resource
not available.

Is it necessary to crate WEB-INF/classes(copied *.class file) folder into
myGwtModuleName ?. like warfilename\GWTAPPS\mygwtmodule\WEB-INF\classes

Also getting sometime exception in deployment
java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService

*gwt_servlet entry made in web.xml*

*This web.xml is not present in GWTmodule.*

*
*

 servlet  servlet-nameGWTServletName /servlet-name 
servlet-classui.mygwtmodule.server.BasicUpdateServiceImpl  /servlet-class
 /servlet  servlet-mapping 

 servlet-nameGWTServletName /servlet-name
 url-pattern/GWTServletName /url-pattern
 /servlet-mapping

 also used url pattern like myGwtModuleName/GWTServletName

*RemoteServiceRelativePath added in BasicUpdateService*

@RemoteServiceRelativePath(GWTServletName)

public interface BasicUpdateService extends RemoteService

*Created a remote service proxy to talk to the server-side GWTMassUpdate
service.*

private final BasicUpdateServiceAsync basicUpdateService = GWT
.create(BasicUpdateService.class);

*Server call*

basicMassUpdateService.makeServreCall(vaibhav, new AsyncCallback() {

@Override
public void onSuccess(String result) {
  Window.alert(Result = +result);
}

@Override
public void onFailure(Throwable caught) {
 Window.alert(On Failure  :+caught);
//  No resource available :-|
}
});

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav Bhalke

http://about.me/vaibhavbhalke

-- 
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: Aw: Generic Entity Locator

2011-08-26 Thread Cem Ikta
Hi Jens,

how do you write find Methode of your EntityLocator? Is my methode correct?

*   * @Override
public *EntityBase* find(Class? extends EntityBase clazz, Long id) {
   * return ?*
}

Best regards.

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



Aw: Re: Aw: Generic Entity Locator

2011-08-26 Thread Jens
Should be fine. I just do 

return entitymanager.find(clazz, id).

-- 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/-/_Hip41CPKpUJ.
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 bytecodes on Android platforms

2011-08-26 Thread freemonhuul
Hi. google friendlies.

I have a thought about GWT and Android.

I have developed some app on the GWT and Android.

Now I am developing an app for android OS which should receive data
from http server and doesn't have a web browser compatible.

shortly can I use GWT's java bytecodes in my android app?

any reply would be appreciated.

thanks in advance.

best regards

-- 
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 bytecodes on Android platforms

2011-08-26 Thread Magno Machado
You could do the communication through RequestFactory, which has a pure java
client library that you can use on Android.

On Fri, Aug 26, 2011 at 7:55 AM, freemonhuul freemonh...@gmail.com wrote:

 Hi. google friendlies.

 I have a thought about GWT and Android.

 I have developed some app on the GWT and Android.

 Now I am developing an app for android OS which should receive data
 from http server and doesn't have a web browser compatible.

 shortly can I use GWT's java bytecodes in my android app?

 any reply would be appreciated.

 thanks in advance.

 best regards

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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: Order of sub-editor setters in RequestFactoryEditorDriver

2011-08-26 Thread Thomas Broyer
If your code depends on call orders, then you'll have issues even without 
the Editor framework: as soon as you call a getter to retrieve a related 
proxy out of an edit()ed proxy, that other proxy will automatically be 
edit()ed too, so that you can write code like:

MyProxy myProxy = ctxt.edit(someProxy);
myProxy.getSubProxy().setFoo(foo);

without the need to edit(myProxy.getSubProxy()) and store it in another 
variable.

IMO, you'd rather change your assumptions on the server-side to no longer 
depend on setter's call order.

(FYI, the Editor calls edit() on each subproxy because it walks down the 
proxy passed as argument, which may or may not be edit()ed itself; and each 
ValueAwareEditor or LeafValueEditor is passed the non-edit()ed proxy, the 
edit()ed one being used only on flush())

-- 
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/-/4sZiv2mMqnsJ.
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-earth sample - question

2011-08-26 Thread Nick


Ben ben.falchuk@... writes:

 
 I'm trying to learn and work with the gwt-earth project.. started with
 the sort of hello earth program available at:

http://code.google.com/p/earth-api-samples/source/browse/#svn%2Ftrunk%2Fdemos%2Fgwt-earth%2Fsrc%2Fcom%2Fgoogle%253Fstate%253Dclosed
 
 While the GEPlugin concept is fairly tricky - there is a GEWrapper
 class that encapsulates a GEPlugin class, which in turn talks to a
 class with native communication to the GEPlugin (GEPluginNative). In
 that latter class i find native methods like:
 
   public static native JavaScriptObject getFeatures(JavaScriptObject
 ge)/*-{
   return ge.getFeatures();
   }-*/;
 
 and i'm trying to add a new one that sets up zoom controllers (etc),
 but can't seem to make it work. I've tried adding this:
 
   public static native void setControlsVisible(JavaScriptObject ge)/*-{
   
 ge.getNavigationControl().setControlType(ge.NAVIGATION_CONTROL_LARGE);
   ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
   }-*/;
 
 and then call it via GEPlugin class:
 
   public void setControlsVisible()
 {GEPluginNative.setControlsVisible(ge);}
 
 but i end up with a runtime JS error (this.d.b is null)..
 
 Is it possible to add controls to the gwt-earth example program? what
 am i missing?
 
 Thanks for insight.
 


Hi Ben,

I'm not sure if you are still in need of a solution to your problem but I would
recommend that you use the gwt-earth-3 project instead.
It provides full support for the entire Google Earth API, including the
capability that you are trying to implement.

You can find the project here:
https://code.google.com/p/gwt-earth-3/ 

Regards,
Nick

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



Handle OnClick of GWT SuggestBox ?

2011-08-26 Thread Santosh kumar
Hi,

*onClick of the SuggestBox* i want to display some of the default
suggestions. Some how i am managing to get response from the server.

@Override
public void onClick(ClickEvent event) {
   -
   -
   -
   -
 // here some how i am managing to get the default suggestions from
the server.
   -
   -
   -
   -
// but my problem is how do i say *callback.onSuggestionsReady(req,
resp);* because callback is not available here ?

// *So, my work around was:* i just created a *new Callback*, and
after getting the response from the server i am calling
//  callback.onSuggestionsReady(req, resp);

Callback callback = new Callback() {

@Override
public void onSuggestionsReady(Request request,
com.google.gwt.user.client.ui.SuggestOracle.Response response) {
// *my question is, how do i Override* *onSuggestionsReady*
*and display the suggestions ??* *because control is coming here.*
}
};
}

is this is the right way ? or please can any one suggest me the right way ?

Thanks in advance :)

-- 
** *S*antosh *K*umar *K* http://www.accountingguru.in/**

-- 
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 + Facebook

2011-08-26 Thread Bruno Sandivilli
Hi, i want i esay and clean way to integrate GWT with Facebook. Any
ideas? Thanks

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



Re: Google Plugin for Eclipse 3.4

2011-08-26 Thread myTrx
Hello!

Same problem here.
It seems that the download is defect.

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


On 5 Aug., 22:06, JohnJ jhnjhn...@gmail.com wrote:
 I am having trouble installing the plugin for Eclipse3.4.  I have
 installed it in the past.  In those cases on the Available Software
 it always showed a selection of the components to be installed, and
 once a component is selected the Install button is enabled.  Now, no
 components are listed and the Install button is not being enabled.   I
 have tried it on three different Eclipse installs on three different
 PCs.  I have also tried installing from the zip download with the same
 result.  Has anyone else experienced this problem recently?

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



JFace with GWT for client apps

2011-08-26 Thread Avi Sengupta

Hi,

Does GWT client side support JFace? I've looked at the uFace links but 
it seems like it is no longer being actively developed.


Regards,
Avi

--
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: Insane RPC Serialization Error.

2011-08-26 Thread Gianluigi
Thanks for all the answers. 
Actually the insane part it's related that rpc It works PERFECTLY in hosted 
mode or in web dev plugin mode...

the serialization of complex objects in RPC fails completely in web mode 
without dev plugin...

The funny part is that I have found only this similar issue...
http://code.google.com/p/google-web-toolkit/issues/detail?id=6229


so weird...



Da: dreamer venugopal.vasire...@gmail.com
A: Google Web Toolkit google-web-toolkit@googlegroups.com
Inviato: Lunedì 22 Agosto 2011 15:36
Oggetto: Re: Insane RPC Serialization Error.

I had similar issues, all pointed back to some defensive coding.
As all calls are aync , behavior will be some what unexpected in few
situations.

Here are some tricks I played to such errors.

1) try in different browsers.
2) Load the app instance, then  try, meaning use once, and second,
third, is problem persistent.
2) In your loginConfig file, if is client side code, check for
nullability of the object you are casting, sure, what ever object ,
you are
    are casting to is null, depending, how implemented the call, async
call might be delaying.
    One trick, test for null and throw Window.alert(blah blah
object is null at line and class - till you resolve these issues.
3) I had the habit of coding this.variable=param - this thew null
pointer exception in IE9, I removed all this.variable
    and named params with non-conflicting name. Obviously
javascript is not as robust as java, so we have code very
defensively.
4) I found, rather I coded more procedural way than forcing all OO
concepts in to code, this gave small footprint and performance. GWT
likes procedure code.
5) Client side, I did not spend much time but Window.alert is
working great for me. These are the things I should not see, if shows,
code broke some where, even I kept these in app engine uploaded, of-
course I don't have 1000's of users right now.

These are my experiences, You can experiment and find what works in
your situation.

-venu
http:schoolk12.appspot.com


On Aug 22, 6:48 am, Jambi michael.lukaszc...@googlemail.com wrote:
 Could you post the class contents? Maybe we can see something in your
 code.

 On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote:







  Some days ago I had a similar problem. Development version worked fine,
  but the compiled version gave those errors. What I did to resolve them,
  was to build my project from scratch. At the end I had a compiled and
  working version, having the same codebase like before.

  In the progress of resolving the error I also changed some eclipse settings:

  - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3
  - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
  2.3.0-1

  Finally I cannot say where this behaviour results from, but this is how
  I solved the problem.

  Regards,
  Stefan

  Am 22.08.2011 14:16, schrieb J.Ganesan:

   Any anonymous inner class you have ? That could be a problem.

   J.Ganesan
  www.DataStoreGwt.com

   On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it  wrote:
   The problem is that the serialization behaviour is different from web 
   and hosted mode...
   I don't know how I should resolve this...

   
   Da: Gianluigidava...@yahoo.it
   A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
   Inviato: Luned 22 Agosto 2011 10:30
   Oggetto: Insane RPC Serialization Error.

   Hi to all,

   It's several days I'm struggling with this error.
   I make a rpc call from GWT client to a server passing an object.

   This pojo contain several data ... and a String with some JSON stuff.

   The call in DEBUG mode works absolutely fine. Not only in debug mode, 
   but when I use the application connected with the GWT browser plugin.

   In production mode... the seralization fails!!! Nothing on server side. 
   I investigate the call in firebug... and the output is:

   Fri Aug 19 18:13:11 GMT+100 2011 
   com.google.gwt.logging.client.LogConfiguration
   SEVERE: null java.lang.ClassCastException: null

   at Unknown.collect_0(Unknown Source)
   at Unknown.createStackTrace_0(Unknown Source)
   at
     Unknown.fillInStackTrace_0(Unknown Source)
   at Unknown.fillInStackTrace(Unknown Source)
   at Unknown.$fillInStackTrace(Unknown Source)
   at Unknown.$$init_14(Unknown Source)
   at Unknown.Throwable_0(Unknown Source)
   at Unknown.Exception_0(Unknown Source)
   at Unknown.RuntimeException_0(Unknown Source)
   at Unknown.ClassCastException_0(Unknown Source) at 
   Unknown.dynamicCast(Unknown Source)
   at Unknown.makeValue(Unknown Source)
   at Unknown.makeValue_0(Unknown Source)
   at Unknown.$extractField(Unknown Source)
   at Unknown.extractField(Unknown Source)
   at Unknown.$extractData_0(Unknown Source)
   at Unknown.$makeObject(Unknown Source)
   at Unknown.makeValue(Unknown Source)
   at Unknown.writeObject(Unknown Source)
   at Unknown.serialize_33(Unknown Source)
   at 

GWT customization (CSS) by web designer

2011-08-26 Thread Otto Chrons
We are trying out GWT 2.3 for the first time to develop a web
application for professional users (not consumers).

What is the best way to enable a web designer to work on customizing
the UI, especially CSS, without having him work through the full GWT
compile/package scheme? Ideally we would just compile the production
version of the app, deploy it and the designer could then work with
the static deployment and directly edit CSS files so that changes
could be seen just by reloading the web page.

- Otto

-- 
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 Developer Plugin for Firefox 6

2011-08-26 Thread Chris Conroy
That's more or less it to build against existing source and plugin sdks.

Upgrading to a new version is certainly more involved due to the repackaging
of the original SDK, updating the makefile, manifest, and rdf install
template in the easy case. In the hard case it involves dealing with
breaking API changes from the new version :P

Though, if you just care about building a single platform locally, that
takes away most of the repackaging headaches. It sounds like there may be
sufficient demand for instructions for this use case (e.g. when we are
lagging a release), so I'll mark that as a TODO for me to write up a wiki
entry on this subject.

On Fri, Aug 26, 2011 at 4:26 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Is anything more than
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/README.txt
  and
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/xpcom/README.txt
  needed?


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

 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: Application Behaving Differently On Glassfish

2011-08-26 Thread opn
Hey,

can't help you with your specific problem, sorry.
But have you ever tried the-noserver option? This way I'm developing
with nearly the same setup than the productive machine has. I don't
know if you mean that in your first post where you're saying that you
can not get remote deployment working.

This way you would be able to debug the code on client side and the
server side with a glassfish server.

http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html

my settings (in intellij though) are:
-noserver -port 8080 -bindAddress 0.0.0.0 (as dev mode parameters)

Regards,
Alex

-- 
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: Pros Cons for RequestFactory Vs GWT RPC mechanism

2011-08-26 Thread Brian Lough
That's a little misleading in that RequestFactory useage requires a 
considerable amount of scaffolding code. 

-- 
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/-/8rYh7qQBQlkJ.
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 customization (CSS) by web designer

2011-08-26 Thread Paul Robinson

I have the home page of my app and some other resources generated on-the-fly by 
pulling the data out of the database. This lets you have user-defined CSS 
post-production.

- Create a new servlet that extends HttpServlet to handle your dynamic resources
- Override doGet() and intercept requests to files you want to be dynamic, and 
fulfill the request from the database
- Ideally, remember when the user-defined css was last modified, and provide 
the necessary etag and last-modified headers, then respond with not-modified 
when appropriate to avoid sending css every time.
- Change your web.xml so that the dynamic resources are mapped to your new 
servlet
- add stylesheet src='customised.css'/ or similar to your gwt.xml
- make sure this css is the last one specified by your gwt.xml (so its contents 
will override everything else)

Instead of loading from the database, you could make your sevlet load from a 
file if you want.

Paul

On 26/08/11 12:00, Otto Chrons wrote:

We are trying out GWT 2.3 for the first time to develop a web
application for professional users (not consumers).

What is the best way to enable a web designer to work on customizing
the UI, especially CSS, without having him work through the full GWT
compile/package scheme? Ideally we would just compile the production
version of the app, deploy it and the designer could then work with
the static deployment and directly edit CSS files so that changes
could be seen just by reloading the web page.

- Otto



--
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: Pros Cons for RequestFactory Vs GWT RPC mechanism

2011-08-26 Thread Brian Lough
After digging into both, I'm moving towards GWTEventservice: 
http://code.google.com/p/gwteventservice/.

RequestFactory seems best fitted to CRUD operations on specific model 
entities and does offer much under the covers in supporting those 
operations.  Combined with UIBinder and Editors, it's pretty painless 
creating small-scale, simple apps.  For large-scale projects, IMHO, *far *too 
much scaffolding code just to move POJOs back and forth.  It was also a bit 
of a pain getting integrated with Spring and Guice, though I'm sure that 
pain will be alleviated as the releases progress.

http://code.google.com/p/spring4gwt/ -- this may be of interest if you're 
Spring-based.  May be of interest even if not. :-)

If you're dealing with one application, particularly a small one, I'd go 
with RequestFactory.  I have to deal with 6 rather large applications, with 
5 different databases.  Even though I don't use any two at the same time 
(JTA), I'm finding neither Guice Persist nor RequestFactory really fits well 
and failover is still problematic.  As a result, I find it best to simply 
push POJO events back and forth between the UI and the Server.  SOC for me.

-- 
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/-/AxZRy4vSZTgJ.
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: Sending a value from a celltable to a view

2011-08-26 Thread Sandney Farias
For example  you get the String   *RootPlace:banco/123* I got the string 
and extract 123, but when I'll use it in the line *
Datastore.query(banco).filter(banco.key.equal(key)).asSingle(); *
the key have to be a object of *KEY* type and isn't possible cast a 
*String*type to a 
*Key* type.

Thank`s again.

-- 
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/-/zeD9Ef2FdtkJ.
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: Pros Cons for RequestFactory Vs GWT RPC mechanism

2011-08-26 Thread Magno Machado
It was also a bit of a pain getting integrated with Spring and Guice,
though I'm sure that pain will be alleviated as the releases progress.
I don't know about Spring, but integrating RF and Guice is not that hard and
works very well

On Fri, Aug 26, 2011 at 12:40 PM, Brian Lough bklo...@gmail.com wrote:

 After digging into both, I'm moving towards GWTEventservice:
 http://code.google.com/p/gwteventservice/.

 RequestFactory seems best fitted to CRUD operations on specific model
 entities and does offer much under the covers in supporting those
 operations.  Combined with UIBinder and Editors, it's pretty painless
 creating small-scale, simple apps.  For large-scale projects, IMHO, *far *too
 much scaffolding code just to move POJOs back and forth.  It was also a bit
 of a pain getting integrated with Spring and Guice, though I'm sure that
 pain will be alleviated as the releases progress.

 http://code.google.com/p/spring4gwt/ -- this may be of interest if you're
 Spring-based.  May be of interest even if not. :-)

 If you're dealing with one application, particularly a small one, I'd go
 with RequestFactory.  I have to deal with 6 rather large applications, with
 5 different databases.  Even though I don't use any two at the same time
 (JTA), I'm finding neither Guice Persist nor RequestFactory really fits well
 and failover is still problematic.  As a result, I find it best to simply
 push POJO events back and forth between the UI and the Server.  SOC for me.

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

 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.




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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 RPC with other server possible?

2011-08-26 Thread jernejk
Dear all,

I am total noob in GWT and just need to develop a few concepts
(urgently of course).
I'd like to display data from a separate server in GWT app running on
another server. I'm looking into GWT RPC and it looks as if it *might*
work,
but if I configure endpoit like this
((ServiceDefTarget)stockPriceSvc).setServiceEntryPoint(http://
localhost:7101/Project2/stockwatcher/stockPrices);
I get exception. In the http analyzer I see that http OPTION request
is send to my server in this case, but just a regular POST if I use
embedded Jetty.

Is my use case possible at all or should I consider other options?

Thanks

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



gwt-earth - adding controls to the plugin?

2011-08-26 Thread veganjay
Does anyone know if it is possible to add controls to the Google Earth
plugin?
For a simple example, I'd like to create a GWT PushButton and add it
to the window.

For the 2D Google Maps, there is a method MapWidget.addControl(), but
I don't see anything
similar with the Google Earth plugin.  And most examples seem to place
the controls on a separate panel.

Thanks,
Jason

-- 
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: Using GWT Designer with UIBinder and Internaltionalization

2011-08-26 Thread Mike Dee
I'm having the same problem. The external strings button is missing
when working with a uibinder XML file.

On Jul 11, 10:55 am, Greg boavi...@gmail.com wrote:
 Hi,
 I'm trying to start a new application using the new UIBinder with help
 of GWT Designer. Moreover, the application needs to support a few
 locales, so I'm trying to use theInternationalizationfeature.
 The problem is that in the gwt designer the icon for 
 theinternationalizationwindow is not available when building a UiBinder
 composite. My questions:  is this a missing feature in GWT Designer?
 If yes, will it be available soon? or am I doing something wrong?
 Thanks in advance.

-- 
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: Clojure on the back end / suggestions before I get started?

2011-08-26 Thread BST
https://groups.google.com/forum/#!forum/clojure

I am guessing guys at this forum might give u a better idea of how to 
design. It is interesting to know about Clojure. Probably you also should 
explore if you can make it run on a server to service requests and you can 
use it with GWT RPC..

-- 
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/-/RXu_NfGPVRYJ.
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 to do JUnit testing for a composite widget created using UIBinder?

2011-08-26 Thread Eric Metcalf
You want a GWT test: 
http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html


On Aug 25, 2:18 pm, BM bhushan.ma...@gmail.com wrote:
 I have created a stand alone custom widget using GWT UIBinder with the
 help of GWT Designer.

 The two files which I have are :

 MultipleListBoxCustomWidget.java
 MultipleListBoxCustomWidget.ui.xml

 I use this widget is my GWT application which I use activites and
 places framework and all my views are created using UIBinders.

 I use this widget in one of my view with UIBinder tag referencing the
 package name of the directory as the name spaces.

 Question:
 How do I Unit testing my widget code as it is all self-contained. The
 functionality of the widget is show two list boxes on the screen with
 4 buttons on the center. Each of these buttons are  , ,  and
  . This means I can move items from the list to another list
 depending on which buttons are clicked. I kept the code as self-
 contained and reusable so that I can pass any two different ArrayList
 to my widget as two separate methods calls inside the widget and those
 methods basically populates respective Listbox items inside the
 widget. I also gave getter methods to return the changed item
 arrangement of the ListBox items as ArrayList object as part of two
 separate method calls.

 Since the widget code is self-contained, my click handlers are inside
 this java file MultipleListBoxCustomWidget.java for example -

 @UiHandler(leftToRightButton)
 void onLeftToRightButtonClick(ClickEvent event) {.}

 So testing is getting difficult. There is no controller because I
 can't have a self-contained widget with MVP activities and places
 inside to be used in another web applications which is designed using
 activities and places.

 Any advise?

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



Active tab on tab panel not being highlighted.

2011-08-26 Thread Rich
I have a GWT 2.3.0 application and when run in the debugger the active tab 
of a tab panel highlights when that tab is selected.  However in the 
deployed application it does not highlight.  Not sure what to look at.  Any 
suggestions?  (This behavior is the same across browsers.)

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



Can't display wide HTML in Dialog

2011-08-26 Thread dhoffer
I'm starting with the sample GWT 2.3.0 app that just shows a dialog
after making an RPC call, I've added more wide content to the
VerticalPanel but it gets truncated, i.e. the right side of the dialog
is missing...so is the Close button.  Why can't I show wide content as
HTML here?

-- 
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 customization (CSS) by web designer

2011-08-26 Thread Michael Allan
A simple approach is to pull the designer's style sheet into the GWT
page, just as you would into a static page.  Here's an example:
http://zelea.com/project/votorola/a/web/base/xf/default.html

See the link element.  See also the caveat in this style sheet,
which is imported into the main sheet:
http://zelea.com/project/votorola/a/web/base/web/gwt.css

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


Otto Chrons wrote:
 We are trying out GWT 2.3 for the first time to develop a web
 application for professional users (not consumers).
 
 What is the best way to enable a web designer to work on customizing
 the UI, especially CSS, without having him work through the full GWT
 compile/package scheme? Ideally we would just compile the production
 version of the app, deploy it and the designer could then work with
 the static deployment and directly edit CSS files so that changes
 could be seen just by reloading the web page.
 
 - Otto

-- 
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 customization (CSS) by web designer

2011-08-26 Thread dreamer
Without any addition automation I follow this cycle.

1) Setup full development environment, start at app development mode
(debug-run)
2) open the CSS file with gwt css editor.
3) make changes, save
3) in development tab - reload web server (two crossing arrows)
4) new css will be loaded, just test changes  from GUI , launching the
site.


On Aug 26, 7:18 pm, Michael Allan m...@zelea.com wrote:
 A simple approach is to pull the designer's style sheet into the GWT
 page, just as you would into a static page.  Here's an 
 example:http://zelea.com/project/votorola/a/web/base/xf/default.html

 See the link element.  See also the caveat in this style sheet,
 which is imported into the main 
 sheet:http://zelea.com/project/votorola/a/web/base/web/gwt.css

 --
 Michael Allan

 Toronto, +1 416-699-9528http://zelea.com/







 Otto Chrons wrote:
  We are trying out GWT 2.3 for the first time to develop a web
  application for professional users (not consumers).

  What is the best way to enable a web designer to work on customizing
  the UI, especially CSS, without having him work through the full GWT
  compile/package scheme? Ideally we would just compile the production
  version of the app, deploy it and the designer could then work with
  the static deployment and directly edit CSS files so that changes
  could be seen just by reloading the web page.

  - Otto

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



CellTable CPU 20%

2011-08-26 Thread myge...@yahoo.com
I'm  sorry, I don’t speak English.

Open link http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable

I use Google chrome, IE9, IE6, Opera.

fast repeat move mouse.

cpu usage 20%

why?

-- 
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] Re: Make UmbrellaException a bit more convenient to read, and test it. (issue1532803)

2011-08-26 Thread cromwellian

lgtm

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

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


[gwt-contrib] Re: Issue 6193: Fix memory-leak in AutoBean VM implementation (issue1401802)

2011-08-26 Thread t . broyer

Please do not use this patch. The leak is fixed in trunk by
http://code.google.com/p/google-web-toolkit/source/detail?r=10201 and
http://code.google.com/p/google-web-toolkit/source/detail?r=10344

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

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


[gwt-contrib] Re: Serialization of Final Fields in RPC (issue1380807)

2011-08-26 Thread stephen . haberman



Thanks. I'll look through and incorporate your changes.


zhuyi, any updates on this?

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

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


[gwt-contrib] Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

Reviewers: scottb,



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

Affected files:
  A user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java


Index: user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java
diff --git  
a/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java  
b/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java

new file mode 100644
index  
..26285ad346b52a23581dfc72d14109db51d8b1cb

--- /dev/null
+++ b/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package java.lang;
+
+/**
+ * See a
+ *  
href=http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NoSuchMethodException.html;the

+ * official Java API doc/a for details.
+ */
+public class NoSuchMethodException extends Exception {
+
+  public NoSuchMethodException() {
+  }
+
+  public NoSuchMethodException(String message) {
+super(message);
+  }
+}


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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

I know this seems odd, given GWT doesn't support reflection, but in the
scala-library there are a few places that throw this exception even
though it's not reflection-related.

We can patch around that, but given that, in theory anyway, other users
could use this exception for non-reflection purposes as well, it doesn't
seem like a big deal to include it in the emulated java lang.

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

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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread jat


http://gwt-code-reviews.appspot.com/1529807/diff/1/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java
File user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java
(right):

http://gwt-code-reviews.appspot.com/1529807/diff/1/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java#newcode21
user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java:21:
* official Java API doc/a for details.
The doc needs to very clearly say this will never be thrown by GWT or
any GWT libraries and is only provided for compatibility with user code
that explicitly throws or catches it.

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

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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

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

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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

On 2011/08/26 16:19:51, jat wrote:

The doc needs to very clearly say this will never be thrown by GWT


Agreed; done.



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

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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

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

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


[gwt-contrib] Re: Add NoSuchMethodException to java.lang (issue1529807)

2011-08-26 Thread stephen . haberman

On 2011/08/26 17:10:50, scottb wrote:

How about is not thrown present tense?  No need to tie ourselves

down for all

of time. :)


Hehe, fair enough. Done.



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

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


Re: [gwt-contrib] maven source jars

2011-08-26 Thread Stephen Haberman

 David, could you send us (Stephen and me) your scripts so we could
 work together making this real? (if you're OK with this, Stephen)

Definitely. Sounds cool to me.

- Stephen

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


[gwt-contrib] Re: Adding a new CellTableHeaderBuilder API, which allows custom headers and footers in CellTable. C... (issue1499808)

2011-08-26 Thread jlabanca

committed as r10581

A follow up change is coming to merge the latest CellTableBuilder
changes into HeaderCreator.

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

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


[gwt-contrib] [google-web-toolkit] r10583 committed - Integrate r10431 into GWT 2.4 branch....

2011-08-26 Thread codesite-noreply

Revision: 10583
Author:   gwt.mirror...@gmail.com
Date: Fri Aug 26 08:21:06 2011
Log:  Integrate r10431 into GWT 2.4 branch.

Review by: rj...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10583

Modified:
  
/releases/2.4/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java


===
---  
/releases/2.4/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java	 
Thu Aug 25 10:06:37 2011
+++  
/releases/2.4/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java	 
Fri Aug 26 08:21:06 2011

@@ -154,6 +154,10 @@
*/
   private void testGeneratedMessages(boolean clientOnly, Class?...  
classes) throws IOException {

 JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
+if (compiler == null) {
+  // This test is being run without a full JDK
+  return;
+}

 // Don't spray files in random locations
 File tempFile =  
File.createTempFile(RfValidatorTest.class.getSimpleName(), .jar);


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


[gwt-contrib] Re: Make UmbrellaException a bit more convenient to read, and test it. (issue1532803)

2011-08-26 Thread Ray Ryan
r10584


On Thu Aug 25 23:08:59 GMT-700 2011, cromwell...@google.comgt wrote:

 lgtm

 http://gwt-code-reviews.appspot.com/1532803/http://www.google.com/url?sa=Dq=http://gwt-code-reviews.appspot.com/1532803/


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

[gwt-contrib] [google-web-toolkit] r10584 committed - Make UmbrellaException a bit more convenient to read, and test it....

2011-08-26 Thread codesite-noreply

Revision: 10584
Author:   rj...@google.com
Date: Fri Aug 26 08:45:52 2011
Log:  Make UmbrellaException a bit more convenient to read, and test it.

Review at http://gwt-code-reviews.appspot.com/1532803

Review by: cromwell...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10584

Added:
  
/trunk/user/test/com/google/web/bindery/event/shared/UmbrellaExceptionTest.java

Modified:
 /trunk/user/src/com/google/web/bindery/event/shared/UmbrellaException.java

===
--- /dev/null
+++  
/trunk/user/test/com/google/web/bindery/event/shared/UmbrellaExceptionTest.java	 
Fri Aug 26 08:45:52 2011

@@ -0,0 +1,83 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.web.bindery.event.shared;
+
+import junit.framework.TestCase;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Unit test for {@link #UmbrellaException}.
+ */
+public class UmbrellaExceptionTest extends TestCase {
+  public void testNone() {
+// Why?
+try {
+  throw new UmbrellaException(Collections.Throwable emptySet());
+} catch (UmbrellaException e) {
+  assertNull(e.getCause());
+  assertNull(e.getMessage());
+}
+  }
+
+  public void testOne() {
+SetThrowable causes = new HashSetThrowable();
+String message = Just me;
+RuntimeException theOne = new RuntimeException(message);
+causes.add(theOne);
+
+try {
+  throw new UmbrellaException(causes);
+} catch (UmbrellaException e) {
+  assertSame(theOne, e.getCause());
+  assertEquals(UmbrellaException.ONE + message, e.getMessage());
+}
+  }
+
+  public void testSome() {
+SetThrowable causes = new HashSetThrowable();
+String oneMessage = one;
+RuntimeException oneException = new RuntimeException(oneMessage);
+causes.add(oneException);
+
+String twoMessage = two;
+RuntimeException twoException = new RuntimeException(twoMessage);
+causes.add(twoException);
+
+try {
+  throw new UmbrellaException(causes);
+} catch (UmbrellaException e) {
+  // A bit non-deterministic for a unit test, but I've checked both  
paths --

+  // rjrjr
+  if (e.getCause() == oneException) {
+assertCauseMatchesFirstMessage(e, oneMessage, twoMessage);
+  } else if (e.getCause() == twoException) {
+assertCauseMatchesFirstMessage(e, twoMessage, oneMessage);
+  } else {
+fail(Expected one of the causes and its message);
+  }
+}
+  }
+
+  private void assertCauseMatchesFirstMessage(UmbrellaException e, String  
firstMessage,

+  String otherMessage) {
+assertTrue(Cause should be first message, e.getMessage().startsWith(
+2 + UmbrellaException.MULTIPLE + firstMessage));
+assertTrue(Should also see the other message,  
e.getMessage().contains(otherMessage));

+  }
+}
===
---  
/trunk/user/src/com/google/web/bindery/event/shared/UmbrellaException.java	 
Mon Apr 18 16:25:25 2011
+++  
/trunk/user/src/com/google/web/bindery/event/shared/UmbrellaException.java	 
Fri Aug 26 08:45:52 2011

@@ -16,6 +16,7 @@
 package com.google.web.bindery.event.shared;

 import java.util.Collections;
+import java.util.Iterator;
 import java.util.Set;

 /**
@@ -26,15 +27,48 @@
  */
 public class UmbrellaException extends RuntimeException {

-  private static final String MSG =
-  One or more exceptions caught, see full set in  
UmbrellaException#getCauses;

+  // Visible for testing
+  static final String MULTIPLE =  exceptions caught: ;
+
+  // Visible for testing
+  static final String ONE = Exception caught: ;
+
+  protected static Throwable makeCause(SetThrowable causes) {
+IteratorThrowable iterator = causes.iterator();
+if (!iterator.hasNext()) {
+  return null;
+}
+
+return iterator.next();
+  }
+
+  protected static String makeMessage(SetThrowable causes) {
+int count = causes.size();
+if (count == 0) {
+  return null;
+}
+
+StringBuilder b = new StringBuilder(count == 1 ? ONE : count +  
MULTIPLE);

+boolean first = true;
+for (Throwable t : causes) {
+  if (first) {
+first = false;
+  } else {
+b.append(; );
+  }
+  b.append(t.getMessage());
+}
+
+return b.toString();
+  }
+
   /**
* The causes of the exception.
*/
   private SetThrowable causes;

   public 

[gwt-contrib] Re: Firefox 6 DevMode Plugin (issue1523805)

2011-08-26 Thread conroy

On 2011/08/26 18:59:42, acleung wrote:

On 2011/08/26 18:58:34, acleung wrote:



Thanks! PTAL



BTW, how do I go about verifying the universal binary is built

correctly? Do I

need to grab an older Mac or am I missing something very obvious?


If you have an older mac, then that works. Otherwise you can always open
Firefox in 32 bit mode (in Finder, right click-Get Info-Open in 32 bit
mode)

Also, looks like you still need to make the Darwin modifications

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

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


[gwt-contrib] [google-web-toolkit] r10585 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-08-26 Thread codesite-noreply

Revision: 10585
Author:   rj...@google.com
Date: Fri Aug 26 12:09:28 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

http://code.google.com/p/google-web-toolkit/source/detail?r=10585

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiFri Aug 19 11:42:56 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiFri Aug 26 12:09:28 2011
@@ -1,6 +1,6 @@
 #summary Provides late validation of RequestFactory interfaces

-When GWT 2.5 is released (at this writing, the current version is 2.3),  
RequestFactory interfaces must be validated before they can be used by the  
RequestFactory server code or JVM-based clients.  This document explains  
the mechanisms for validating those interfaces.
+When GWT 2.4 is released (at this writing, the current version is 2.3),  
RequestFactory interfaces must be validated before they can be used by the  
RequestFactory server code or JVM-based clients.  This document explains  
the mechanisms for validating those interfaces.


 wiki:toc /

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


[gwt-contrib] Modifying DefaultHeaderCreator to support null sorting indicator images. Until a recent change,... (issue1533803)

2011-08-26 Thread jlabanca

Reviewers: eschoeffler,

Description:
Modifying DefaultHeaderCreator to support null sorting indicator images.
 Until a recent change, CellTable would not throw any errors if the sort
indicators in the Resources returned null, as long as the CellTable was
never sorted.  However, DefaultHeaderCreator aggressively caches the
height and width of the icons.  While this was never officially
supported, its convenient behavior for people trying to reduce code size
by removing the inlined image.


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

Affected files:
  M user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java
  M user/test/com/google/gwt/user/cellview/client/CellTableTest.java


Index:  
user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java

===
--- user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java	 
(revision 10584)
+++ user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java	 
(working copy)

@@ -71,10 +71,20 @@
  */
 ImageResource asc = table.getResources().sortAscending();
 ImageResource desc = table.getResources().sortDescending();
-sortAscIconWidth = asc.getWidth() + ICON_PADDING;
-sortDescIconWidth = desc.getWidth() + ICON_PADDING;
-sortAscIconHalfHeight = (int) Math.round(asc.getHeight() / 2.0);
-sortDescIconHalfHeight = (int) Math.round(desc.getHeight() / 2.0);
+if (asc != null) {
+  sortAscIconWidth = asc.getWidth() + ICON_PADDING;
+  sortAscIconHalfHeight = (int) Math.round(asc.getHeight() / 2.0);
+} else {
+  sortAscIconWidth = 0;
+  sortAscIconHalfHeight = 0;
+}
+if (desc != null) {
+  sortDescIconWidth = desc.getWidth() + ICON_PADDING;
+  sortDescIconHalfHeight = (int) Math.round(desc.getHeight() / 2.0);
+} else {
+  sortDescIconWidth = 0;
+  sortDescIconHalfHeight = 0;
+}
   }

   @Override
Index: user/test/com/google/gwt/user/cellview/client/CellTableTest.java
===
--- user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
(revision 10584)
+++ user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
(working copy)

@@ -180,6 +180,56 @@
   }

   /**
+   * Using a null sort icon should not cause any errors if none of the  
columns

+   * are sortable.
+   */
+  public void testNullSortIcons() {
+// Create a Resources instance that does not include sort images.
+CellTable.Resources resources = new CellTable.Resources() {
+  private final CellTable.Resources defaultRes =  
GWT.create(CellTable.Resources.class);

+
+  @Override
+  public ImageResource cellTableFooterBackground() {
+return defaultRes.cellTableFooterBackground();
+  }
+
+  @Override
+  public ImageResource cellTableHeaderBackground() {
+return defaultRes.cellTableHeaderBackground();
+  }
+
+  @Override
+  public ImageResource cellTableLoading() {
+return defaultRes.cellTableLoading();
+  }
+
+  @Override
+  public ImageResource cellTableSelectedBackground() {
+return defaultRes.cellTableSelectedBackground();
+  }
+
+  @Override
+  public ImageResource cellTableSortAscending() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSortDescending() {
+return null;
+  }
+
+  @Override
+  public Style cellTableStyle() {
+return defaultRes.cellTableStyle();
+  }
+};
+
+CellTableString table = new CellTableString(10, resources);
+populateData(table);
+table.getPresenter().flush();
+  }
+
+  /**
* Test that removing a column sets its width to zero.
*/
   public void testRemoveColumnWithWidth() {


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


[gwt-contrib] Adding a test case that verifies CellTable works even if all image resources are null. Sort ico... (issue1534803)

2011-08-26 Thread jlabanca

Reviewers: eschoeffler,

Description:
Adding a test case that verifies CellTable works even if all image
resources are null.  Sort icons are only used if a column is sorted
(sorting will cause an NPE). Background icons are used in the default
styles, and are optional. The sorting icon is specially handled to allow
for null.


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

Affected files:
  M user/test/com/google/gwt/user/cellview/client/CellTableTest.java


Index: user/test/com/google/gwt/user/cellview/client/CellTableTest.java
===
--- user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
(revision 10584)
+++ user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
(working copy)

@@ -230,6 +230,59 @@
   }

   /**
+   * CellTable should not throw any errors if all of the icons are null.
+   *
+   * Sort icons are only used if a column is sorted. Background icons are  
not
+   * used in the default styles, and are optional. The sorting icon is  
specially

+   * handled.
+   */
+  public void testNullIcons() {
+// Create a Resources instance that does not include sort images.
+CellTable.Resources resources = new CellTable.Resources() {
+  private final CellTable.Resources defaultRes =  
GWT.create(CellTable.Resources.class);

+
+  @Override
+  public ImageResource cellTableFooterBackground() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableHeaderBackground() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableLoading() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSelectedBackground() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSortAscending() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSortDescending() {
+return null;
+  }
+
+  @Override
+  public Style cellTableStyle() {
+return defaultRes.cellTableStyle();
+  }
+};
+
+CellTableString table = new CellTableString(10, resources);
+populateData(table);
+table.getPresenter().flush();
+  }
+
+  /**
* Test that removing a column sets its width to zero.
*/
   public void testRemoveColumnWithWidth() {


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


[gwt-contrib] [google-web-toolkit] r10586 committed - Modifying DefaultHeaderCreator to support null sorting indicator image...

2011-08-26 Thread codesite-noreply

Revision: 10586
Author:   jlaba...@google.com
Date: Fri Aug 26 09:38:28 2011
Log:  Modifying DefaultHeaderCreator to support null sorting indicator  
images.  Until a recent change, CellTable would not throw any errors if the  
sort indicators in the Resources returned null, as long as the CellTable  
was never sorted.  However, DefaultHeaderCreator aggressively caches the  
height and width of the icons.  While this was never officially supported,  
its convenient behavior for people trying to reduce code size by removing  
the inlined image.


Review at http://gwt-code-reviews.appspot.com/1533803

http://code.google.com/p/google-web-toolkit/source/detail?r=10586

Modified:
  
/trunk/user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java

 /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java

===
---  
/trunk/user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java	 
Fri Aug 26 07:24:39 2011
+++  
/trunk/user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java	 
Fri Aug 26 09:38:28 2011

@@ -71,10 +71,20 @@
  */
 ImageResource asc = table.getResources().sortAscending();
 ImageResource desc = table.getResources().sortDescending();
-sortAscIconWidth = asc.getWidth() + ICON_PADDING;
-sortDescIconWidth = desc.getWidth() + ICON_PADDING;
-sortAscIconHalfHeight = (int) Math.round(asc.getHeight() / 2.0);
-sortDescIconHalfHeight = (int) Math.round(desc.getHeight() / 2.0);
+if (asc != null) {
+  sortAscIconWidth = asc.getWidth() + ICON_PADDING;
+  sortAscIconHalfHeight = (int) Math.round(asc.getHeight() / 2.0);
+} else {
+  sortAscIconWidth = 0;
+  sortAscIconHalfHeight = 0;
+}
+if (desc != null) {
+  sortDescIconWidth = desc.getWidth() + ICON_PADDING;
+  sortDescIconHalfHeight = (int) Math.round(desc.getHeight() / 2.0);
+} else {
+  sortDescIconWidth = 0;
+  sortDescIconHalfHeight = 0;
+}
   }

   @Override
===
--- /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
Fri Aug 26 07:24:39 2011
+++ /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
Fri Aug 26 09:38:28 2011

@@ -178,6 +178,56 @@
 CellTableString table = new CellTableString(25, resources);
 assertNull(table.getLoadingIndicator());
   }
+
+  /**
+   * Using a null sort icon should not cause any errors if none of the  
columns

+   * are sortable.
+   */
+  public void testNullSortIcons() {
+// Create a Resources instance that does not include sort images.
+CellTable.Resources resources = new CellTable.Resources() {
+  private final CellTable.Resources defaultRes =  
GWT.create(CellTable.Resources.class);

+
+  @Override
+  public ImageResource cellTableFooterBackground() {
+return defaultRes.cellTableFooterBackground();
+  }
+
+  @Override
+  public ImageResource cellTableHeaderBackground() {
+return defaultRes.cellTableHeaderBackground();
+  }
+
+  @Override
+  public ImageResource cellTableLoading() {
+return defaultRes.cellTableLoading();
+  }
+
+  @Override
+  public ImageResource cellTableSelectedBackground() {
+return defaultRes.cellTableSelectedBackground();
+  }
+
+  @Override
+  public ImageResource cellTableSortAscending() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSortDescending() {
+return null;
+  }
+
+  @Override
+  public Style cellTableStyle() {
+return defaultRes.cellTableStyle();
+  }
+};
+
+CellTableString table = new CellTableString(10, resources);
+populateData(table);
+table.getPresenter().flush();
+  }

   /**
* Test that removing a column sets its width to zero.

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


[gwt-contrib] Integrating Peng's recent API changes to CellTableBuilder into HeaderCreator. HeaderCreator now... (issue1533804)

2011-08-26 Thread jlabanca

Reviewers: skybrian, rjrjr, peng_google.com,

Description:
Integrating Peng's recent API changes to CellTableBuilder into
HeaderCreator.  HeaderCreator now includes both the rendering code and
the event handling logic, eliminating the HeaderCreator.Helper class
completely.  This allows for a simpler implementation of HeaderCreator
that only supports a single row, or an application specific
implementation, either of which could be lighter weight than the default
implementation.  The API is very similar to CellTableBuilder, but
slightly simpler because there is no concept of row values in a header.
Note that there are no behavioral changes here, its just a rearrangement
of API.

The one big question, which this change does not answer, is which class
to rename: HeaderCreator or CellTableBuilder.  Personally, I think that
both classes are much more builder-like than they were, so maybe we can
just rename HeaderCreator to HeaderBuilder.  That would certainly be the
easiest from an adoption standpoint, as CellTableBuilder already has
wide use and would be harder to rename.

Also, we could drop the Cell from CellTableBuilder to make it more
consistent with HeaderBuilder/Creator.  However, that would be a pain,
so I'm happy just leaving CellTableBuilder as is.


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

Affected files:
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java

  M user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
  A user/src/com/google/gwt/user/cellview/client/AbstractHeaderCreator.java
  M user/src/com/google/gwt/user/cellview/client/DefaultHeaderCreator.java
  M user/src/com/google/gwt/user/cellview/client/HeaderCreator.java


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


[gwt-contrib] Re: Modifying DefaultHeaderCreator to support null sorting indicator images. Until a recent change,... (issue1533803)

2011-08-26 Thread jlabanca

committed as r10586

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

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


[gwt-contrib] [google-web-toolkit] r10587 committed - Adding a test case that verifies CellTable works even if all image res...

2011-08-26 Thread codesite-noreply

Revision: 10587
Author:   gwt.mirror...@gmail.com
Date: Fri Aug 26 09:55:44 2011
Log:  Adding a test case that verifies CellTable works even if all  
image resources are null.  Sort icons are only used if a column is sorted  
(sorting will cause an NPE). Background icons are used in the default  
styles, and are optional. The sorting icon is specially handled to allow  
for null.


Review at http://gwt-code-reviews.appspot.com/1534803

Review by: eschoeff...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10587

Modified:
 /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java

===
--- /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
Fri Aug 26 09:38:28 2011
+++ /trunk/user/test/com/google/gwt/user/cellview/client/CellTableTest.java	 
Fri Aug 26 09:55:44 2011

@@ -207,6 +207,59 @@
   public ImageResource cellTableSelectedBackground() {
 return defaultRes.cellTableSelectedBackground();
   }
+
+  @Override
+  public ImageResource cellTableSortAscending() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSortDescending() {
+return null;
+  }
+
+  @Override
+  public Style cellTableStyle() {
+return defaultRes.cellTableStyle();
+  }
+};
+
+CellTableString table = new CellTableString(10, resources);
+populateData(table);
+table.getPresenter().flush();
+  }
+
+  /**
+   * CellTable should not throw any errors if all of the icons are null.
+   *
+   * Sort icons are only used if a column is sorted. Background icons are  
not
+   * used in the default styles, and are optional. The sorting icon is  
specially

+   * handled.
+   */
+  public void testNullIcons() {
+// Create a Resources instance that does not include sort images.
+CellTable.Resources resources = new CellTable.Resources() {
+  private final CellTable.Resources defaultRes =  
GWT.create(CellTable.Resources.class);

+
+  @Override
+  public ImageResource cellTableFooterBackground() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableHeaderBackground() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableLoading() {
+return null;
+  }
+
+  @Override
+  public ImageResource cellTableSelectedBackground() {
+return null;
+  }

   @Override
   public ImageResource cellTableSortAscending() {

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


[gwt-contrib] Re: Adding a test case that verifies CellTable works even if all image resources are null. Sort ico... (issue1534803)

2011-08-26 Thread jlabanca

committed as r10587

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

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


[gwt-contrib] Re: Integrating Peng's recent API changes to CellTableBuilder into HeaderCreator. HeaderCreator now... (issue1533804)

2011-08-26 Thread rjrjr

LGTM

No strong feelings on the new names.


http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
File user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
(right):

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java#newcode1610
user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java:1610:
* Get the thead element that contains the headers.
'ark at 'im!

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

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


[gwt-contrib] [google-web-toolkit] r10588 committed - Properly sets FLAG32BIT in Darwin Xulrunner 6.0

2011-08-26 Thread codesite-noreply

Revision: 10588
Author:   acle...@google.com
Date: Fri Aug 26 14:29:57 2011
Log:  Properly sets FLAG32BIT in Darwin Xulrunner 6.0


http://code.google.com/p/google-web-toolkit/source/detail?r=10588

Modified:
 /plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/js-config.h
 /plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/mozilla-config.h

===
--- /plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/js-config.h	Tue  
Aug 23 15:43:53 2011
+++ /plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/js-config.h	Fri  
Aug 26 14:29:57 2011

@@ -82,7 +82,16 @@
 /* #undef JS_INT32_TYPE */
 /* #undef JS_INT64_TYPE */
 /* #undef JS_INTPTR_TYPE */
+
+#if FLAG32BIT==32
+#define JS_BYTES_PER_WORD 4
+#elif FLAG32BIT==64
 #define JS_BYTES_PER_WORD 8
+#elif !defined(FLAG32BIT)
+#error FLAG32BIT is not defined
+#else
+#error FLAG32BIT must be 32 or 64
+#endif //FLAG32BIT

 /* Some mozilla code uses JS-friend APIs that depend on JS_TRACER and
JS_METHODJIT being correct. */
===
---  
/plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/mozilla-config.h	 
Tue Aug 23 15:43:53 2011
+++  
/plugin-sdks/gecko-sdks/gecko-6.0.0/Darwin-gcc3/include/mozilla-config.h	 
Fri Aug 26 14:29:57 2011

@@ -8,6 +8,22 @@

 #define ATTRIBUTE_ALIGNED_MAX 64
 #define BUILD_CTYPES 1
+
+
+/* 32/64 bundling */
+#if HOST32BIT != FLAG32BIT
+#define CROSS_COMPILE 1
+#endif
+
+#if FLAG32BIT==64
+#define HAVE_VA_LIST_AS_ARRAY 1
+#define HAVE_64BIT_OS 1
+#define LIBJPEG_TURBO_X64_ASM 1
+#elif FLAG32BIT==32
+#define LIBJPEG_TURBO_X86_ASM 1
+#endif
+/* end 32/64 bundling*/
+
 #define D_INO d_ino
 #define HAVE_64BIT_OS 1
 #define HAVE_DIRENT_H 1

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


[gwt-contrib] Re: Firefox 6 DevMode Plugin (issue1523805)

2011-08-26 Thread conroy

On 2011/08/26 21:31:29, acleung wrote:

 Also, looks like you still need to make the Darwin modifications



Thanks for catching that. I forgot that was only on SVN and wasn't

getting

picked up by rietveld.


LGTM

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

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


[gwt-contrib] Re: Integrating Peng's recent API changes to CellTableBuilder into HeaderCreator. HeaderCreator now... (issue1533804)

2011-08-26 Thread skybrian

Looks like it will work. Raised some issues that might be addressed in
another CL.



http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
File user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
(right):

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java#newcode715
user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java:715:
private static SafeHtml tableSectionToSafeHtml(TableSectionBuilder
section, String tag) {
@param tag: the expected tag (thead or tfoot)

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java#newcode718
user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java:718:
HeaderCreator must return a builder of type HtmlTableSectionBuilder);
Does this need to be a runtime check, or should we change the type in
HeaderCreator to match?

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java
File user/src/com/google/gwt/user/cellview/client/HeaderCreator.java
(right):

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode22
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:22: *
Creates the DOM elements for the header or footer section of a
CellTable.
Also provides queries on elements in the last DOM subtree that it
created.

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode27
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:27: *
builder's state should be reset.
It's unclear what sort of state you mean. I think this is probably
covered by saying that the query methods have to work on DOM elements
from the most recent call to buildHeader().

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode41
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:41: //
TODO(jlabanca): Rename to HeaderBuilder?
Hmm. There is one method that builds a DOM element and the rest are
query functions on the DOM. It's not so easy to come up with a name for
that. Perhaps HeaderAppearance, except that has other connotations. Or
TableSectionBuilder, but we already have one of those.

HeaderBuilder is at least consistent so I'm fine with that.

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode42
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:42:
public interface HeaderCreatorT {
From a type system point of view, Headers are not normally
interchangeable with Footers (and we make sure of this at runtime), so
it's weird that they are the same type. (This is a hack that's okay for
implementation but not so great for a public API.) I would arrange the
type hierarchy like this:

AbstractHeaderOrFooterBuilder

DefaultHeaderOrFooterBuilder
  extends AbstractHeaderOrFooterBuilder
  implements HeaderBuilder, FooterBuilder

That is, each subclass of AbstractHeaderOrFooterBuilder should declare
whether it's a header, footer, or both. These interfaces would be the
same except that one declares buildHeader() and the other declares
buildFooter().

This would be a clearer API when looking at GWT code in google3 because
you could look at all the subclasses of HeaderBuilder to find headers
and all the subclasses of FooterBuilder to find footers.

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode45
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:45: *
Build the entire header table, resetting any state associated with the
How about: Builds the DOM subtree for this header or footer. The root
of the subtree must be a THEAD or TFOOT element, as appropriate. This
method may be called multiple times and should return a new DOM subtree
each time.

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode58
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:58: *
Return the column containing an element.
Given an element in the DOM subtree returned by the most recent call to
{@link #buildHeader}, returns the Column that should be the target of
any button clicks or other events on that element, or null if the events
should be discarded.

(That's assuming that the parameter is only allowed to be one of those
in the subtree. Is that actually true?)

http://gwt-code-reviews.appspot.com/1533804/diff/1/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode66
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:66: *
Return the header containing an element.
, or null if...

Needs context: why do we need to query to find the Header?