Re: How to debug CSS

2011-07-22 Thread Ionuț G. Stan
On Jul/21/2011 18:32, Thomas Broyer wrote: No, but there are workarounds: http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler? (note that setting user.agent or a single locale won't speed up the DevMode, but they are honored anyway, so

Re: login form

2011-07-22 Thread Ionuț G. Stan
Reposting to mailing list. Original Message Subject: Re: login form Date: Thu, 21 Jul 2011 18:56:09 -0700 (PDT) From: Josh josh.e.ander...@gmail.com To: Ionuț G. Stan ionut.g.s...@gmail.com These links touches on it. If your forms are not in the pages HTML then browsers will

Re: gwt-compile issue

2011-07-22 Thread Abhijit Rai
Juan Pablo Gardella gardellajuanpablo@... writes: Can you show the classpath? 2011/6/17 Navindian navind...@gmail.com I have imported working project. It is giving the following error. please let me know asap. Compiling module com.ge.inds.evse.io.EVSEGRI [ERROR] Unexpected

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread Alexander Orlov
What is the advantage of this practice to Thomas' proposal? DefaultUI.ui.xml is missing in your example.I've implemented the DefaultUI.ui.xml manually: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread gawelt
Alex, DefaultUI.ui.xml and SomeSubClass.ui.xml are not needed for anything in that example. You should provide dp.verp.planer.client.ExampleUiBinderWidget.ui.xml and dp.verp.planer.client.SomeSubClass.ui.xml instead, where dp.verp.planer.client. is the JNDI path to your templates (e.g. they

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread gawelt
... and the advantage over the thomas' pattern is that you can incject any UI implementation form outside withouth defining subclass of the widget. and it can be implemented WITH or WITHOUT uibinder or even attached to existing DOM Nodes. - read comments in the example above. -- You received

Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Alexander Orlov
Ok, got your example going... On Jul 21, 5:35 pm, Thomas Broyer t.bro...@gmail.com wrote: (using @UiChild methods to allow adding child widgets when you use it in another ui.xml template) That's basically what I want. Is it also possible to declare some methods abstract to change their logic

Re: gwt-compile issue

2011-07-22 Thread Abhijit Rai
Ok that was stupid !!! The problem is that com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions (JdtCompiler.java:208) is Referring to CompilerOptions which as fate would have it is referencing to the implementation in selenium-server.jar instead of gwt specific implementation. This jar

Aw: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Jens
If you have a custom widget, e.g. MyPanel, you can do something like the following in any other *.ui.xml file: my:MyPanel my:header g:LabelHeader/g:Label /my:header my:footer g:LabelFooter/g:Label /my:footer /my:MyPanel Your Java implementation of MyPanel would then contain

Re: Eclipse Analyzing Sources Slow

2011-07-22 Thread Alex Luya
Same problem here,even reusing old workspace On Jul 22, 6:55 am, gutto thomas.gutteri...@gmail.com wrote: Hi Has anyone ever encountered the analyzingsources stage of an eclipse build taking an inordinately long time? It seems to be required each time I make a change to the dependencies of

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread Alexander Orlov
On Fri, Jul 22, 2011 at 12:29 PM, gawelt tomaszga...@op.pl wrote: ... and the advantage over the thomas' pattern is that you can incject any UI implementation form outside withouth defining subclass of the widget. and it can be implemented WITH or WITHOUT uibinder or even attached to existing

Re: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Thomas Broyer
On Friday, July 22, 2011 1:03:55 PM UTC+2, Alexander Orlov wrote: class SuperClass { // .. static class Layout { // ... // put you @UiField, @UiHandler, etc. here @UiField Button test; } final Layout layout; public

Re: Eclipse Analyzing Sources Slow

2011-07-22 Thread Ionuț G. Stan
I've had the same problem and the times improved a bit after downgrading to Eclipse Helios. It seems there are some problems with Indigo. On Jul/22/2011 14:36, Alex Luya wrote: Same problem here,even reusing old workspace On Jul 22, 6:55 am, guttothomas.gutteri...@gmail.com wrote: Hi Has

RPC RemoteServiceServlet multiple methods

2011-07-22 Thread ph09
Hey, I have got some questions about the RPC. Is it possible to define more than one method in one RemoteServiceServlet? And does this make any Sense? Like this: public class SpeicherServiceImpl extends RemoteServiceServlet implements SpeicherService { /** * */

Aw: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread Jens
Sure you can and its totally fine to do so. Just make sure that all methods are defined in the service interface and in its async interface. The exception you have received indicates that your browser uses some old cached javascript file (so clear your cache and reload the site) or your have

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread Tomasz Gawel
@Alex, When you extend Composite not Widget/UiObject, you init it with initWidget() not setElement - you cannot provide UI implementations that takes use of existing DOM Nodes in html page. without this exception thera no other differences. -- You received this message because you are subscribed

Re: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread swapnil marghade
Mostly u have forgot to declare it in SpeicherService because code u have posted in not showing @Override annotation above 2nd method. On Fri, Jul 22, 2011 at 7:09 PM, Jens jens.nehlme...@gmail.com wrote: Sure you can and its totally fine to do so. Just make sure that all methods are defined

Re: RPC Error: No file found for..

2011-07-22 Thread swapnil marghade
Check ur url pattern it seems incomplete... On Thu, Jul 21, 2011 at 11:21 PM, ph09 ph.hei...@googlemail.com wrote: Hello, sry I am newbie to this Topic. I have searched the whole day for a solution, but I can't find the problem. I've tried a lot, without any bettering. Hope you can help me.

Re: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Alexander Orlov
On Fri, Jul 22, 2011 at 1:22 PM, Jens jens.nehlme...@gmail.com wrote: my:MyPanel my:header g:LabelHeader/g:Label /my:header /my:MyPanel Your Java implementation of MyPanel would then contain methods: @UiChild public void addHeader(Widget w) { //your add logic } Great,

Re: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread ph09
On 22 Jul., 15:39, Jens jens.nehlme...@gmail.com wrote: Sure you can and its totally fine to do so. Just make sure that all methods are defined in the service interface and in its async interface. The exception you have received indicates that your browser uses some old cached javascript file

Re: Question about the API of Validation

2011-07-22 Thread Nick Chalko
On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: As I said in another email I'm working with gwt api validation. Now I'm doing some tests, it is still not allowed the validation of fields belonging to the package java.util with @Valid constraint. Can

Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Karthik Reddy
@Thomas When you say cached for a while could you give an example how this can be achieved. (For example: Do you maintain the time it needs to be cached for, in a separate variable. ) In concept, I am able to understand but the execution details are kinda teasing my mind. -- You

Aw: Re: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread Jens
The code seems fine. Just make sure that your server code matches the client code and it should work. Really seems like a cache problem (clear browser cache, clear project, restart development mode, redeploy the application if you use an external server). I don't know if you already know it,

Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Juan Pablo Gardella
I define an interface in the presenter as mention in http://www.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html 2011/7/22 Karthik Reddy karthik.ele...@gmail.com @Thomas When you say cached for a while could you give an example how this can be achieved. (For example:

gwt file upload

2011-07-22 Thread Dennis Haupt
hi there, i'm trying to upload a file to a servlet using a gwt form. this works fine: public static DialogBox buildFileUploadDialog(final String importLabel, final String serviceToCall) { final DialogBox box = new DialogBox(true, false); final FormPanel form = new

Re: GPE Support for m2e 1.0

2011-07-22 Thread cheleb
There is some rumor ( :) ) about in a near future that GEP will be open sourced, then it will be easier to implement clean m2e support. Until this happen (hopefully soon), I is easy to support compile/i18n/ generateSync and css goals. I've already proposed my (temporary) solution. I've just

Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Thomas Broyer
If you use dependency injection properly, then it'd be done at the moment you getXxxView from your client factory (to use the terms from the GWT articles re. MVP). Instead of: private XxxView xxxView; // singleton public XxxView getXxxView() { if (xxxView == null) { xxxView = new

Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
We have a excel file stored as blob in the database. The user requested to display in the web browser and they can do basic editing for the excel document, such as change the cell, deleting or adding rows, and save the modified excel to the server side. Is that possible to use GWT to program

AbstractDataProvider, JsArray, and java.util.List

2011-07-22 Thread Scott Spyrison
Hello, I've been working on a GWT project that integrates the CellTable widget with remote services that provide JSON data. So far, I have successfully created JavaScript Overlay Types and used the JsonUtils.safeEval method to parse the returned JSON into either an individual JavaScriptObject or

Entity proxy for RequestFactory could not work with CellTable's selectionModel

2011-07-22 Thread Lopakhin
I believe requestfactory and new feature such as cell widget and cell table should be development paradigm to work in tandem, but I found that they might not work as expected, I don't know it's a bug or just I don't know how to use it right. The symptom is when using entity proxy as the T in

Error in ant build

2011-07-22 Thread PetrKostroun
Hi, i try to build GWT project with ant (I use for start source generated by eclise GWT Wizzard), but I get this error [java] [ERROR] Unable to find 'org/heller/build/demo/client/ AntBuildDemo.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

Scrollbar isn't appearing when content goes off the page

2011-07-22 Thread Alexander Zylman
I've got a page written with declarative UIs that has a CellTable. If the data in the CellTable gets long enough that it goes off the bottom of the page, the scrollbar doesn't appear allowing you to scroll down to see it. Is there something special I need to do to make this appear, or is there

gwt eclipse plugin archive ?

2011-07-22 Thread patrick foure
I would like to know if it's possible to download an old release of gwt eclipse plugin ( version 2.2 ) ? I can't ugrade to 2.3 actually . 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

Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Karthik Reddy
Great answer. Made my day. I wish there was a way to rate answers in google groups. (just like stackoverflow). @Thomas You are being a real asset to the community and to also to the product. Just curious. Were you approached by the GWT team with an offer to join their team. Just a

Aw: Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Jens
Couldn't you just implement a provider for a given view in the same way when using GIN? In XxxViewProvider.get() you would do the same as in your getXxxView() method. Doesn't seem that hard but honestly I've never tried it and maybe I'm missing something. -- J. -- You received this message

Re: How to get readyState from GWT Frame object?

2011-07-22 Thread jhulford
I had the same issue and ended up having to write some JSNI to query the frame's readyState every X milliseconds for IE (load event wasn't firing consistently). It's pretty straightforward to do, but I don't have the code any more because there were just too many other IE issues with the iframe

Re: How to get readyState from GWT Frame object?

2011-07-22 Thread Tomasz Gawel
hi, try something like this: (I'm not sure if there is any built in solution but this native patch should work ;) ) public class ReadyStateWatch { public static enum ReadyState { COMPLETE { @Override public String toString() { return complete; }

Re: How to get readyState from GWT Frame object?

2011-07-22 Thread Tomasz Gawel
and sample usage: class UsageExample { public static void useItLikeThat(){ Frame frame = new Frame(http://www.example.com/example.pdf;); new ReadyStateWatch(frame).addReadyStateChangeHandler( new

Re: Question about the API of Validation

2011-07-22 Thread Adolfo Panizo Touzon
Ok. I have two simple class: Person and Email. Also I´m using the api of validation that includes in the gwt-2.4.0, and the configuration of the module is correct (because if I comment the @Valid contraints the code works well). The Person class class has some fields that belong to the java

calling gwt from external client

2011-07-22 Thread fchas
My use case is: I have a gwt application with a mysql db and UI that preforms crud ops on some simple domain objects. One domain object is called a task, it represents some work that is executed by the gwt application. The gwt application will check the db periodically for tasks and run them.

Re: calling gwt from external client

2011-07-22 Thread Jeff Larsen
If the GWT app periodically checks the db for tasks, I don't think you need to do anything to get it to work other than implement your other clients. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Using GNU getText (.po files) to manage the internationalization process

2011-07-22 Thread ialexei
Hi, Our company is looking at using gnu gettext through out the product, due to the availability of abundant tools that work with the .po standard. It seems straight forward to go with the .po files for a pure java swing application and C/C++ pieces of our product. But our WebGUI is built with

Re: center view to any part of html

2011-07-22 Thread Deepak Singh
Any idea pls.. On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi All, I have one html which contains may div elements. Each div element contains different widget. Now based on the user activity i want to show a particular div on the center of screen by just

Re: GWT Developer Plugin for Firefox.

2011-07-22 Thread Jeff Chimene
On 07/20/2011 12:16 PM, Chris Conroy wrote: Agreed these are serious issues facing the FF plugin. For the moment, we're doing a little bit of wait and see to see if this new release strategy (specifically the forced rebuild of all extensions) actually sticks. If it does, we'll certainly need

Aw: Using GNU getText (.po files) to manage the internationalization process

2011-07-22 Thread Jens
Haven't tried it but maybe using http://jsgettext.berlios.de/ along with a custom GWT wrapper using GWT's JSNI feature could work. -- 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

Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-22 Thread Eric Ridge
On Thu, Jul 21, 2011 at 5:22 PM, Darmawan dsuwi...@gmail.com wrote: Looks like it's because the Webkit Plugin API is deprecated in Safari 5.1 ( regardless the OSX version ) ? Can anybody help to confirm this ? Thanks. I don't think that's the case per se. The Plugin API still exists within

Re: center view to any part of html

2011-07-22 Thread VisualFox
Sorry I am not sure I understand what you mean. Are you speaking about layout or some way to control the scrollpane/focus? On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote: Any idea pls.. On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi

Re: calling gwt from external client

2011-07-22 Thread VisualFox
a) want to create a web API - if you just need to populate your db you are free to use whatever technology as Jeff said. If you want to expose some part of the GWT app you may want to check GWT Exporter: http://code.google.com/p/gwt-exporter/ b) you need some server side client and in this case

Re: Can GWT be used to edit excel?

2011-07-22 Thread Kevin Jordan
Unless you're wanting to send it down to the client and get the contents using the File API or similar, just parse it on the server using POI or jExcelAPI and send it to the client via a request and display it in a grid/table on the client. Then after they're done editing it, send their changes

Re: center view to any part of html

2011-07-22 Thread Deepak Singh
No. Not layout. Say, suppose this is the html as follows, div id=a/ div id=b/ div id=c/ div id=d/ And at runtime contents are added to these div. Now, the content of div id=d will be at the lowest position so it may not be visible to the user at first glance, so the user has to scroll down to

Re: center view to any part of html

2011-07-22 Thread VisualFox
Thanks! That make sense. Did ensureVisible can help you there? http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#ensureVisible%28com.google.gwt.user.client.ui.UIObject%29 On Jul 22, 9:24 pm, Deepak Singh deepaksingh...@gmail.com wrote: No.

Re: center view to any part of html

2011-07-22 Thread Deepak Singh
So, how do i get the access to the vertical scrollbar of the browser to acheive this one ? On Sat, Jul 23, 2011 at 1:04 AM, VisualFox mecha...@gmail.com wrote: Thanks! That make sense. Did ensureVisible can help you there?

Re: center view to any part of html

2011-07-22 Thread VisualFox
I see two ways: a) disable the browser scrollbar and have the ScrollPanel filling the full space b) look at the implementation of the ScrollPanel and reimplemented it for fitting your need you can also look for javascript examples (I believe that jquery have this function) On Jul 22, 10:25 pm,

Aw: Re: center view to any part of html

2011-07-22 Thread Jens
I think you can use Window.scrollTo(int left, int top) (http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/Window.html). The top position you want to scroll to can be obtained via DivElement.getAbsoluteTop()

Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
Thanks, Kevin. I am new to GWT. My another question is how easy that will be in GWT to edit the grid/table? Does GWT provide API to do that? When I tried a small program the cell in the table of GWT is not editable. Do you have to put the widget for each cell and customize it to handle the edit

Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
On Jul 22, 2:38 pm, Kevin Jordan ke...@kjordan.net wrote: Unless you're wanting to send it down to the client and get the contents using the File API or similar, just parse it on the server using POI or jExcelAPI and send it to the client via a request and display it in a grid/table on the

Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
On Jul 22, 2:38 pm, Kevin Jordan ke...@kjordan.net wrote: Unless you're wanting to send it down to the client and get the contents using the File API or similar, just parse it on the server using POI or jExcelAPI and send it to the client via a request and display it in a grid/table on the

GWT and Guice

2011-07-22 Thread Christopher Piggott
Hi, I set up a com.google.web.bindery.requestfactory.shared.ServiceLocator but I really would like to have it create the instances via guice. Unfortunately, I'm not the guy who creates MyServiceLocator - that happens somewhere behind the scenes, as a result of for example: @Service(value =

Aw: GWT and Guice

2011-07-22 Thread Jens
Have you seen: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory ? Maybe thats what you are looking for. -- 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

Re: GWT and Guice

2011-07-22 Thread Christopher Piggott
No, I hadn't seen that ... thanks, and sorry for the noise. On Fri, Jul 22, 2011 at 6:08 PM, Jens jens.nehlme...@gmail.com wrote: Have you seen: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory ? Maybe thats what you are looking for. -- J. -- You received this message

How can i write a javascript library in GWT ?

2011-07-22 Thread Saeed Zarinfam
Hi guys, I want to develop a shared library so that the team member can call its method in JavaScript. how can i do that ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Load compiled GWT module in a GWT application !

2011-07-22 Thread Saeed Zarinfam
Hi guys, I know this is a strange question but i have this problem in a real project. We are developing a container (e.g. gadget container) using GWT and also we want to have a GWT project per our module (modules load with container at run-time) : 1- we have a shared GWT project that every module

Re: calling gwt from external client

2011-07-22 Thread Saeed Zarinfam
Hi You can write web service for task creation operation and then call web service from out side of the application for creating task. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-22 Thread Jeff Schnitzer
It's not a Lion issue - Safari 5.1 is the latest upgrade on 10.6.8, and it breaks as well :-( Jeff On Fri, Jul 22, 2011 at 11:15 AM, Eric Ridge eeb...@gmail.com wrote: On Thu, Jul 21, 2011 at 5:22 PM, Darmawan dsuwi...@gmail.com wrote: Looks like it's because the Webkit Plugin API is

Re: Error in ant build

2011-07-22 Thread Saeed Zarinfam
Hi, Please describe more. Which target do you run? What is complete error message? -- 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,

[gwt-contrib] Introducing a new CellTableBuilder API, which allows users to customize the structure of a CellT... (issue1501803)

2011-07-22 Thread jlabanca
Reviewers: pengzhuang_google.com, Description: Introducing a new CellTableBuilder API, which allows users to customize the structure of a CellTable by building zero or more table rows per row value and adding zero or more Cells per TD. The table rows are built using the generic ElementBuilder