Re: UiBinder.useSafeHtmlTemplates

2011-08-04 Thread Brian Reilly
Put the line to set the configuration property after inheriting com.google.gwt.uibinder.UiBinder, which you're probably inheriting indirectly by way of com.google.gwt.user.User. -- Brian -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. T

Re: Extending/embedding DialogBox

2011-08-03 Thread Brian Reilly
he regular, initWidget() method of Composite. > > Your UiBinder template then just looks like this: > > > > Stuff. > > > > // To use: > CustomDialog dialog = new CustomDialog(); > // etc. > > On Tue, Aug 2, 2011 at 8:25 PM, Brian Reilly wrote: &g

Re: showRelativeTo doesn't work the first time

2011-08-03 Thread Brian Reilly
I've had issues with positioning (specifically centering) when setting dimensions of the popup contents using CSS (width in my case, but I imagine hight could have similar issues). My dialog box would be positioned too far to the right the first time is was displayed using center(). The second a

Re: Extending/embedding DialogBox

2011-08-02 Thread Brian Reilly
I've found that you can add a visible="false" attribute to the g:DialogBox tag to keep it from being displayed on page load. However, I think this will cause the dialog box UI to be constructed even if it's never displayed. I'm guessing that the "you're not supposed to do this" comment you're r

Re: GWT Page flows - want to start a open source project - thoughts

2011-07-31 Thread Brian Reilly
on with GWT 2.3 for a couple of months now. -- Brian On Sat, Jul 30, 2011 at 11:35 AM, Brian Reilly wrote: > Note that the current build is for GWT <= 2.1. If you're using 2.2+, > currently you'll need to get the source and build it against 2.2+ yourself. > > I did some

Re: ValueProxy Implementation Rule ?

2011-07-30 Thread Brian Reilly
I think this is a known bug. I saw it mentioned recently and thought that there was a new issue filed, however I couldn't find it. I did however find this older issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5760 that appears to be related. -- Brian On Sat, Jul 30, 2011 at

Re: GWT Page flows - want to start a open source project - thoughts

2011-07-30 Thread Brian Reilly
Note that the current build is for GWT <= 2.1. If you're using 2.2+, currently you'll need to get the source and build it against 2.2+ yourself. I did some work a couple of months ago to create a jar that would work for any version of GWT, but haven't committed it yet. In fact, that's the only rea

Re: CssResource w/o UiBinder

2011-07-07 Thread Brian Reilly
Try adding a call to resources.css.ensureInjected(). I've seen that problem before and I think the call ensureInjected() fixed it. -- Brian On Thu, Jul 7, 2011 at 1:15 PM, Lars wrote: > So, I've had success using UiBinder to declare styles in blocks > and then accessing them in my .java file

Re: visibleEvent

2011-07-05 Thread Brian Reilly
A tooltip is something that you generally only have one of on the screen at at time, so you could have a single DecoratedPopupPanel as a sibling of the TabLayoutPanel. Then, create a tooltip event that you fire from a handler on the TextBox to either show/position or hide the tooltip, but also hide

Re: Very confusing aspect of MVP documentation!

2011-07-01 Thread Brian Reilly
To reiterate, GWT does not have a "native" MVP framework. Activities and Places are not directly related to MVP. The documentation is misleading on this point and, as David said, they're working on correcting that. Some things to keep in mind: 1. MVP is a pattern. How that pattern is applied depe

Re: FlexTable - removeRow with image widget (cell) causes JavaScriptException

2011-07-01 Thread Brian Reilly
That seems like very odd behavior and an unlikely bug to have crept in without being detected. It sounds like this started happening after upgrading to a new version of GWT. Make sure you don't have multiple versions of GWT jars on your classpath when running development mode. Also, does it work i

Re: CheckBoxSelectionModel

2011-06-15 Thread Brian Reilly
Look at the CellTable example in the Showcase application: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable The source code is viewable from that page as well. -- Brian 2011/6/14 NANOUS : > Bonjour, > > Comment je peut ajouter un ActionListener à une grid ,sachant que > ce

Re: Update data provider list in a celltable after a search

