Re: Bindery package refactoring?

2011-09-01 Thread Ed Bras
> 2.3.0 does not have LegacyHandlerWrapper. Mine does. In the gwt-user-2.3.0.jar I find: com.google.gwt.event.shared.LegacyHandlerWrapper I also made a public copy of this such that I could use it, as I changed low level gwt things such that I can test it outside of GWT.. See: http://code.google.c

Re: custom tabs

2011-09-01 Thread Alexandre Ardhuin
Hi, You can use CSS to do this .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab { background-color: #123456; } .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab-selected { background-color: #654321; } Alexandre 2011/9/1 nf...@pevco.com > I'm using TabLayoutPanel and would like to customize the ta

Re: How to exclude JUnit test files to be converted to javascript inside /src/test/java/ folder when the Project is using Maven.

2011-09-01 Thread Andrew Hughes
Maven should not even allow you project to compile if that is the case. Dev mode might still run. Try mvn install . If that fails you prob have an import/reference to a test in you main src code. Post results back. On 01/09/2011 7:06 AM, "Jason Pack" wrote: > In your gwt.xml file, you can use o

Re: Why doesn't my custom widget work in chrome but perfectly in firefox?

2011-09-01 Thread Ingert Doe
Did you actually test that? Becouse I get the same problems, mouse over works but mouseout won't fire in chrome.. On Aug 30, 4:33 pm, Sudhakar Abraham wrote: > Use MouseMoveHander and MouseOutHandler  instead of > MouseOverHandler,MouseOutHandler. See the following code. Hover the > cursor to the

Re: GWT Date 'week of year' and 'day of week' problem

2011-09-01 Thread md
Thanks geert3 for your answer, and sorry for my late reply! I didn't found something helpfull and made (in the end) a workaround with a GWT RPC... so let the server do the stuff. Definetely not a good solution, but it works. Thanks alot for your help! On 23 Aug., 21:10, geert3 wrote: > Ther

Re: Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

2011-09-01 Thread Magno Machado
For curiosity, why would I use this if I can already develop desktop apps with Java? On Wed, Aug 31, 2011 at 11:52 PM, Alfredo Quiroga-Villamil < alfr...@emitrom.com> wrote: > Titanium Java Desktop Development with GWT4TiDesktop is almost HERE! > > http://www.emitrom.com/comment/4#comment-4 > > S

how to gwt value of radio button from ui binder

2011-09-01 Thread Sanjay Jain India
Lets say I have three radio buttons belonging to a group. Upon some event, I would like to retrieve the value of the radio button selected in my UiBInder class. One possible approach, I guess, is to declare a ui:field for each of the radio buttons(like in the example below) and thus retrieve the

Re: Click Listener on CellTableRow

2011-09-01 Thread Foermchen82
You retreive the item by using the currentSelectedItem. But on click, the row is actually not selected. So you will get the Item of the previous selected row. Is there not "normal" way for handling a click on a row of a celltable? On a flex table there is a "addTableListener" method. but this is d

Re: Click Listener on CellTableRow

2011-09-01 Thread Thomas Broyer
Can't you simply respond to SelectionChangeEvent-s instead? -- 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/-/qL10g9zOhWkJ. To post to this group,

Re: Funny behaviour in CellTable.

2011-09-01 Thread jsg
Yes, the critical call which makes it work in your last example is the dataProvider.setList() . This seems to me to be unintuitive because the whole notion of a provider and view is that when your model changes, the provider is informed and updates the views accordingly. Here not only does the pro

Re: How to cache DTD in Eclipse for GWT 2.0

2011-09-01 Thread reda ABDI
Eclipse still freeze and is slow to give suggestions. -- 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/-/dFekoRrVwPAJ. To post to this group, send

Re: Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

2011-09-01 Thread Alfredo Quiroga-Villamil
Hi Magno, Bom Dia! There are a few differences with this approach: 1. You are developing with GWT4TiDesktop using Java and GWT with Titanium Desktop under the hood. The application you are creating initially is no different than if you had been writing a regular RIA web application. You have acce

Re: GWT Date 'week of year' and 'day of week' problem

2011-09-01 Thread Tom Carchrae
For day of the week, you can use DateFormat. For week of the year, you could look at the gap from Jan 1 to the date, look at the difference and then adjust to ensure you are counting weeks. Java Date is a mess. An abomination. But Calendar was even worse and you'd never use it in performance co

Re: Manipulate a section in the html page

2011-09-01 Thread Jeffrey Chimene
On 8/31/2011 7:59 PM, Kevin Courtney wrote: Jeff& Thomas, Thanks to both of you, both of your solutions work great. Jeff, from what I've played with it so far, I tend to agree with you that I'll want to use a GWT widget to display to the user the final output instead of this HTML in my home pa

Sorting CellTable data server-side

2011-09-01 Thread fabio.bozzo
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend via RPC calls. All right now! :-) Then I want to sort columns, so I read http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting The Async Remote sorting sections shows very well how to

