Re: How to format custom TreeItems with images?

2012-03-26 Thread Jim Douglas
Not sure if this helps, but here's the skeleton for my TreeItemRenderer: public class TreeItemRenderer extends HorizontalPanel implements HasText { private final Image image = new Image(); private final HTML label = new HTML(); public TreeItemRenderer() { setVerticalAlignm

Re: Using a widget / module / entry point from another separate project

2012-03-26 Thread Steve Moyer
That's not quite how it works ... your first project should produce a JAR file that includes both the compiled classes AND the source files. You'll include this library in your second project and GWT will compile IT ALL from scratch in the second project. smoyer -- You received this message bec

Re: Upload base64

2012-03-26 Thread Steve Moyer
What on the server is accepting the image you want to send it? I think it's dangerous to be writing into your war folder so you should have a work directory somewhere else. And if the servlet can write the image there, you can also let the servlet read the image when you want to access it. smoye

RequestFactoryEditorDriver and multiple saves/persists

2012-03-26 Thread Rob Whiteside
Hi, I'm using RequestFactoryEditorDriver to drive my editor. In this case, the editor is displayed and the user may make some changes, hit save, make some more changes and hit save again. All the while the same editor is shown. When the user clicks the save button, I do a driver.flush().fire(

How to use HorizontalPanel#setVerticalAlignment() ?

2012-03-26 Thread dhoffer
GWT 2.4. Why are VerticalAlignmentConstant fields package private in HasVerticalAlignment and constructor is private? This makes it impossible to use in other packages such as HorizontalPanel#setVerticalAlignment() or am I missing something? -- You received this message because you are subscrib

RequestFactory default wire format specification

2012-03-26 Thread Miroslav Genov
Hello, Does anyone knows where there is a specification of the wire format which RF is using by default ? Regards, Miroslav -- 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.googl

Re: How to format custom TreeItems with images?

2012-03-26 Thread dhoffer
Jim, I'm trying to replace with a HorizontalPanel that contains 3 widgets but I'm running into problems. 1. It's not possible to call setVerticalAlignment because the input parameter has no public values so I'm calling DOM.setStyleAttribute(td1, "verticalAlign", "middle") on each widget added to

RequestFactory with JsonRpc

2012-03-26 Thread Miroslav Genov
Hello, Was wondering where anyone is using RequestFactory with JsonRpc ? I'm trying to get it working, due performance issue with the standart serialization of RF, but the RfValidator complains with: "The type JsonRpcRequestContext must be annotated with Service, ServiceName, or JsonRpcServic

Re: Cannot change CSS in dev mode

2012-03-26 Thread Joseph Lust
It works fine for me. Just double checked using Eclipse and the WepApp launcher in *DevMode*. If I change CSS in a CSS file, it appears in Firebug after an F5. Now, if you are running in DevMode, but not starting services, rather passing the services through to an active Tomcat, then all static

Re: How to pass data to a servlet

2012-03-26 Thread Blake McBride
Thanks for the reply. I suppose I'll have to drop my current approach and move to RPC. On Mon, Mar 26, 2012 at 11:52 AM, Chris Price wrote: > JSONP uses script tags to permit the cross-domain call [1], AFAIK a > script tag can't make a POST request so you're stuck putting the data > in the URL.

Re: How to pass data to a servlet

2012-03-26 Thread Chris Price
JSONP uses script tags to permit the cross-domain call [1], AFAIK a script tag can't make a POST request so you're stuck putting the data in the URL. [1] http://en.wikipedia.org/wiki/JSONP On Mon, Mar 26, 2012 at 4:13 PM, Blake McBride wrote: > Greetings, > > I am using JsonpRequestBuilder to ca

GMail authentication with GWT + GAE - works in development but fails in production

2012-03-26 Thread Deepak Singh
Hi All, I am authenticating my users through GMail login in GWt + GAE environment. Code is as follows: GWT code: final Frame frameForGmail = new Frame(); final Image gmailIcon = Image.wrap(Document.get().getElementById("gmailIcon")); final DialogBox loginPopUp = new DialogBox(true, false); gma

FF11 plugin via http://gwt.google.com/missing-plugin/MissingPlugin.html

2012-03-26 Thread Andrew Scully
I appreciate that an updated plugin has been provided by Alan Leung via this forum, but currently the official link still shows: Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 10.0 at present Any idea when it will become available via this method? Cheer

Re: RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
Thx again, your hint simplified my code a lot! On Monday, March 26, 2012 4:22:27 PM UTC+2, Thomas Broyer wrote: > > > > On Monday, March 26, 2012 4:18:19 PM UTC+2, Alexander Orlov wrote: >> >> On Monday, March 26, 2012 1:49:59 PM UTC+2, Thomas Broyer wrote: >>> >>> The private field storing the Le

How to pass data to a servlet

