Doc problem? Renaming Modules section on http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules
The Renaming Modules section (http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules) has a weird example for renaming. From the text, it looks like the xml should have module rename-to=com.foo.WorkingModule.gwt.xml, but the example code renames MyModule to MyModule. Is the xml given in the example just wrong (and should be module rename-to=com.foo.WorkingModule.gwt.xml) or am I missing something? Here's the section: Renaming modules The module element supports an optional attribute rename-to that causes the compiler to behave as though the module had a different name than the long, fully-qualified name. Renaming a module has two primary use cases: to have a shorter module name that doesn't reflect the actual package structure, this is the most typical and recommended use case to create a working module to speed up development time by restricting the number of permutations com.foo.WorkingModule.gwt.xml: module rename-to=com.foo.MyModule inherits name=com.foo.MyModule / set-property name=user.agent value=ie6 / set-property name=locale value=default / /module When WorkingModule.gwt.xml is compiled, the compiler will produce only an ie6 variant using the default locale; this will speed up development compilations. The output from the WorkingModule.gwt.xml will be a drop-in replacement for MyModule.gwt.xml because the compiler will generate the output using the alternate name. (Of course, if com.foo.MyModule was itself renamed, you would just copy its rename-to attribute.) -- 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 unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Doc problem? Renaming Modules section on http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules
On Wed, Mar 30, 2011 at 10:53 AM, Jens jens.nehlme...@gmail.com wrote: The second use case is when you have an app that needs many permutations (e.g. if this app supports 3 languages and all 5 browser engines you will have 3 * 5 permutations). In the doc this would be MyModule.gwt.xml in the package com.foo. The doc assumes that MyModule does not have a rename-to in its xml and thus it will be compiled to /war/com.foo.MyModule. Thanks - I think I get it now, and the doc is correct (although I think it could use some of your explanation added). -- James Moore ja...@restphone.com http://jamesmoorecode.blogspot.com/ -- 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 unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do you style td elements in a CellTable?
I'd like to apply styles like the ones in CellTable#renderRowValues, but based on some conditions of my own. The current set of a dozen or so styles looks completely hardcoded in that method; there's no logic in renderRowValues I see that would let me get in there and apply my own style in addition to the dozen or so that are there. Ideally I'd like renderRowValues to just ask the cell what styles should be applied to the td - is there a way to do that that I'm missing? -- James Moore ja...@restphone.com http://jamesmoorecode.blogspot.com/ -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Turn off headers and footers for a 2.1 CellTable?
What's the right way to turn off headers and footers for a 2.1 CellTable? I just want the body of the table. -- James Moore ja...@restphone.com http://jamesmoorecode.blogspot.com/ -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Center of DockLayoutPanel gives incorrect size to VerticalPanel
I'm creating a structure that looks like: dockLayoutPanel verticalPanel scrollPanel grid But if I fill the grid with rows so it's larger than the screen, the vertical panel size extends below the bottom of the dockLayoutPanel's center region. Why? If I skip the vertical panel, and have the scrollpanel added to the docklayoutpanel directly, the scroll panel size is what I'd expect. Flipping between addUsingVerticalPanel and addWithoutUsingVerticalPanel should show the problem. public class Playground implements EntryPoint { public void onModuleLoad() { RootLayoutPanel rlp = RootLayoutPanel.get(); DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PX); dockLayoutPanel.setSize(100%, 100%); ScrollPanel scrollPanel = new ScrollPanel(); scrollPanel.setAlwaysShowScrollBars(true); Grid grid = createGrid(); addUsingVerticalPanel(dockLayoutPanel, scrollPanel, grid); //addWithoutUsingVerticalPanel(dockLayoutPanel, scrollPanel, grid); rlp.add(dockLayoutPanel); } private Grid createGrid() { Grid grid = new Grid(); int nRows = 50; grid.resize(nRows, 20); for (int i = 0; i nRows; i++) { Label l = new Label(The number is + i); grid.setWidget(i, 0, l); } return grid; } private void addUsingVerticalPanel(DockLayoutPanel dockLayoutPanel, ScrollPanel scrollPanel, Grid grid) { VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.add(scrollPanel); scrollPanel.setWidget(grid); grid.setSize(100%, 100%); dockLayoutPanel.add(verticalPanel); } private void addWithoutUsingVerticalPanel(DockLayoutPanel dockLayoutPanel, ScrollPanel scrollPanel, Grid grid) { scrollPanel.setWidget(grid); grid.setSize(100%, 100%); dockLayoutPanel.add(scrollPanel); } } -- James Moore ja...@restphone.com http://jamesmoorecode.blogspot.com/ -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Tips for identifying why DockLayoutPanel is setting the width of a button to zero?
I'm trying to figure out why DockLayoutPanel is setting the width of a button to zero. Any tips for things that normally cause problems with DockLayoutPanel? -- James Moore ja...@restphone.com http://jamesmoorecode.blogspot.com/ -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.