Beware of compatibility mode on IE8!

2010-03-12 Thread Paul Stockley
I have been trying to track down some strange IE8 bugs like the screen going blank and history issues (I am using LayoutPanels in standards mode). The problem only occurred when I accessed my site through our firewall. If I ran it locally or directly from the server it worked fine. The thing that

Re: gwt Popup is not centered

2010-03-15 Thread Paul Stockley
First, the only reliable way to set the size of the dialog is to set the width and height of the first container widget you add to the dialog. Don't try setting width and height on the dialog box, it doesn't work and there is a bug logged against this. Secondly, make sure you don't have a style

Re: FlexTable and UiBinder

2010-03-16 Thread Paul Stockley
Why not use a HTML panel and inside define a HTML table with the widgets in the cells? I rarely use things like FlexTable, HorizontalPanel or VerticalPanel. Usually all my forms are a combination of pure HTML and widgets. If you don't need IE6 support then I can show you some neater ways of laying

Re: FlexTable and UiBinder

2010-03-16 Thread Paul Stockley
If you need to dynamically modify the table I would stay with FlexTable. Working with the DOM on tables is kind of messy. -- 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: DockLayoutPanel and CSS classes

2010-03-17 Thread Paul Stockley
Have you tried addStyleNames instead of styleName On Mar 17, 5:06 pm, hriess hriess.chemn...@t-online.de wrote: Is it possible to provide the DocklayoutPanel elements (g:north, g:west ...) with a CSS class? The instruction g:DockLayoutPanelg:north size=30 styleName={style.northStyle} is

Re: asynchronous RPC means convoluted return values(?)

2010-03-18 Thread Paul Stockley
You can also chain your success callbacks so the the onSuccess callback of the first RPC does some processing with the results and then kicks off another RPC and so on... Long term a better approach would probably to do something like Phil mentions and make each disclosure panel autonomous i.e.

Re: PopupPanel question regarding ClickHandler

2010-03-18 Thread Paul Stockley
Just defining 'public void onClick(ClickEvent event) { }' doesn't do anything. You need to tell the system to call this handler i.e. addClickHandler(this); However, you can't do this on a DialogBox because it doesn't implement the HasClickHandlers interface. You will have to add a control to the

Re: Incubator's PagingScrollPanel

2010-03-18 Thread Paul Stockley
There working on a new table that will be included in GWT 2.1 See http://code.google.com/p/google-web-toolkit/wiki/DataBackedWidgetsDesign -- 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: How to add a scrollbar to a SuggestBox popup?

2010-03-19 Thread Paul Stockley
Can't you just add a scrollPanel as the first child of the Popup? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: Need to explicitly remove event handlers manually?

2010-04-13 Thread Paul Stockley
I've stepped through the code and there is no requirement to unregister handlers explicitly. Each widget has a handler manager (as member variable) that manages its handlers. If a widget is removed from its parent or its parent explicitly clears it then the registered handlers will get cleaned up

Re: UiBinder performances: widgets without ui:field still instantiate?

2010-04-16 Thread Paul Stockley
If you place widgets in your UI binder template then the system will instantiate the appropriate widgets even if you don't refer later to them in your code. The system still needs to create them as they are required to render the HTML page and implement interactions with the user. As a rule, I

Re: Removing a widget that's making async calls

2010-04-16 Thread Paul Stockley
Declare your async RPC interface to return Request instead of void. Then for each active async call keep track of the Request returned. When you remove your panel, call the cancel method on the request(s). If you do cancel in progress RPC calls you will get an IO exception on your server because

Re: new GWT MVP article (part 2)

2010-04-23 Thread Paul Stockley
I like the model-view-presenter architecture. However I am not at all sold on mocking out the view and testing just the presenter. The problems is that you are not testing 3 of the potentially most error prone parts of the system: 1) The browser and DOM, 2) The GWT widget library and 3) the GWT

Re: GWT MVP architecture redirect link page with URL parameters passing