2011-06-02 Thread Brian Reilly
I think you're almost there. It looks like you're trying to use a ListDataProvider, but you're also calling setRowCount() and setRowData() which you don't need to do when using a ListDataProvider. In terms of sorting, your ListHandler is configured to act on the same list that the ListDataProvider

Re: Overriding a css style loclly

2011-06-01 Thread Brian Reilly
If you want to style all of the Label widgets that are inside a specific container (e.g. HTMLPanel), you can put a class on the container add a rule to target labels inside of it. @external .gwt-Label; .container .gwt-Label { color: #000; } This text will be styled by static style

Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Brian Reilly
Have you recently moved to a newer version of GWT? The errors look vaguely like the kinds of errors that 3rd party libraries ran into when GWT 2.2 was released. However, I don't see any 3rd party packages listed in the stack trace. My best guess is that you may have multiple versions of the GWT jar

Re: RequestFactory => UnexpectedException: The persisted entity with id 0 has a null version

2011-05-18 Thread Brian Reilly
You need to work on your AvailabilityLocator implementation. Your implementation of getVersion() is returning null, which is exactly what the error message is telling you. Also, your implementation of find() isn't doing what it should, getIdType() is returning null (should return Long.class in this

Re: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Brian Reilly
Hmm... maybe @UiFactory won't work in this case. I looked at the docs again and it looks like passing constructor parameters is possible when using @UiConstructor, but I don't see anything about passing parameters to @UiFactory methods. Try the @UiField(provided=true) approach instead. Just be care

Re: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Brian Reilly
I think that @UiField(provided=true) and @UiFactory are two different ways to get the same effect in this case. The smallest change to get your code to work would be to remove provided=true from your @UiField annotation. As it is, you're effectively telling UI Binder to not try to create a Tree for

Re: How Can I upgrade My Project To use RequestFactory

2011-05-17 Thread Brian Reilly
It's unclear why you can't use RequestFactory for your project. If you haven't already, read over http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html at least once. Then, especially if your current entities do not have id and version properties, create and experiment with a sam

Re: Single Sign On / GWT 2.3

2011-05-16 Thread Brian Reilly
I think this is purely a Google Plugin for Eclipse feature that you'll benefit from if you use Eclipse to interface with AppEngine, Google Project Hosting, etc. As such, it has nothing to do with implementing SSO in your application (GWT or otherwise). I haven't tried using it, but if you install t

Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Brian Reilly
guess that the RF is trying to recreate the > collection using a hashcode based on the id of the proxy, which doesn't > exist for a ValueProxy. > > > Thanks, > Eric > On Fri, May 13, 2011 at 8:58 AM, Brian Reilly > wrote: >> >> This sounds like a problem that

Re: Problem passing a Set as a parameter in RequestFactory?

2011-05-13 Thread Brian Reilly
This sounds like a problem that I ran into this as well, and even had a chance to sit down with David Chandler at Google I/O to look over it. Your case is more straightforward than mine (which involved trying to add to a Set on fetched ValueProxy) but I'd bet it's the same problem. I'm planning to

Re: Thanks GWT Devs

2011-05-13 Thread Brian Reilly
I'll second Jeff's statement. It was a great experience, and I was glad there was enough GWT/DevTools content to keep me busy. It was also great to get a chance to meet some of the GWT team and other GWT developers. -- Brian On Thu, May 12, 2011 at 12:46 PM, nino ekambi wrote: > Nice David. > D

Re: GWT Activity - Places => DialogBox ?

2011-05-13 Thread Brian Reilly
As I understand it, the main benefit to using Places/Activities is history/URL management. Therefore, the first question is do you want users to be able to save a URL directly to the detail popup? I think it might be a little odd from the user's point of view, but that's entirely up to you. If you

Re: GWT in Action, 2nd Edition Early Access Addition is Available for Purchase

2011-05-08 Thread Brian Reilly
Agreed, though it's too bad that it doesn't appear to have a chapter about RequestFactory. I experimented with it recently and it's pretty neat, though the GWT documentation isn't nearly as clear as it is for GWT-RPC. -- Brian On Sun, May 8, 2011 at 5:27 AM, Jan Mostert wrote: > When will this

Re: GWT Google/io meeting on Monday night

2011-05-05 Thread Brian Reilly
I may be interested as well. I don't know a lot about the area, so all I can suggest is Thirsty Bear, which is on Howard St. a block over from Moscone East. -Brian On May 5, 1:56 pm, Jeff Larsen wrote: > Hey was wondering if there is any interest in a gwt get together on Monday > night in SF. >

Re: Tomcat 6.0.x and .nocache.

2011-04-28 Thread Brian Reilly
This is such a basic need for any GWT application. It would be really helpful if a simple servlet filter like this was provided with GWT. In fact, I just submitted a feature request: http://code.google.com/p/google-web-toolkit/issues/detail?id=6288 -- Brian On Wed, Apr 27, 2011 at 7:36 PM, SrArc

Re: UIField NullPointerException

2011-04-12 Thread Brian Reilly
Yes, the declaration of your UiBinder interface is important for understanding the problem. Make sure the 2nd type parameter is your view implementation class and not, for example, an interface that your view implements. I've seen NullPointerExceptions like you describe when a view interface is use

Re: Canvas performance

2011-03-29 Thread Brian Reilly
Not a GWT-specific question, but you are using canvas through GWT, so... You're doing well by using pre-rendered images and drawing them to your main screen. In some of my initial experiments using canvas, I was using the canvas drawing functions (lines, arcs, etc.). I got a large speed boost by p

Re: Hosted Server crashes instantly

2011-03-23 Thread Brian Reilly
You're probably running into the issue with the latest JDK from Apple. See: http://code.google.com/p/google-web-toolkit/issues/detail?id=6125 and especially http://code.google.com/p/googleappengine/issues/detail?id=4712 -Brian On Wed, Mar 23, 2011 at 9:13 AM, Johannes Lehmann wrote: > Hi, > >

Re: Need Feedback on charts frameworks for GWT

2011-03-23 Thread Brian Reilly
There was an announcement just yesterday of a visualization library, Protovis-GWT. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6857b43f4563a335 It looked pretty nice from the examples. I haven't looked at the API yet, though. -Brian On Wed, Mar 23, 2011 at 9:52 AM, Ro

Re: FlowPanel

2011-03-11 Thread Brian Reilly
Like inline-block, there's also inline-table. I'm not sure how good browser support is for these (I'm looking at you, IE6). If inline-table works, you don't need the wrapper SimplePanel. If inline-table doesn't work but inline-block does, then use the wrapper SimplePanel. The other option is to fl

Re: compiling projects with multiple GWT Client modules

2011-03-11 Thread Brian Reilly
> now when I compile individual modules, I get   [ERROR] Module has no entry > points defined. > I understand this is because only one of my modules has the EntryPoint. > > do you know how I can get around this problem ? > - do you think the only solution is to define a dummy EntryPoint, to make >

Re: EventBus necessity

2011-03-11 Thread Brian Reilly
I would also recommend Hamlet D'Arcy's short screencast: http://hamletdarcy.blogspot.com/2011/02/screencast-gwt-event-bus-basics.html He uses it in the context of MVC controllers, but the same idea applies to presenters. -Brian On Fri, Mar 11, 2011 at 12:19 AM, Juan Pablo Gardella wrote: >

Re: src attribute causes error in the Google Eclipse plugin

2011-03-04 Thread Brian Reilly
> I haven't worked with Groovy/Scala and Maven. Are you saying > Groovy/Scala code is supposed to go in src/main/resources? That would > indeed be strange. Generally, no. Groovy (and maybe Scala too) is a little bit of an unusual case because (I think) you don't actually have to compile the source

Re: src attribute causes error in the Google Eclipse plugin

2011-03-04 Thread Brian Reilly
>> There's a deeper question there: are UiBinder ui.xml, LocalizableResources >> properties, ClientBundle css, images, etc. "resources" or "sources"? > > From Maven's point of view: yes, they are resources, not sources. > Sources contain source code (i.e. Java code). Java code is just one example.

Re: CSS @font-face rules

2011-03-04 Thread Brian Reilly
Found this issue from a comment in the code review you referenced: http://code.google.com/p/google-web-toolkit/issues/detail?id=5247 One of the issue comments points to a library that someone created to help work around this: http://showsort.darkhelm.org/fdoc/ I'd suggest starring the i

Re: Cannot change CSS in dev mode

2011-03-04 Thread Brian Reilly
I have run into this. It may depend on how you start development mode. I use either maven or IntelliJ IDEA; they may have put some extra effort into the Eclipse plugin to make it work there, but I'm not sure. One workaround that I know of it to use ClientBundle/CssResource. See http://code.google.

Re: src attribute causes error in the Google Eclipse plugin

2011-03-04 Thread Brian Reilly
First, one idea about the original question. You might be able to get away with adding src/main/resources as a source folder in the Eclipse project if it isn't already. It's been a while since I've used Eclipse; I don't know if that would be enough to make the GEP happy. If calling src/main/resour

Re: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules

2011-03-04 Thread Brian Reilly
> given (client and webapp are two distinct maven project with their own > pom.xml), > which of the solutions below is the correct way for resolving dependency, > given the assumptions in previous posts (multi-module gwt project) > 1- copy assembled zip file from client project directory, to webapp

Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-02 Thread Brian Reilly
> Hi, > so is this the correct approach for it http://tinypic.com/r/236vq0/7 ? > > When the Activity is created it gets the instance of the view and > creates a new presenter. It binds these two together. When the > activity is stopped (by place change) the presenter has to be set to > null. That

Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-01 Thread Brian Reilly
lenge with its >> implementation though(using the Ray Ryan's method). How do I use the >> go() method to serve multiple views if its local type is of >> HasWidgets? >> >> On 3/1/11, Erik Bens wrote: >> > Hi, >> > >> > perfect overview - th

Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-01 Thread Brian Reilly
Very good article! Thank you for contributing it! I would be interested to hear from creators/users of the MVP frameworks out there (gwt-mvp, gwt-platform, gwt-presenter, mvp4g, etc.) about which approach is used in each of the frameworks or if the frameworks are approach-agnostic. -Brian On Tue

Re: Deferred Binding, Gin in library/widget ?

2011-03-01 Thread Brian Reilly
I believe you would have to add @Inject annotations to your constructors. If you don't, developers using the framework can always hand-code a factory of some sort (Provider in Guice/GIN) to create instances (the factory gets dependencies injected into it so that it can inject them into the objects

Re: CellTable: Unable to combine CSS-selectors

2011-02-24 Thread Brian Reilly
Apparently, something like this will work: .cellTableFirstColumn.cellTableKeyboardSelectedRowCell { ... } Note that there's no space between the selectors. I haven't tested it at all, let alone with CellTable, but The Internet says this works... except in IE6, of course. Another suggestion I s

Re: Deferred Binding, Gin in library/widget ?

2011-02-24 Thread Brian Reilly
It looks like gwt-log uses deferred binding for optimization to eliminate any logging code that's lower than the configured logging threshold. Personally, I would not use deferred binding for your use case. By accepting a datasource as a constructor parameter, you're set up perfectly for dependenc

Re: GWT 2.2.0 broke binary compatibility for code generation

2011-02-22 Thread Brian Reilly
I'll have to look into maven to see if that can be done, but I'm not too optimistic that it would work very well. Is there a gwt.version property that we can check inside the generate-with tag of the library's module XML? Theoretically, a library could then provide two classes in a single

Re: GWT 2.2.0 broke binary compatibility for code generation

2011-02-22 Thread Brian Reilly
Thank you for formally addressing this issue, David. I notice that GIN 1.5 distributes 2 jars, one each for pre- and post- GWT 2.2. I haven't looked into it yet but, from a library developer's point of view, is there any hope of being able to distribute a single jar that will work in either case?

Re: Compiling whole project for any widget changes

2011-02-22 Thread Brian Reilly
If you use Development Mode, you don't have to recompile to see most client-side changes. See http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode -Brian On Tue, Feb 22, 2011 at 5:16 AM, Jiunarayan wrote: > I find annoying in compiling the whole gwt pro

Re: Deferred Binding, Gin in library/widget ?

2011-02-22 Thread Brian Reilly
I don't think this is a case where I would think of using either deferred binding or GIN. The API you outlined should work as is for anyone who can write their own datasource. For users who can only provide a URL to the data, they can use your HttpDataSource or a more specific subclass of HttpDataS

Re: how to realize a realtime clock running in the client?

2011-02-17 Thread Brian Reilly
The server is what's in common and must be the keeper of time. If you're worried about latency making timings inaccurate, there are much bigger potential problems with making the clients keep track of time. For example, assuming you have some unique token for that match on the URL, what happens if

Re: Feedback Requested: Preview of new GWT Style Theme

2011-02-17 Thread Brian Reilly
Here's my feedback. Sorry it's so long. I have quite a few comments about the tendency toward using various blue colors. I'm not entirely against that, but I think the blues should be consistent. That said, I'd rather have no color and be able to easily add color if desired. That way, the default s

Re: More than one hostpage, each with an own entryPoint

2011-02-17 Thread Brian Reilly
Take a look at gwt-multipage (http://code.google.com/p/gwt-multipage/). It allows you to annotate entry points to be invoked based on either a URL pattern or a token stored in a javascript variable. It also uses GWT.runAsync() to download only the entry point to run on that page. One warning... th

Re: Error Using GeoCode with GW2.2

2011-02-16 Thread Brian Reilly
Unfortunately, GWT 2.2 introduced an incompatibility for many libraries that rely on code generators. This includes the gwt-google-apis project, GIN, and at least one other that I know of. The only solution I know of right now is to compile your own versions of these libraries against GWT 2.2. Eve

Re: Getting a user Enter key

2011-01-28 Thread Brian Reilly
s("^[0-9A-Z\\.]{1,10}$")) { >      Window.alert("'" + symbol + "' is not a valid symbol."); >      newSymbolTextBox.selectAll(); >      return; >    } > >    newSymbolTextBox.setText(""); > >    // TODO Don't add the stock if it's already in the t

Re: GWT with JPA located in a separate project

2011-01-04 Thread Brian Reilly
The core objects need to be GWT-compiled along with and at the same time as the rest of the GWT application. Therefore the source needs to be available to the GWT compiler. From what I've heard, you should be able to package the source files (and the .gwt.xml file) in the core jar and the compiler

Re: GWT 2.1 compiler option : -noserver

2011-01-04 Thread Brian Reilly
Make sure you have a gwt.codesvr query parameter on the URL. Otherwise your development mode server won't be used. Then, as long as you have a debugger attached to your development mode process, you should be able to debug client side code. Note that any RPC calls will be handled by server that th

Re: Having multiple semi-autonomous .html pages vs single page with multiple Places ?

2011-01-03 Thread Brian Reilly
One implication that you'll have is the possible increase of compilation units in your applications. Since each of the host pages would show something different, you'd have one entry point for each. Since you don't want to download and start all of the entry points when you're only using one, you'l

Re: Handling sessions in gwt multipage application

2010-12-21 Thread Brian Reilly
When the user logs in, store something in the HttpSession. Then, when the next page loads and your entry point is invoked, make a GWT-RPC call to check the session to see if the user is logged in and who they are. You can access the session from a GWT-RPC service implementation (subclass of Abstrac

Re: Multi url GWT app

2010-12-16 Thread Brian Reilly
Check out gwt-multipage (http://code.google.com/p/gwt-multipage/). It works using a single entry point configured in the module XML and can dispatch to other entry points based on a URL pattern or javascript token (pretty much exactly what Jerome posted). -Brian On Thu, Dec 16, 2010 at 8:15 AM, I

Re: RequestFactory without creating proxies? Anyone else reminded of J2EE early days?

2010-12-14 Thread Brian Reilly
gt; > > On Tuesday, December 14, 2010 4:38:54 PM UTC+1, Brian Reilly wrote: >> >> What I was hoping for in 2.1.1 is something with, I suppose, the >> functionality of AutoBean and the simplicity of use of @ProxyFor. >> Unless I'm missing something about AutoBean, it looks

Re: RequestFactory without creating proxies? Anyone else reminded of J2EE early days?

2010-12-14 Thread Brian Reilly
What I was hoping for in 2.1.1 is something with, I suppose, the functionality of AutoBean and the simplicity of use of @ProxyFor. Unless I'm missing something about AutoBean, it looks too cumbersome to use outside of a tool that does code generation. In my case, I don't need a proxy for my entiti

Re: Strict Mode - replacement for HorizontalPanel needed

2010-12-14 Thread Brian Reilly
It's a bit more complicated than that, and you really have to look at the provided example in IE7 (not IE8, which works fine) to understand what's happening. >From what I understand, you want to have 2 widgets, a text field and a button, displayed in a row. Your layout is fluid, so the width of th

Re: UI creating widgets and overtaking my screen

2010-12-13 Thread Brian Reilly
Are you using RootPanel or RootLayoutPanel? If RootPanel, are you targeting a specific element in your host HTML page? I could imagine some usage of these causing some of the effects you're describing. -Brian On Fri, Dec 10, 2010 at 4:24 PM, Bauer wrote: > This is an odd issue.  What is happenin

Re: FlowPanel - how to minimize its size?

2010-12-13 Thread Brian Reilly
FlowPanel renders as a div, which has a default width of 100%. The only block-level element I'm aware of that shrinks horizontally to fit its content is a table. You can try using display: table; on the div, but you'll have trouble with IE support. You may just have to use an actual table to get th

Re: FlowPanel vs. HorizontalPanel

2010-12-10 Thread Brian Reilly
ed the elements > it wanted to keep together, then added 'new HTML ("")', and > those items would all stay together within the Cell.  Yes? > > Thanks! > > Greg > > On Nov 30, 1:55 pm, Brian Reilly wrote: >> First, let's separate two conce

Re: Using J2SE classes inside GWT client module

2010-12-09 Thread Brian Reilly
Yes, but only the subset that the framework supports. You just happened to hit one of the classes that is missing. See http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html. -Brian On Thu, Dec 9, 2010 at 9:12 AM, dato.java wrote: > >         Using J2SE classes inside GWT client modul

Re: Announcing Chrome Developer Plugin support for Mac and Linux

2010-12-09 Thread Brian Reilly
Great that this support has been added. Disappointing that, at least on Mac OS X (10.5), everything takes about twice as long as in Safari or Firefox. -Brian On Wed, Dec 8, 2010 at 1:47 PM, Peter Ondruska wrote: > http://googlewebtoolkit.blogspot.com/2010/12/announcing-chrome-developer-plugin.ht

Re: RPC in separate module

2010-12-07 Thread Brian Reilly
You do have to declare the servlet in the web.xml of the main module. As such, you have to treat it like it's in the main module. I suspect the "metro.module.rpcpack" part of the url-pattern is the problem. The URL pattern is determined by the main module name, not the inherited module name or the

Re: A MVP widget within a View

2010-12-07 Thread Brian Reilly
What do you think is the best way for ContainingPresenter get an instance of WidgetView? I think that either: 1. WidgetView needs to be an interface and ContainingPresenter is given a factory/provider for creating them 2. ContainingPresenter doesn't reference WidgetView at all One of the main ben

Re: Getting a user Enter key

2010-12-03 Thread Brian Reilly
Greg, As I mentioned in a thread earlier today ( http://groups.google.com/group/google-web-toolkit/browse_thread/thread/82a98103dfa76528), try using a KeyDownEvent handler and inspect event.getNativeEvent().getKeyCode() instead of event.getCharCode(). >From the other thread, it sounds like this b

Re: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-03 Thread Brian Reilly
Greg, For what it's worth, I had very similar feelings when I ran into a very similar problem. (I was trying to get consistent behavior when pressing enter or tab. Tab is a tricky one because different browsers do different things with different events to handle element focus. Hint: in Safari, you

Re: Ship a GWT app as a desktop app with local server?

2010-12-03 Thread Brian Reilly
As much as I like GWT, I think it might not be the right tool for your situation. Your two use cases are: * Remote data and compute * Local data and compute (unless you meant that desktop use would use remote compute, but I don't think so because that would require transmitting local data to the

Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-12-03 Thread Brian Reilly
naming the existing AbstractActivity to Activity. It sounds like there are other breaking changes coming in 2.1.1. I'm curious to know what they are... -Brian On Tue, Nov 30, 2010 at 3:19 PM, Brian Reilly wrote: > There's a difference between "experimental" and "imm

Re: Facing some problems after switching to GWT 2.1 from GWT 2.0.4

2010-12-03 Thread Brian Reilly
I fiddled with this quite a bit a while back, and I just upgraded to 2.1 so I panicked when I read this. However, I just tested in Safari and Firefox (both on Mac) and everything still works. The key, as Dominic mentioned, is to handle KEY_ENTER in a handler for KeyDownEvent instead of KeyPressEve

Re: GWT MVP Activities and Places

2010-12-03 Thread Brian Reilly
> > >>That's the exact use case for FilteredActivityMapper and > >>CachingActivityMapper (and how they're used AFAICT in "scaffold" > >>applications generated by String Roo for the "master" activities). > Thanks for the confirmation, Thomas. I felt like it was a bit cumbersome to use, but it makes

Re: GWT MVP Activities and Places

2010-12-01 Thread Brian Reilly
I haven't done this in a real project yet, but I was experimenting with something similar. I think I was able to get this kind of behavior by wrapping the ActivityMapper implementation in a CachingActivityMapper and wrapping that in a FilteredActivityMapper. The idea is that the filtered activity m

Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-11-30 Thread Brian Reilly
; http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84 > > I am going to start working on a new project, and I'm afraid based on > Ray Ryan's comment, GWT 2.1 MVP is too experimental, > and there is a very high risk that GWT 2.2 would be dramatica

Re: FlowPanel vs. HorizontalPanel

2010-11-30 Thread Brian Reilly
an operable > FlowPanel, since all the ways of binding them together involve Block > Elements? (Or is there a way of sticking two Widgets together (other > than a custom widget), that doesn't use a block element?) > > Greg > > On Nov 30, 12:06 pm, Brian Reilly wrot

Re: "Large scale application development and MVP" tutorial / no Places or Activities

2010-11-30 Thread Brian Reilly
The fact that the Activities and Places documentation is under the heading "MVP Framework" in the GWT documentation and contains statements like "An * activity* in GWT 2.1 is analogous to a presenter in MVP terminology" (recently discussed in another thread: http://groups.google.com/group/google-we

Re: FlowPanel vs. HorizontalPanel

2010-11-30 Thread Brian Reilly
On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty wrote: > I have created a FlowPanel that contains 4 ListBoxes and a button. I > wanted to put some space between the items, so I added empty > HorizontalPanels (with padding: 3px;) as spacers in between each > item. FlowPanel responded by placing

Re: Opening a new Window with a Widget in GWT

2010-11-30 Thread Brian Reilly
I'd create a separate HTML file that hosts the application module (or a different module). You can inspect the URL and/or history token as appropriate to decide what widget to view and any data you may need to preload it with. The trick then is that I assume you'd want to communicate events back to

Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-11-30 Thread Brian Reilly
Another option would be to look at a 3rd party framework. As Thomas pointed out, the GWT team isn't trying to address every use case, and that's where pulling in other frameworks can help. There's no shame in recognizing that you have a complex use case and using any tools available to help. I have

Re: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-19 Thread Brian Reilly
Ashton, It's good that you're doing this. I think we need some good examples of how to put together a GWT application using GWT 2.0/2.1 features, GIN, etc. I took a quick look at some of the code (still planning to look more) and I have a couple of comments. * I almost did the same thing as you

Re: GWT MVP ActivityMapper with GIN

2010-11-19 Thread Brian Reilly
This is going to be a recurring question here and the source of much frustration for anyone who doesn't ask or read this group. It would be nice if someone would update that piece of the documentation. -Brian On Tue, Nov 16, 2010 at 10:35 PM, Ashton Thomas wrote: > > http://groups.google.com/gro

Re: Organizing GWT modules

2010-09-20 Thread Brian Reilly
a. The final product should only contain what is actually used in the final module being compiled. However, I think you may experience longer compilation times if there is a lot of code not being used. I've heard stories of people seeing huge differences in compilation when inheriting incubator mod

Re: Can we run selenium tests in GWT dev mode?

2010-09-20 Thread Brian Reilly
It should work fine. Just make sure that the URL that you point your selenium test at contains the gwt.codesvr query parameter. -Brian On Fri, Sep 17, 2010 at 4:18 AM, Andrey wrote: > That doesn't work. My question is: how should we run selenium in dev > mode? > > On Sep 16, 6:13 pm, András Csá

Re: google font api integration

2010-07-24 Thread Brian Reilly
Right. ui:style src looks for local CSS files relative to the .ui.xml file. I think you have 2 options: 1. Load the font on the host page. 2. Add a stylesheet to your GWT module that includes this line: @import url(http://fonts.googleapis.com/css?family=Lobster); As described in the "Advance

Re: Sync AJAX ( instead of async)

2010-07-21 Thread Brian Reilly
Could you get the same effect by preventing user input during your server request, either by finding all of the controls/links and disabling them or overlaying something that receives and swallows all events? At least that way, you're not locking up the browser completely. Is there some other funct

Re: New Java Documentation Tool from Sencha

2010-07-19 Thread Brian Reilly
It looks like some doc content isn't being displayed. I happened to go to com.extjs.gxt.ui.client.widget.Label and viewed the source and say a block. However it's not showing up in the app anywhere that I could see. -Brian On Jul 16, 3:17 am, Abraham Elias wrote: > We're very excited to share t

Re: DeferredCommand. When should an RPC use it?

2010-07-19 Thread Brian Reilly
I don't know about addPause, but I think that DeferredCommand is primarily for cases where you need to do something with the DOM before it's actually available. For example, you can put a setFocus call in a DeferredCommand block before the element that's receiving focus has been added to the DOM (a

Re: layoutpanels and actual results

2010-07-11 Thread Brian Reilly
The other thing that I was just reminded of from another post is to make sure that you're using the appropriate root panel. Specifically, again if you're using layout panels, you need to use a RootLayoutPanel. -Brian On Jul 11, 10:33 am, Brian Reilly wrote: > It would help

Re: layoutpanels and actual results

2010-07-11 Thread Brian Reilly
It would help to know what specifically you were trying to do (there are a lot of different layouts on the page you linked to) and how it wasn't working for you. One common mistake that people make when starting out with layout panels is not using standards mode. It's documented on that page, but y

Re: Shared CSS

2010-07-08 Thread Brian Reilly
Assuming the GUI library you mentioned is a GWT module, the easiest thing to do is to reference the CSS file from the module definition file: Then make sure that Library.css is in a package named "public" next to the module definition file. The CSS will then be automatically loaded when the

Re: More than one module

2010-07-01 Thread Brian Reilly
You could also check out gwt-multipage (http://code.google.com/p/gwt- multipage/) which basically does this type of switching, but it generates the switching code for you based on annotated entry points. You can switch based on a URL pattern (and hopefully soon by a javascript token variable... and

Re: GWT project with multiple pages

2010-06-18 Thread Brian Reilly
entirely new application where GWT is the primary framework, which will be reasonably easy to do. The other way to look at it is that there's no way we could adopt GWT at all if we weren't able to take this incremental approach. -Brian On Jun 17, 3:14 am, Stefan Bachert wrote: >

Re: GWT project with multiple pages

2010-06-16 Thread Brian Reilly
This is a technique that I'm finding useful for using GWT to implement new features in an existing web application. The application already has a configuration-driven menu system that effectively resolves to a separate HTML file for each page. If I want to use GWT to implement new pages, I need to

Re: Seeing RangeError: Maximum call stack size exceeded. with Safari 5 and our GWT 2.0.3 app

2010-06-10 Thread Brian Reilly
Also this thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3886f3c851bdefdc On Jun 10, 9:33 am, Brian Reilly wrote: > This is being discussed in another thread: > > http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > -Brian &

Re: Seeing RangeError: Maximum call stack size exceeded. with Safari 5 and our GWT 2.0.3 app

2010-06-10 Thread Brian Reilly
This is being discussed in another thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e4e2694eba39f93d -Brian On Jun 8, 11:07 am, matthew jones wrote: > Anyone else having this issue? -- You received this message because you are subscribed to the Google Groups "Go

Re: GWT and Spring - with Spring Web MVC or without it?

2010-06-10 Thread Brian Reilly
I've had good luck with the second (non-invasive) approach. A coworker of mine implemented the first (using Spring MVC) approach and it did work for the most part. However, we aren't otherwise using Spring MVC and don't have any broad expertise in it, so I was initially confused when looking at it.

  1   2   >