Iframe events

2011-09-01 Thread noach
I am using a native event previewer to detect if the user has pressed certain keys. However, part of my interface contains an iframe displaying another page. If the user has clicked inside the frame, key presses events aren't previewed. Is there a way I can get the iframe to foward events back to m

access local executable

2011-09-01 Thread pipehappy
Hi, all I'm a latex user and once come across the latexlab project which use gwt as its foundation. The apps contains a feature that can use local installed executable (in latexlab case, it claims it can use local install miktex. Though the apps shown on its site doesn't have this feature function

Re: Sorting CellTable data server-side

2011-09-01 Thread Thomas Broyer
That's probably the reason behind this recent change: http://code.google.com/p/google-web-toolkit/source/detail?r=10487 -- 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/

Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Blackberet
thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/m2wqarKYDL8J. To post to this group, send email to google-web-toolkit@googlegroups.com. T

No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi, I am new to Java and GWT. I am trying to parse a xml, which I have written as stringbuilder. 1) I tried using XMLParser.parse(xmlstring); but it gave a DOMException tat string is crossing max length. Is there any way to work around this. 2) I used DocumentBuilderFactory ... the code is as fo

Seperating the hosting of the client and server

2011-09-01 Thread Sander Smith
I'm trying to seperate the client side of my GWT app (the JS files) from the server side by hosting them in different places. So the static JS is at www.host1.com and the Java web app stuff is at www.host2.com. To communicate, I simply pass the fully qualified URL (http:// www.host2.com/...) into s

Re: Extra Outer ScrollPanel in Firefox

2011-09-01 Thread leslie
A beautiful thing happens. The extra scroll bars go away and the ListBox contains it's own vertical scroll bar which functions in the expected and desired way. Great stuff. Michael I thank you very much. This is a big help to me. On Aug 31, 11:53 pm, Michael Allan wrote: > > ListBox list = new

Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Paul Robinson
For anything going over the wire via RPC, yes. For anything that stays within the client, it doesn't matter. -- 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 unsu

Re: Seperating the hosting of the client and server

2011-09-01 Thread Thomas Broyer
On Thursday, September 1, 2011 6:07:23 PM UTC+2, Sander Smith wrote: > > I'm trying to seperate the client side of my GWT app (the JS files) > from the server side by hosting them in different places. So the > static JS is at www.host1.com and the Java web app stuff is at > www.host2.com. > T

How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
Presenter: public interface Display { HasText ageTxtBox(); HasClickHandlers incrementButton(); } View implements Presenter.Display interface: @UiField Button incrementButton; @UiField TextBox ageTxtBox; @Override public HasText ageTxtBox() { return ageTxtBox; } @Override publi

How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
Presenter: public interface Display { HasText ageTxtBox(); HasClickHandlers incrementButton(); } View implements Presenter.Display interface: @UiField Button incrementButton; @UiField TextBox ageTxtBox; @Override public HasText ageTxtBox() { return ageTxtBox; } @Override publi

Changing image data of a canvas has not effect