2010-04-24 Thread Paul Stockley
Use something like History.newItem(page3?param1=aparam2=b); This will rewrite the current URL and store it in the browsers history. The onChange history event will then be fired. On Apr 23, 11:38 pm, Mahmoud mahmoud.abounas...@gmail.com wrote: Hello, I have followed the MVP structure while

Re: TabBar

2010-04-26 Thread Paul Stockley
Its does state that is it depreciated when used in Uibinder On Apr 26, 4:57 pm, Mike m...@sheridan-net.us wrote: TabPanel is not deprecated.  However, if you are using tabs inside a LayoutPanel type of layout, vs the traditional panels, and/or using Standards mode, you need to use

Re: Visibility on grandchildren of TabPanel is always true

2010-04-29 Thread Paul Stockley
isVisible only tells you if visibility was explicitly set on the widget. If the widget is invisible because it's parent is invisible then it will not tell you that. This is trait of the DOM in general. The only way to find out is to walk the DOM tree upwards checking to see if the computed style

Re: Drag and Drop feature in GWT

2010-04-29 Thread Paul Stockley
Not directly. The following project adds dnd support http://code.google.com/p/gwt-dnd/ On Apr 29, 12:39 am, Vikash vikash.1234.kha...@gmail.com wrote: I wanted to know : 1. Does dnd feature is supported by GWT? 2. Does google provide any dnd API for GWT? -- You received this message

Re: Gwt and setting properties dynamically.

2010-04-29 Thread Paul Stockley
You can't do it. The problem is that you cannot get hold of the obfuscated field names from GWT. The way people provide this kind of functionality is by building a generator that at compile time generates a class with a bunch of getters and setters. This is how the RPC serialization works and a

What is the largest GWT program anyone is running?