2012-03-26 Thread Blake McBride
Greetings, I am using JsonpRequestBuilder to call a different server to get data. It works fine. I can't see anyway of passing data from GWT client to the Java servlet. It is important to me not to pass the data as part of the URL. I'd like to receive the data on the servlet side as part of th

Re: Can't pass data using JsonpRequestBuilder

2012-03-26 Thread Blake McBride
Thanks. That was a big help. Ultimately, I am trying to pass XML. The following worked for me: Client: public void onClick(ClickEvent event) { JsonpRequestBuilder jsonprb= new JsonpRequestBuilder(); jsonprb.requestString("http://localhost:8084/Arahant/GWTServlet";, new AsyncCallback() {

Re: RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Thomas Broyer
On Monday, March 26, 2012 4:18:19 PM UTC+2, Alexander Orlov wrote: > > On Monday, March 26, 2012 1:49:59 PM UTC+2, Thomas Broyer wrote: >> >> The private field storing the LeafValueEditor's values is only >> initialized in edit(), so in your case you have to call edit() again from >> your onSuc

Re: RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
On Monday, March 26, 2012 1:49:59 PM UTC+2, Thomas Broyer wrote: > > The private field storing the LeafValueEditor's values is only initialized > in edit(), so in your case you have to call edit() again from your > onSuccess. > Thx, for the clarification in respect to *isDirty(). *In fact isDirt

Re: 1 permutation to rule them all

2012-03-26 Thread Stefano Ciccarelli
I think you should read this: https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsDeferred 2012/3/26 dmen > GWT has a fundamental architecture flaw. It should not be necessary to > co

Re: Code Coverage : How to configure cobertura and selenium with Gwt Client project for code coverage

2012-03-26 Thread Thomas Broyer
On Monday, March 26, 2012 2:47:49 PM UTC+2, Sun Raise wrote: > > Hi, > > I am using GWT client side project. > > I am interesting selenium automated test case in my project. > > For code coverage i want to use cobertura. > > > How to configure these 2 tools in gwt client ? > > Its it possibl

1 permutation to rule them all

2012-03-26 Thread dmen
GWT has a fundamental architecture flaw. It should not be necessary to compile the whole code base more than exactly once. Deferred binding is great for implementing algorithms dynamically. For I18N is obviously wrong IMO. Thankfully that can be avoided. Ideally only a thin DOM abstraction layer sh

Code Coverage : How to configure cobertura and selenium with Gwt Client project for code coverage

2012-03-26 Thread Sun Raise
Hi, I am using GWT client side project. I am interesting selenium automated test case in my project. For code coverage i want to use cobertura. How to configure these 2 tools in gwt client ? Its it possible or not ? Thanks -- You received this message because you are subscribed to the Goog

Re: Cannot change CSS in dev mode

2012-03-26 Thread Peter Radkov
Andrey writes: > > When running GWT app in dev mode static web resources such as css- > files cannot be changed. > To change a line in css I must stop server, change and run again. > That's really inconvenient. > > Is there any workaround? > > Thanks! > I am observing the same exact behavio

Re: GWT Dev plug-in for Firefox 11

2012-03-26 Thread tdk
> On Monday, March 19, 2012 6:43:57 PM UTC-4, Alan Leung wrote: >> >> This is a rebuild with for everything including windows: >> http://acleung.com/gwt-dev-​plugin-ff11.xpi >> > works great for me on Windows 7 x64, thanks Alan! -- You received this

Re: getUrl does not return image.

2012-03-26 Thread dodo dard
You should give more info about this problem, what is not working is unclear to me. Regards, Bowie = www.html5bydemo.com Le dimanche 25 mars 2012 00:01:18 UTC+1, stymie a écrit : > > I have the following code and it does not seem to be working. Not sure > what the trouble might

RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
I followed the Editor example using RequestFactoryEditorDriver for RF-driven persistence. But it doesn't work for me. When I call * * *public class EmployeeEditor extends Composite implements Editor * the model data is

Re: Can't pass data using JsonpRequestBuilder

2012-03-26 Thread Thomas Broyer
Your server sends an array with a single item being an element with a "Hello" property, so your client code should use an AsyncCallback> where X is some JavaScriptObject subclass with a JSNI method getting the "Hello" property class X extends JavaScriptObject { protected X() { /* required b

Re: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2012-03-26 Thread Magallo
It works! Yes, I have to admit that's a little weird. It is definitely a workaround and not a 'feature', but it works! Thanks a lot! If you find a real, good solution, anyway, please let me know. On Monday, March 26, 2012 10:30:17 AM UTC+2, Magallo wrote: > > I have the exact same problem. Did y

Re: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2012-03-26 Thread Magallo
I have the exact same problem. Did you solve the problem in another way? Anyway I will try the workaround you suggested here... On Tuesday, December 6, 2011 9:19:49 PM UTC+1, koma wrote: > > Ok > > this seems to fix it > > @UiHandler("tabLayoutPanel") > public void onClick(SelectionEvent<​Intege