2011-09-01 Thread omar.belkhodja
The following code has no effect. Any idea why ? ImageData imageData = context2d.getImageData(0, 0, 100, 100); for(int j = 0; j < 100; j++) for(int i = 0; i < 100; i++) imageData.setRedAt(255, i, j); Thanks, Omar -- You received this message because you are subscribed to the Google Groups "G

[ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Grzegorz Kossakowski
Hello, I'm excited to announce first milestone of Scala+GWT project. Download (and then follow README instructions) from here: http://goo.gl/Ym3xU Release notes (included below) can be found here: http://goo.gl/H8san Scala+GWT 0.1-M1 The first official milestone release from

Re: Requestfactory : best practice for persisting updates with Locator

2011-09-01 Thread Dominik Steiner
Perhaps a small test case might better explain what problem i'm facing with the delta's send from request factory to the locator class (the fire() method is in order to do synchronous testing of the requests sent) @Test public void testPersistAndUpdate() throws Exception { Some

Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread Thomas Broyer
I'd highly encourage you to use the pattern from the "MVP - part 2" article from the GWT doc, where the presenter itself implements an interface that the view calls back, rather than exposing the view through HasXxxHandlers and the like. It makes mocking so much painful! (having to mock HasXxxH

Aw: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Jens
In general you can only use Java classes on the client side (everything that is in your client and shared package) listed in: http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html So you can not use most of the classes in your code on client side. You have to: - use XMLP

Re: [gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Ray Ryan
Woo hoo! On Thu Sep 01 09:26:47 GMT-700 2011, Grzegorz Kossakowski wrote: > Hello, > > I'm excited to announce first milestone of Scala+GWT project. > > Download (and then follow README instructions) from here: > http://goo.gl/Ym3xU >

Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
My ListBox is inside a custom composite widget I have created. I am using this widget in my different views in my application. Just to elaborate more on this widget which I created, it is a Dialog Box which has Left ListBox and Right ListBox. There are 4 buttons on the center which allows to move

Re: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi I tried using XMLParser as u suggested. But getting this error. The code is public void onModuleLoad() { xmlstring = callquery.xmlget_capabilities(); System.out.println(xmlstring); System.out.println(xmlstring. length()); xmldoc = XMLParser.parse(xmlstring); *

Re: Access static file from onModuleLoad() method

2011-09-01 Thread AThinerCoin
Thank you for your help. This helped me get my source code to find my config.xml file. For anyone else who has a similar problem, I also had to make a request for the file, then use the "getText" method, then I could read the file. I could not just use the file based on the file's path. See

Why doesn't HasScrollHandlers extend HasHandlers?

2011-09-01 Thread Jim Douglas
This feels like a dumb question. Is this an oversight, or is there a reason why HasScrollHandlers is the only Has.*Handlers interface that does not extend HasHandlers? http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/event/dom/client/HasScrollHandlers.html http://www.google

Re: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi I tried using XMLParser as u suggested. But getting this error. The code is public void onModuleLoad() { xmlstring = callquery.xmlget_capabilities(); System.out.println(xmlstring); System.out.println(xmlstring.length()); xmldoc = XMLParser.parse

Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
I think I got it what you saying. I got caught up with MVP-Part 2 in terms of activities and places and kind of lost the major understanding of what it is ultimately trying to tell you to avoid HasXxxHandlers. So I have one question here.. If my presenter implements the interface which view calls

Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread Thomas Broyer
It won't; it only talks to the view through the Display interface (or possibly if it's really complex, through sub-objects, but try as hard as possible to keep them seen as interfaces or mockable objects –i.e. objects that you can extend to remove all JSNI dependency– or you'll need a, sluggish

Re: Access static file from onModuleLoad() method

2011-09-01 Thread kim young ill
it's running in browser, so u have to access it via http, the servers filesystem is not available On Thu, Sep 1, 2011 at 8:01 PM, AThinerCoin wrote: > Thank you for your help. This helped me get my source code to find my > config.xml file. > > For anyone else who has a similar problem, I also

mailto: links in Google Chrome

2011-09-01 Thread melody
I am trying to implement mailto: links in my application. When I use the mailto: link with the target attribute as shown below, the browser opens the email program fine but closes my GWT program by moving the browser to about:blank page. Send Email The same link works fine in Firefox without clos

Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Blackberet
But does the GWT compiler generate extra code to convert from Map to HashMap? -- 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/-/1RKYvmZcCV4J. To

Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Colin Alworth
In general the compiler will select the most specific type it can - if you write Map map = new HashMap(); it will change that to HashMap map = new HashMap(); as it is clear that the object can only be a HashMap at that location. In other cases it may not be able to make that promotion, but there

Re: Inherited exceptions in GWT-RPC

2011-09-01 Thread Colin Alworth
On Thursday, August 25, 2011 3:09:22 PM UTC-5, Ryan wrote: > 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. > This is the key to your issue - if the client can't de-serialize it (because the

Locking bottom panel of SplitLayoutPanel to bottom of viewing area

2011-09-01 Thread Rike255
The basic design of the page I'm building is a SplitLayoutPanel with a north and center panel. The north panel has the "body" of the page (TabLayoutPanel and ScrollPanel) and the center panel holds a HorizontalPanel with textbox+buttons. What I'm trying to do is have the page load with the center

Re: mailto: links in Google Chrome

2011-09-01 Thread karim duran
Hi Melody, In my opinion you shouldn't use target attribute with an email link. Target attribute tells the browser how it should manage the link (e.g in the same window, in the parent window, in a new window). It's appropriate for Web browsing, not for email. When the browser meet a email link ma

Re: JFileChooser

2011-09-01 Thread IHateSoda
Thanks. But with the FileUpload widget, You can just browse a file. I want to select a folder (no file) and get the full path. On Aug 31, 5:38 pm, Jim Douglas wrote: > http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g... > > On Aug 31, 4:17 pm, IHateSoda wrote: > > > > >

Re: JFileChooser

2011-09-01 Thread Jim Douglas
Not possible. http://www.google.com/search?q=fakepath On Sep 1, 4:05 pm, IHateSoda wrote: > Thanks. > > But with the FileUpload widget, You can just browse a file. > > I want to select a folder (no file) and get the full path. > > On Aug 31, 5:38 pm, Jim Douglas wrote: > > > > > > > > >http://g

Re: JFileChooser

2011-09-01 Thread IHateSoda
and with flash solution, java applet solution or others ? already tried with java applet, not successful. On Sep 1, 4:10 pm, Jim Douglas wrote: > Not possible. > > http://www.google.com/search?q=fakepath > > On Sep 1, 4:05 pm, IHateSoda wrote: > > > > > > > > > Thanks. > > > But with the FileUpl

GDDBR11

2011-09-01 Thread Alisson Prestes
Hi, Is anybody from this list coming to Google Developer Day Brazil this year? Alisson Prestes www.google.com/profiles/javalisson -- 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@goo

Editor and RequestFactory

2011-09-01 Thread Brian Chapman
I have a question about using the RequestFactoryEditorDriver. I am trying to use the editor with request factory on the client side. On the server side I am using Objectify which is modeled after the listWidgetexample. I have a ProjectRequest class (impleme

Re: GDDBR11

2011-09-01 Thread Magno Machado
I'm likely to go, but not sure yet On Thu, Sep 1, 2011 at 9:45 PM, Alisson Prestes wrote: > Hi, > > Is anybody from this list coming to Google Developer Day Brazil this year? > > Alisson Prestes > www.google.com/profiles/javalisson > > -- > You received this message because you are subscribed to

Re: Conditional CSS & Updates

2011-09-01 Thread rth
Submitted as Issue 6754. http://code.google.com/p/google-web-toolkit/issues/detail?id=6754 On Aug 31, 3:21 pm, Rylan wrote: > +1 -- 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@goo

Re: Bindery package refactoring?

2011-09-01 Thread Michael Allan
Ed Bras wrote: > > 2.3.0 does not have LegacyHandlerWrapper. > Mine does. In the gwt-user-2.3.0.jar I find: > com.google.gwt.event.shared.LegacyHandlerWrapper I guess it's just missing from the API docs, then. M -- You received this message because you are subscribed to the Google Groups "Goog