2010-05-04 Thread Paul Stockley
Even though we are going to use code splitting aggressively, I am wondering at what point things just break due to the sheer amount of javascript that is downloaded over time. The application we are porting to GWT is very large and I am afraid at some point we will break the browser (especially

Re: How to get stack trace of an exception?

2010-05-10 Thread Paul Stockley
Take a look here http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions On May 10, 12:32 pm, Brandon Turner boringbran...@gmail.com wrote: I am getting a stack overflow exception when I call ensureInjected() on one of my resource bundles inside of my onModuleLoad in the new Chrome

Re: Roadmap?

2010-05-13 Thread Paul Stockley
I can tell you they are working on a data bound grid and tree control and various compiler optimizations for 2.1. I have been following the changes and they have created a 2.1 branch in svn. I wouldn't worry about it being abandoned, the commits are happening every day to the GWT codebase. On

Re: Code Splitting

2010-05-13 Thread Paul Stockley
I've seen the same behavior. All the classes passed via RPC get pulled in when initializing the RPC serialization. This will get kind of ugly for our app when it gets larger as we use the command pattern for RPC and it will pull in a lot of code at startup. On May 13, 12:59 pm, brianw

The new 2.1M1 release appears to have a few challenges

2010-05-19 Thread Paul Stockley
The first issue I got when I compiled my app was a bunch of errors related to source missing from the bikeshed application. I fixed this by removing the bikeshed jar from: \eclipse\plugins\com.google.gwt.eclipse.sdkbundle. 2.1.0_2.1.0.m1-201005191217 After doing this development mode seems to

Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
Its actually quite a bit different than what they have talked about in the past. From a quick look I had, it appears to incorporate a bunch of scafolding code generation, dynamic binding etc.You can take a look at the bikeshed project in svn. I think it is still somewhat a work in progress. On

Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
Actually I don't think it has much relation to that. I think it originated from this: http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequestFactory On May 20, 2:03 pm, metrixon metri...@gmail.com wrote: I think, the whole MVP with GWT thing is actually inspired by the talk given

Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
new classes that also appear in the javadocs of M1 (Cell-Classes, ListView, Pager etc.) but I haven't found anything regarding the MVP-Framework. On 20 Mai, 20:10, Paul Stockley pstockl...@gmail.com wrote: Actually I don't think it has much relation to that. I think it originated from

Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Paul Stockley
I have a fatal compiler issue when trying to compile my application. They are working on tracking it down. Dev mode works OK. The only reason I am on it is because I want to try out the new cell views. I would hold off for a while if you can. On May 20, 5:55 pm, Jeff Chimene jchim...@gmail.com

Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Paul Stockley
There are some javadoc comments on the new classes. There is also a sample showing how to use the widgets that is checked in under svn here: http://google-web-toolkit.googlecode.com/svn/branches/2.1/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/ On May 20, 7:59 pm, Nick Jost

Re: compile problems with GWT 2.1

2010-05-23 Thread Paul Stockley
See my previous post http://groups.google.com/group/google-web-toolkit/browse_thread/thread/eb1b3369d6c1612e# On May 23, 1:17 pm, jalynn2 joe.a.l...@gmail.com wrote: I uninstalled the Eclipse Plugin and downloaded the new one from the site Google 2.1 plugin

Re: Status of Joda/Goda time, future of Date handling

2010-05-30 Thread Paul Stockley
I am using gwt-time. I haven't had any issues as yet. However, the biggest problem is that it adds 250 - 300 kb to the project js download. I was careful to avoid the dependency for the initial download fragment. On May 30, 12:36 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, I think,

Re: FastTree in GWT 2.0.3

2010-05-30 Thread Paul Stockley
2.1M1 introduces a new fast tree implementation you might want to take a look at On May 30, 7:25 pm, hazy1 matt.egyh...@gmail.com wrote: Fast tree has always had a lot of bugs, we basically took some of the concepts from Fast Tree but wrote our own. On May 28, 5:03 am, jla ner...@gmail.com

Re: Status of Joda/Goda time, future of Date handling

2010-05-31 Thread Paul Stockley
, 2:26 am, Paul Stockley pstockl...@gmail.com wrote: I am using gwt-time. I haven't had any issues as yet. However, the biggest problem is that it adds 250 - 300 kb to the project js download. That's massive, and it would be way too much for my project. I wonder, why it's that large - What

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
Your making it overly complicated: For the case where you have all the data in a list already: ColumnResidentListDO, String unitColumn = new ColumnResidentListDO, String(new TextCell()) { @Override public String getValue(ResidentListDO object) {

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
(); ListViewAdapterResidentListDO residentTableAdapter = new ListViewAdapterResidentListDO(ourList ); residentTableAdapter.addView(view.residentTable); //No need to call updateDataSize On Jun 3, 7:52 am, Paul Stockley pstockl...@gmail.com wrote: Your making it overly complicated: For the case where you have all

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-03 Thread Paul Stockley
ArrayListResidentListDO(); ListViewAdapterResidentListDO residentTableAdapter = new ListViewAdapterResidentListDO(ourList ); residentTableAdapter.addView(view.residentTable); //No need to call updateDataSize On Jun 3, 7:52 am, Paul Stockley pstockl...@gmail.com wrote: Your making it overly complicated

How to configure jetty in hosted mode

2010-06-07 Thread Paul Stockley
I need to set up my project to use basic authentication to simulate the way our firewall works. I can do this through web.xml. However I need to add a user to Jetty and assign a specific role. Does anyone know how to get access to the Jetty config used by hosted mode? -- You received this

Re: TabLayoutPanel Hard Width?

2010-06-07 Thread Paul Stockley
Just use the setWidth method. I use this when I want to use the Tab layout panel in a dialog box. On Jun 7, 8:21 pm, Nick Jost lordkak...@gmail.com wrote: Specifically, getting around the aptly named, BIG_ENOUGH_TO_NOT_WRAP constant.  I don't see anything, but would appreciate magic/help. --

Re: SimplePager should be 'deaf', but makes data in table disappear (2.1, data presentation widgets)

2010-06-13 Thread Paul Stockley
I am seeing the same problem and have logged a bug. On Jun 13, 7:45 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hi I made my first attempt to utilize CellTable, *AsyncListViewAdapter*T and SimplePagerT. And I feel like it is christmass to get something like that right out-of-the

Re: SimplePager should be 'deaf', but makes data in table disappear (2.1, data presentation widgets)

2010-06-13 Thread Paul Stockley
Sorry, forgot to mention. This only happens when you have less than one page of data. On Jun 13, 10:22 am, Paul Stockley pstockl...@gmail.com wrote: I am seeing the same problem and have logged a bug. On Jun 13, 7:45 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hi I made my

Re: Events from SelectionCell in CellTable - GWT 2.1 M1

2010-06-25 Thread Paul Stockley
Can't you just add a ValueUpdater handler to see when the selection changes? On Jun 25, 4:27 am, saklig d3andr...@gmail.com wrote: After a couple of tries Ive managed to write something that gets the job done. My example: ListString opts = new ArrayListString(); opts.add(Enabled);

Re: Events from SelectionCell in CellTable - GWT 2.1 M1

2010-06-27 Thread Paul Stockley
use the setFieldUpdater(fieldUpdater) on the Column class On Jun 27, 6:28 am, saklig d3andr...@gmail.com wrote: Which class has the addValueUpdateHandler ? On Jun 25, 4:08 pm, Paul Stockley pstockl...@gmail.com wrote: Can't you just add a ValueUpdater handler to see when the selection

Re: GWT Popup is not centered

2010-06-28 Thread Paul Stockley
Make sure the first widget you add the to dialog has a width and ideally height set. Also make sure you don't have a css value set. The starter app sets this and it causes all sorts of problems. On Jun 28, 9:59 am, andreas horst.andrea...@googlemail.com wrote: Did you try calling center() after

Re: scrollable area in SplitLayoutPanel

2010-06-28 Thread Paul Stockley
Add a ScrollPanel as the first child, then put your content in this. Make sure the width and height of the scroll panel are set to 100% On Jun 28, 1:42 pm, Vik vik@gmail.com wrote: anyone on this plz? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com On Sun, Jun

Re: How GWT-RPC handles polymorphic serialization?

2010-07-06 Thread Paul Stockley
You need to use deferred binding i.e. GWT.create and write a code generator. I suggest you check out the GWT source code from SVN and look at their RPC generator code. On Jul 6, 8:54 am, André Moraes andr...@gmail.com wrote: ? 2010/7/5 André Moraes andr...@gmail.com The GWT has the

Re: GWT 2.1 M1 Data Presentation Widgets tutorial?

2010-07-08 Thread Paul Stockley
Check out the Cookbook sample: http://google-web-toolkit.googlecode.com/svn/branches/2.1M2/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook I also posted a small example earlier

Re: Remove event handlers or not?

2010-07-14 Thread Paul Stockley
You don't need to. I traced the code a while back and it takes care of it. On Jul 13, 5:50 pm, Gal Dolber gal.dol...@gmail.com wrote: Anyone?? 2010/7/13 Gal Dolber gal.dol...@gmail.com Hi, someone knows for sure if its necessary to remove event handlers when we remove a widget? will I

Re: When GWT 2.1 will be released?

2010-07-14 Thread Paul Stockley
I read some time in Q4 2010 On Jul 14, 9:05 am, Thamizharasu S zaru...@gmail.com wrote: Hi, What is planned release for GWT 2.1? - Thamizharasu S -- 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: How to write good performance code?

2010-07-14 Thread Paul Stockley
I would say there is actually very little difference. Maybe 1 would be slightly faster due the missing assignment. The most efficient would probably be: public MyClass implements ClickHandler { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { Window.alert(msg);

Re: Possible to access GWT-RPC serializer?

2010-07-15 Thread Paul Stockley
You could use JSON and javascript overlay types to access the information in a type safe way. On Jul 15, 10:55 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Sekhar, this is my first thought. Just use JSON. Then you can use eval to read it. However, I do not know any method to export a

Re: Compiler Bug in 2.1.0.m2

2010-07-20 Thread Paul Stockley
The GWT team needs to be all over issues like this. Nothing will put people off GWT quicker than a flaky compiler you cannot depend on. On Jul 20, 5:53 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, I've updated the issue with a more specific test case and a possible workaround.

Re: Sync AJAX ( instead of async)

2010-07-21 Thread Paul Stockley
I wrote a loading mask that creates a transparent mask over the window to stop input. After a second or two an animated loading message fades into view. That way if the request is quick you don't get a message flashing on and off. On Jul 21, 3:36 pm, cokol eplisc...@googlemail.com wrote: ...in

Re: Data presentation widgets

2010-08-13 Thread Paul Stockley
No you don't. I am using them with 2.1 M2 without RequestFactory On Aug 13, 9:36 am, Arthur Kalmenson arthur.k...@gmail.com wrote: I think that's going to be the case until GWT 2.1 comes out. -- Arthur Kalmenson On Tue, Aug 10, 2010 at 10:00 AM, tc camec...@gmail.com wrote: Do you have

An example of GWT legacy app integration

2010-08-19 Thread Paul Stockley
I have seen a few people asking how to integrate GWT and existing web applications. Our company was in the same position as a lot of people are i.e. we want to move to GWT but have a lot of legacy code. We wanted a way of using our existing apps (jsp/servlet based) but wrap them in a new

Re: How to integrate an open source web app into a GWT application

2010-08-19 Thread Paul Stockley
See my post here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6c42e8b691eb112 On Aug 19, 3:13 am, Anita anapont...@gmail.com wrote: Hello, Yes, i undestood the folders hierarchy idea (i'm using Apache Tomcat), but i can`t understand how can this works... :( i mean,

Re: Using an App-wide RPC serive or multiple services?

2010-08-30 Thread Paul Stockley
I originally went with the centralized approach but abandoned it because of the code splitting issue. Now I have multiple services each with a facade that provides standardized error handling and in process cancelling capabilities. However, having to create a facade for each service is a little

Re: 2.1 M3 sdk download missing classes

2010-08-31 Thread Paul Stockley
I managed to convert my code without too many problems. This release has fixed a few issues I was having so I am happy. There are quite a few changes required: 1) thePager = new SimplePagerR(theTable); theTable.setPager(thePager); Now becomes

Re: 2.1 M3 sdk download missing classes

2010-08-31 Thread Paul Stockley
the changes I had to make. On Aug 31, 10:38 pm, Paul Stockley pstockl...@gmail.com wrote: I managed to convert my code without too many problems. This release has fixed a few issues I was having so I am happy. There are quite a few changes required: 1)              thePager = new SimplePagerR

Re: Any news on when super dev mode will be released?

2010-09-09 Thread Paul Stockley
then use the Chrome Extension SpeedTracer to inspect the generated log to see where DevMode is spending time for your app. If you'd like to share, you can feel free to post screenshots of the SpeedTracer detail view for your Module Init. On Tue, Sep 7, 2010 at 5:26 PM, Paul Stockley pstockl

Re: How could we know if GWT project will continue to be maintained by Google?

2010-09-13 Thread Paul Stockley
gmail is written with the google closure library/compiler On Sep 13, 3:11 pm, lineman78 linema...@gmail.com wrote: I am pretty sure gmail is.. On Sep 13, 7:48 am, marius.andreiana marius.andrei...@gmail.com wrote: Hello, While comparing GWT with other solutions for a long-term

Re: Development Mode performance with Chrome

2010-09-15 Thread Paul Stockley
From what I understand, chrome is slower in dev mode than all the other browsers because of the process sandbox model used by chrome. On Sep 15, 12:13 pm, e...@2010 edwinfsm...@gmail.com wrote: I would like to echo the sentiment of this request and in a similar vein (and maybe this deserves a

Re: Development Mode performance with Chrome

2010-09-15 Thread Paul Stockley
From what I understand, chrome is slower than all the other browsers in dev mode because of the process sandbox model used by chrome. This has an impact on communication from Java to the browser when executing jsni methods. On Sep 15, 12:13 pm, e...@2010 edwinfsm...@gmail.com wrote: I would like

Re: GWT designer error - Unable to open file /templates/Composite.jvt from UiBinder

2010-09-16 Thread Paul Stockley
What version of GWT are you using? I think it may require 2.1M3 On Sep 16, 2:49 pm, marius.andreiana marius.andrei...@gmail.com wrote: When trying to create a New - Window Builder - GWT - UiBinder - Composite, I get  Unable to open file /templates/Composite.jvt from

Re: GWT designer error - Unable to open file /templates/Composite.jvt from UiBinder

2010-09-16 Thread Paul Stockley
I remember seeing changes being made to the core of GWT to support UiBinder editing. That is why you need 2.1M3. Even then I don't think it is complete yet On Sep 16, 3:28 pm, marius.andreiana marius.andrei...@gmail.com wrote: On Sep 16, 10:15 pm, Paul Stockley pstockl...@gmail.com wrote: What

Re: Show case example of the new Data Presentation Widget?

2010-09-21 Thread Paul Stockley
There are some samples of just the data presentation widgets without the MVP framework stuff in the showcase on trunk. This will be a lot easier to understand if you only care about the widgets. On Sep 21, 4:16 pm, Travis Camechis camec...@gmail.com wrote: yep the expenses app uses them along

Re: GetOffsetWidth and css

2010-09-23 Thread Paul Stockley
You need to get the computed style property. GWT doesn't support this. I wrote a function to get the value static public native String getComputedStyleProperty(Element el, String property) /*-{ if (window['getComputedStyle']) { // W3C DOM method if (property === 'float')

Re: GWT 2.1 M3 API changed? AsyncListViewAdapter, SimplePager, etc

2010-09-24 Thread Paul Stockley
I posted some info here http://groups.google.com/group/google-web-toolkit/browse_thread/thread/eb428e2e8d922f16/e864076c94c48c30#e864076c94c48c30 On Sep 24, 5:45 am, Paul Schwarz paulsschw...@gmail.com wrote: Dear all, I have been working on an app that uses those light weight Data Widget

Re: Modal Dialogs with setGlassEnabled Disable Input Elements

2010-09-28 Thread Paul Stockley
Just use the glass panel. Don't set it modal. The modal option doesn't work for all browsers/input types. On Sep 28, 12:43 am, melody pedzi...@gmail.com wrote: I have a modal dialog that I want to be modal so I have set the modal property thus: DialogBox dlg = new DialogBox();

Re: New GWT 2.0 Book

2010-10-04 Thread Paul Stockley
2.1 Isn't even released yet so why are you pissed off about there being no documentation! On Oct 4, 11:36 am, Ashton Thomas ash...@acrinta.com wrote: At the end of the day, the GWT community will benefit from the book. For whatever reasons Chris is writing the book I am certain they are

Re: javascript error (invalid Argument)

2010-01-22 Thread Paul Stockley
Works fine for me on IE 8 -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: Problems with DialogBox and DockLayoutPanel

2010-02-03 Thread Paul Stockley
The borders getting screwed up when setting the size seems to me an issue with dialog box even if you don't use the new layout panels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

JSNI question

2010-02-03 Thread Paul Stockley
Is there a way I can get the obfuscated name of a JAVA object's field from within a JSNI method? I can get the actual value by using: [instance-exp...@class-name::field-name but what I want is just the @class-name::field-name as a string. The compiler gives an error if I omit the instance

TabPanel depreciated when using UI Binder

2010-02-19 Thread Paul Stockley
When I use a TabPanel with UI Binder it says that it is depreciated in favor of the new TabLayoutPanel. The problem is that I am using a TabPanel within a DialogBox. From what I understand TabLayoutPanel will not work in this case. So either I am mistaken and I can use TabLayoutPanel or they have

Re: Working Example of TabLayoutPanel with UIBinder?

2010-03-02 Thread Paul Stockley
You need to make sure you are using the latest version of GWT (at least 2.02 I think) because the styles where missing from prior versions. It works fine for me in UIBinder. Also make BarHeight bigger, say 20px. You don't really need the size set on the header for it to work. -- You received

Re: Working Example of TabLayoutPanel with UIBinder?

2010-03-03 Thread Paul Stockley
In your example just do this: g:TabLayoutPanel barUnit=PX barHeight=20 g:tab g:test/g:header g:HTMLPanel g:Label ui:field=question/g:Label g:Button ui:field=startButton/g:Button

setModal(true) doesn't work for PopupPanel or DialogBox in IE8

2010-03-03 Thread Paul Stockley
In IE 8 you can click on buttons outside of the popup (but not input boxes) even when a modal PopupPanel or DialogBox is shown. It works OK in Chrome and Firefox. Strangely, calling setGlassEnabled(true) works even in IE. Anyone else seen this behavior? -- You received this message because you

Re: Working Example of TabLayoutPanel with UIBinder?

2010-03-05 Thread Paul Stockley
I was going to also suggest you make sure you add it to the RootLayoutPanel. However, I thought the documentation was pretty clear on this. You can add a TabLayoutPanel to something other than the RootLayoutPanel as long as you set an explicit size on the TabLayoutPanel. This is very useful if you

Re: Is there a DecoratorPanel that works with LayoutPanel children?

2010-03-05 Thread Paul Stockley
I've had no problem putting LayoutPanels such as TabLayoutPanel as children on non-layout panels such as DialogBox. However, you have to explicitly set the size of the layout panel for it to work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: Perhaps a clue to the IE layoutPanel blank window issue

2010-03-09 Thread Paul Stockley
Some more weirdness to report. If you have an application that has some screens that are layoutPanel based and some that use standard layout added to RootPanel you can get some very strange interactions. Sometimes if I switch between screens, when I get to a standard layout screen I cannot type in

Perhaps a clue to the IE layoutPanel blank window issue

2010-03-09 Thread Paul Stockley
I recently wrote a modal working mask (for use during RPC calls) that blocks input to all controls and slowly fades in an animated working message in the middle of the screen. This is implemented in a very similar way to the glass panel used by PopupPanel using an absolutely positioned div with

Re: Serializing a List

2010-03-10 Thread Paul Stockley
I had exactly the same problem as this but it had nothing to do with lists. The problem seemed to be that I was returning a type with a generic argument i.e. ResultString As soon as I removed the generic part it worked. -- You received this message because you are subscribed to the Google Groups

Re: DialogBox size

2010-03-10 Thread Paul Stockley
Set width and height don't work. I submitted a bug report that has been accepted. The only reliable way to do it currently is to set the width and height of the first container widget you add to the dialog. -- You received this message because you are subscribed to the Google Groups Google Web

Re: DialogBox size

2010-03-10 Thread Paul Stockley
Forgot to mention, make sure in your main application css file there isn't an entry like .gwt-DialogBox { width: 350px; } If there is, remove it. On Mar 10, 10:21 am, Paul Stockley pstockl...@gmail.com wrote: Set width and height don't work. I submitted a bug report that has been accepted

Re: handle to innerHTML objects

2010-03-10 Thread Paul Stockley
You can only add handlers to Widgets. So you will have to create a widget, set the widget's element equal to the table element you created. Then add this widget to the vertical panel. To get the table element you can use something like Document.get().getElementById(details); I haven't tried this

Re: handle to innerHTML objects

2010-03-10 Thread Paul Stockley
I think its protected. You are going to have to subclass Widget and create a new class that takes an element as a constructor. Take a look at FocusWidget for an idea of how it is done. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: handle to innerHTML objects

2010-03-11 Thread Paul Stockley
Try changing you new class to take a HTML string as an argument. Then create a TableElement in the constructor, call setInnerHTML on this element. Then pass this to setElement on the widget. Then you should be able to add the widget to your panel. -- You received this message because you are

Are there any examples how to use @UiChild ?

2010-11-01 Thread Paul Stockley
I can't find much documentation of the use of @UiChild. Does anyone have any examples? -- 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-tool...@googlegroups.com. To unsubscribe from this group,

Re: popup a TabLayoutPanel

2010-11-11 Thread Paul Stockley
Yes it's possible, I use them in dialogs all the time. However, the restriction is that you have to set the size of the TabLayoutPanel explicitly in pixels or EM. I guess you could write a popup that implements the ProvidesResize interface (see javadoc for info). On Nov 10, 10:34 pm, nanotalk

Re: How to kill a GWT request which has not yet completed

2010-11-20 Thread Paul Stockley
You can cancel RPC requests. Just define your async interface as returning Request. You can then use the returned Request object to cancel the call. If you do this you also need to be aware your server code would throw an IO error due to the connection being closed by the client. I have a general

Re: GWT 2.1 CellTable - set page size to fill up a containing layout

2010-11-24 Thread Paul Stockley
You will need to do the rowsize calculation initially from a deferred command to give the table the time to initially render. Calculating the actual number of rows isnt easy and infact is impossible is there is any kind of text wrapping happening within cells. On Nov 23, 8:48 am, Valeri

Re: Frustrated with GWT Binder

2010-11-26 Thread Paul Stockley
You need to add it to the RootLayoutPanel not the RootPanel. On Nov 26, 2:46 am, Jeff Zhang zjf...@gmail.com wrote: Hi all, I'd like to create a UI like the sample application Mail. But I meet some weird problems. When I run the application, I can only see an empty page with nothing,

Re: Drag-and-drop solution with GwtQuery

2010-11-30 Thread Paul Stockley
Looks good. I am curious why you made it a plugin for gwtquery? On Nov 29, 8:36 pm, zixzigma zixzi...@gmail.com wrote: WOW this is Fantastic !!! just looked at the demo, CellTable and CellTree are beyond amazing ! THANK YOU !!! i am super excited, going to experiment with the code very

Re: TabLayoutPanel does not listen to width

2010-12-01 Thread Paul Stockley
Try setting the width on the flowpanel. If this doesn't work, set the width on its parent. On Dec 1, 5:51 am, Baloe nielsba...@gmail.com wrote: Hi, Thanks for your suggestion. However, most widgets don't listen to their method-calls. Regarding the uibinder example, I have to put everything

How to use constants in uibinder

2010-12-01 Thread Paul Stockley
Rather than say the following gwt:TabLayoutPanel addStyleNames={style.tabPanel} width=480px height=250px barHeight=28 ui:field=tabPanel I want to define a constant for the width e.g. gwt:TabLayoutPanel addStyleNames={style.tabPanel} width=dialogWidth height=dialogWidth barHeight=28

Hidden RPC parameters

2011-01-11 Thread Paul Stockley
Is there a way to pass additional data with each RPC call that isn't specified in the function parameters? I want to pass a hidden version number with each call so I can check it against the server to ensure the client isn't running a stale version of the program. -- You received this

Re: ORM or JDBC?

2011-03-24 Thread Paul Stockley
We use Mybatis which gives you some of the power of an ORM without the complexity and also complete transparency regarding the sql that is executed. Given that it works with straight POJO's it works great with RPC. -- You received this message because you are subscribed to the Google Groups

Re: Creating a reusable DialogBox with UiBinder?

2011-03-24 Thread Paul Stockley
Is this what you are after: public class TabbedDialogView extends DialogBox { private static TabbedDialogViewUiBinder uiBinder = GWT.create(TabbedDialogViewUiBinder.class); interface TabbedDialogViewUiBinder extends UiBinderWidget, TabbedDialogView { } public

Re: Creating a reusable DialogBox with UiBinder?

2011-03-24 Thread Paul Stockley
Set width and height on the dialog box doesn't work. You need to set the width and hight of the first widget added to the dialog box. This is a know limitation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: Creating a reusable DialogBox with UiBinder?

2011-03-24 Thread Paul Stockley
Just use: setWidget(uiBinder.createAndBindUi(this)); setAutoHideEnabled(true); setText(My Title); setGlassEnabled(true); //This will show the dialog Don't use SetModal it is broken. setGlassEnabled has the same effect. -- You received this message because you are subscribed to the Google

Re: Howto: Optimising RPC

2011-03-29 Thread Paul Stockley
I had the same issue with the command pattern. The problem is that all commands/results implement a common interface. The first time the service is created, it needs all the Marshalling code for all commands/results. The only way to avoid this is to have different services that define unique

Re: RemoteServiceServlet.processCall

2011-04-09 Thread Paul Stockley
This is what I do from within processCall to wrap exceptions with a specific exception: try { return super.processCall(payload); }catch(Exception e) { String errorMsg =Check server log; try { errorMsg = SERVER EXCEPTION:\r\n +

  1   2   3   >