Re: Places Activities - best practice of asynchronous data loading

2012-02-09 Thread Thomas Broyer
On Wednesday, February 8, 2012 12:57:22 PM UTC+1, Zdenek wrote: Am I really violating MVP design with the callbacks? I'd say yes (at least it probably makes things harder to unit-test, which is one of the reasons to use MVP int he first place). Now the question is whether it's a real

Re: unexpected padding under canvas element

2012-02-09 Thread Philippe Lhoste
On 08/02/2012 15:03, Chris Price wrote: Another alternative which fixes the root cause of the issue, is to call - canvas.getCanvasElement().getStyle().setDisplay(Display.BLOCK); The problem is that the canvas display mode is inline, which causes strange alignment issues like these (strange

Re: MVP framework

2012-02-09 Thread Thomas Broyer
You could simply use a boolean field updated by start(), onStop() and onCancel(). In our case, we store the AcceptsOneWidget in a field on start() and set the field to 'null' in onStop() and onCancel(). -- You received this message because you are subscribed to the Google Groups Google Web

Re: MVP framework

2012-02-09 Thread Thomas Broyer
On Thursday, February 9, 2012 1:39:10 AM UTC+1, dparish wrote: Thomas, I'm working on restructuring AppActivityMapper so that I inject in the Activities. My reasoning for the static injector was it kept me from having gigantic constructor arguments. If AppActivityMapper has 30

Re: Dates and SafeHTML

2012-02-09 Thread Thomas Broyer
You have the choice to skip sanitization if you trust the value: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/safehtml/shared/SafeHtmlUtils.html#fromTrustedString(java.lang.String) -- You received this message because you are subscribed to the Google Groups Google

if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread tong123123
in gwt.xml module rename-to='als' and in service, write a function @RemoteServiceRelativePath(search) then in web.xml servlet-mapping url-pattern/als/test/url-pattern /servlet-mapping compile, als folder under war run the application cannot be run. then delete the rename-to attribute in

Re: if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread Jens
You also have to update your host html page which references your module-name.nocache.js file. -- 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: if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread tong123123
On Feb 9, 6:47 pm, Jens jens.nehlme...@gmail.com wrote: You also have to update your host html page which references your module-name.nocache.js file. -- J. Great!! this solve the problem!! thanks -- You received this message because you are subscribed to the Google Groups Google Web

Re: GWT: Google Map in firefox only randomly working

2012-02-09 Thread Steve Moyer
A 304 HTTP status code is supposed to tell the browser that it can reuse its cached versions of those resources. I think shift-reload still forces the new ones to be obtained but you have to ask why the browser is sending ETag information for resources it apparently doesn't have. -- You

Re: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread divStar
Hi, the event-argument you get contains a getColumn()-method, which in turn returns a Column?,?-object. You can use this to find the column the user has clicked. I use a custom Column-class, that itself keeps a name. This way I can cast the column-object into the class I have created, that has a

Re: How to hide a column in CellTable

2012-02-09 Thread divStar
Adding and removing the column is - IMO - a bad idea. As far as I understood there'll be an easier way to add styles to columns in GWT2.5. However at the moment I've implemented a workaround that works for me - with some limitations:

Re: changing pages in GWT

2012-02-09 Thread divStar
I'm not too experienced, even though I'm using GWT for about 2 years now. My understanding is that you might want to look into Activities and Places. I myself solved this in a different manner. Once the user logs in with username and password, I verify it (and display a loading-circle meanwhile)

DataGrid IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
The code below shows a table in the center of a DockLayoutPanel. If you run this code you'll see that the header is not aligned with the data when the horizontal bar shows up. If there's no scrolling then the header is aligned correctly. Tested with GWT2.4 on IE8 Windows7 and IE7 WinXP With

Re: Dates and SafeHTML

2012-02-09 Thread Patrick Tucker
I realize that, I was just thinking a class that can be appended directly to a SafeHtmlBuilder would be convenient. Something like SafeHtmlString but SafeHtmlDate? Thanks, Pat On Feb 9, 5:28 am, Thomas Broyer t.bro...@gmail.com wrote: You have the choice to skip sanitization if you trust the

Re: Dates and SafeHTML

2012-02-09 Thread Patrick Tucker
Now that I have looked a little more into it, something like this would produce the same result without adding another class to GWT. public static SafeHtml fromDate(Date date, String pattern) { return new SafeHtmlString(DateTimeFormat.getFormat(htmlEscape(pattern)).format(date)); }

RaphaelGWT

2012-02-09 Thread Sandip Chauhan
Hi Can someone please tell me a link to the complete setup sample example on raphaelGWT? Also how to compile the code and testing it on the browser? -Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email

code splitting in abstract class

2012-02-09 Thread aim
Hi! In my current GWT project I have abstract class and many subclasses of it and they depends on other heavy parts of application. I need split somehow all parts that depends on each inheritor but I can't add manually GWT.runAsync in childs. Can I declare something in abstract class to tell

Re: gwt root panel presenter question

2012-02-09 Thread hua....@autodesk.com
Maybe you can use a singleton/static class to store all these values that need to be accessed cross classes? On 2月9日, 上午10时29分, Joshua Carey jc11...@gmail.com wrote: I am new to gwt and I have followed the examples on gwt page to create a simple (3 tabbed) gwt project. In my root panel view

Am I able to write a panel that likes DockLayoutPanel with scroll bar

2012-02-09 Thread linhua
What I want to do is: Currently, I can only add scroll panel inside the center part of DockLayoutPanel. I want all the parts of DockLayoutPanel share a scroll bar. If can do, how to implement a such class? Which class should I extend and what interfaces should be implemented? -- You received

Questions about GWT Layout mechanism

2012-02-09 Thread linhua
1. If I resize a DockLayoutPanel, then which method in DockLayoutPanel will be called to redo layout? 2. Here is my case: MyOwnScrollPanel contains DockLayoutPanel (in center) contains another DockLayoutPanel. (We call it panel2) I override the onResize() method in MyOwnScrollPanel, it sets its

Re: Gwt 2.4 DialogBox close-icon

2012-02-09 Thread Patrick Tucker
You have to construct it with your own caption widget. http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/DialogBox.html#DialogBox(com.google.gwt.user.client.ui.DialogBox.Caption) It would be nice if there was a better solution, but this is better than

Re: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread vaibhav jain
thanks for your suggestion i am using like below: ColumnT, String col = (ColumnT, String) event.getColumn(); int index = dataGrid.getColumnIndex(col); //contains the column name list columnList = VO.getColumns(); String columnName

Re: gwt root panel presenter question

2012-02-09 Thread Joshua Carey
I'm a little confused how it all works. But basically when looking at a given tab (screen) the rootpanelpresenter is also displayed across the top of the screen. And on other tabs if you change a value in the dropdown list from the rootpanelpresenter, it also updates the values displayed on the

Re: gwt root panel presenter question

2012-02-09 Thread Joshua Carey
I'm a little confused how it all works. But basically when looking at a given tab (screen) the rootpanelpresenter is also displayed across the top of the screen. And on other tabs if you change a value in the dropdown list from the rootpanelpresenter, it also updates the values displayed on the

Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
I have a Map in a domain object and I'd really like to pass it through RequestFactory. RF doesn't do Maps, so I now generate a List of KeyValue in a getter in my domain object and they have KeyValueProxy equivalents on the client side. It seems that RF bypasses the getter when populating the

Re: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Thomas Broyer
Have you referenced the property in a .with() on your request on the client-side? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this

Re: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
No, I hadn't! Simple solution, fixed. I've been on that page all day but missed that! Thanks Thomas, Richard -- 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: RaphaelGWT

2012-02-09 Thread Sebastian Gurin
you have all information bout how to get started using raphaelgwt in its wiki: http://code.google.com/p/raphaelgwt/wiki/GettingStarted Also, if you are just getting started with your project, check out my new project raphael4gwt, that I think it supports 100% of the raphaeljs API in java.

Is it bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread Drew Spencer
Hi coders, Hopefully the subject explains the question enough but here's a bit of background. I have been using events for pretty much everything, but while searching for a better way than using ButonCell in my CellTable, I discovered that using SafeHtml I could generate an anchor with a

Can't transfer Java Object between different windows with JSNI

2012-02-09 Thread Luiz Mineo
While working on a feature to an app, that is similar to one found on gmail, where you can move a gtalk chat to another window, I found some problems concerning JSNI and child windows. Basically, JSNI works as expected with objects and functions from another window, except when it involves

Re: ff10 gwt dev plugin x86

2012-02-09 Thread Jim Douglas
Thanks, Alan! Looks good in Mac OS X Snow Leopard. Looks like we're ok now until March 13th. Now if only Mozilla can resist the urge to stop breaking things with every new release. https://wiki.mozilla.org/Releases On Feb 8, 11:17 am, Alan Leung acle...@google.com wrote: The new plugin is

Re: Is it bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread KevMo
If you're just passing an ID, I think just using links is a lot better than making events and listening for them. If you're passing an entire object, then events are probably better to keep you from making another call to the server. I personally prefer links, because it also allows the user to

Re: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-09 Thread Eric Andresen
Thanks for the information. I updated all my locators and no longer have the flushing problem. It still seems like the behavior I'm seeing in the RF Servlet is differing from what is documented at http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow where it says:

Re: Is it bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread Matias Costa
I personally prefer links, because it also allows the user to open the link in another window or tab. And the history works -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

image can show in debug mode, but not when deloyed to weblogic

2012-02-09 Thread tong123123
in design time, the images is located at war/Images/abc.png and I have a class called Commons in client package and stored the image location as string public class Commons { public static final String abc_path = /Images/abc.png } then in the page show image, I write the following

GWT Developer Plugin for Firefox not installing completely

2012-02-09 Thread Allyn
Up until yesterday I was using the GWT Developer Plugin for Firefox 3.6 without issue. Then, suddenly, when I started up Firefox yesterday it did not recognize the plugin as being installed. In the add-on list, the plugin stated that I had to restart Firefox to complete the installation. I tried

developer plugin version 1.0.10862 for firefox won't install in firefox 3.6.20 on Ubuntu

2012-02-09 Thread Tim Zheng
I was prompted to install the new version today. But it just won't install. It says it'll be installed after restart firefox. But after restarting, it still says it'll be installed after restarting. quite annoying. -- You received this message because you are subscribed to the Google Groups

iGoogle like page

2012-02-09 Thread RAJ
Hi, Can you please point me to an article or a thread which help me develop a site like igoogle, where I can create a host page. I understand, tht the Gadgets themselves are developed using Gadgets API, but I would like to have the host page also hosted within my intranet, so I want to build the

Re: DataGrid IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
Well it turns out that for IE8 the compatibilty button was pressed, while IE7 runs by default on compatibility mode. On Feb 9, 2:53 pm, woland athensdeve...@gmail.com wrote: The code below shows a table in the center of a DockLayoutPanel. If you run this code you'll see that the header is not

Re: DataGrid IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
Well it turns out that for IE8 the compatibilty button was pressed, while IE7 runs by default on compatibility mode. On Feb 9, 2:53 pm, woland athensdeve...@gmail.com wrote: The code below shows a table in the center of a DockLayoutPanel. If you run this code you'll see that the header is not

Re: iGoogle like page

2012-02-09 Thread Subhrajyoti Moitra
try http://shindig.apache.org/ HTH. Subhro. On Fri, Feb 10, 2012 at 7:00 AM, RAJ nrwor...@gmail.com wrote: Hi, Can you please point me to an article or a thread which help me develop a site like igoogle, where I can create a host page. I understand, tht the Gadgets themselves are

[gwt-contrib] Re: RPC payload question: Why use fully qualified class names?

2012-02-09 Thread Thomas Broyer
There's a com.google.gwt.user.RemoteServiceObfuscateTypeNameshttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/RemoteServiceObfuscateTypeNames.gwt.xml module since GWT 2.0; I guess it'll do what you're asking for. --

[gwt-contrib] Fix Closure backend with JsNumericEntry (issue1640803)

2012-02-09 Thread acleung
Reviewers: johnlenz, Description: Fix Closure backend with JsNumericEntry Please review this at http://gwt-code-reviews.appspot.com/1640803/ Affected files: M dev/core/src/com/google/gwt/dev/js/ClosureJsAstTranslator.java Index:

[gwt-contrib] Updates Missing Plugin Page (issue1641803)

2012-02-09 Thread acleung
Reviewers: conroy, Description: Updates Missing Plugin Page Please review this at http://gwt-code-reviews.appspot.com/1641803/ Affected files: M plugins/MissingPlugin/war/MissingPlugin.html Index: plugins/MissingPlugin/war/MissingPlugin.html

[gwt-contrib] Re: Updates Missing Plugin Page (issue1641803)

2012-02-09 Thread jat
LGTM http://gwt-code-reviews.appspot.com/1641803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors