How to addStyleName() in UiBinder ?

2009-12-26 Thread vinays
Hi,

Is there a way to add style to a widget and not set? Currently if I
write

g:TextBox styleName=mytextbox /

what it does is(pseudo) :

TextBox t = new TextBox();
t.setStyleName(mytextbox);

instead what I want is :

t.addStyleName(mytextbox);

If there is a solution I would request GWT team to add it in
documentation -- would be really helpful.

Thanks in anticipation!
--
Vinay

--

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.




Re: Announcing GWT 2.0 Milestone 2

2009-11-12 Thread vinays
Why the download is marked as deprecated!

On Oct 22, 10:43 pm, John LaBanca jlaba...@google.com wrote:
 Hi everyone,

 We are excited to release the second milestone build for GWT 2.0
 today. This milestone is essentially feature complete, and provides
 somewhat more stability in the various bits of core functionality that
 will be coming in GWT 2.0.

 Please download the distribution 
 from:http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2

 Milestone 2 contains a couple new features and changes from MS1:
 * Layout Panels: Layout panels have been refined since MS1. In
 particular, the TabLayoutPanel has been introduced, and UiBinder has
 been extended to support it and StackLayoutPanel. Layout panels use
 native css, so they resize with the window smoothly (IE6 uses active
 layout to achieve the same effect, but it is still fast in most
 cases). When paired with UIBinder, users can create applications
 faster than ever. (Read more about UiBinder under Declarative User
 Interface, below.)

 Breaking changes in MS2:
 * The way arguments are passed to the GWT testing infrastructure has
 been revamped (and changed slightly from MS1). There is now a
 consistent syntax to support arbitrary runstyles, including user-
 written with no changes to GWT. Though this does not affect common
 launch configs, some of the less common ones will need to be updated.
 For example:
     * '-selenium localhost:/*firefox' has become
       '-runStyle Selenium:localhost:/*firefox'
     * '-remoteweb rmi://localhost/ff3' has become
       '-runStyle RemoteWeb:rmi://localhost/ff3'
     * '-manual 5' has become '-runStyle Manual:5'
 Note: run style names must be capitalized (ex. Selenium).

 Known Issues in MS2:
 * LayoutPanels only work in strict mode, but new GWT applications are
 created in quirks mode by default. You must manually switch your
 application to strict mode by changing the DOCTYPE at the top of your
 application's html file. Existing widgets that do not work correctly
 in strict mode (ex. StackPanel) now have a LayoutPanel counterpart
 that does work in strict mode (ex. StackLayoutPanel).
 * Connecting multiple browsers at the same time in development mode
 can cause the development mode server to crash. You can avoid this by
 waiting for each browser to start your app before connecting another
 browser.
 * If you are planning to run the webAppCreator, i18nCreator, or the
 junitCreator scripts on Mac or Linux, please set the executable bits
 by doing a 'chmod +x *Creator'
 * Our HtmlUnit integration is still not complete. Additionally,
 HtmlUnit does not do layout. So tests can fail either because they
 exercise layout or they hit bugs due to incomplete integration. If you
 want such tests to be ignored on HtmlUnit, please annotate the test
 methods with @DoNotRunWith({Platform.Htmlunit})

 To reiterate, here are a few key notes from the Milestone 1
 announcement...
 * Terminology changes: We're going to start using the term
 development mode rather than the old term hosted mode. The term
 hosted mode was sometimes confusing to people, so we'll be using the
 more descriptive term from now on. For similar reasons, we'll be using
 the term production mode rather than web mode when referring to
 compiled script.

 * Changes to the distribution: Note that there's only one download,
 and it's no longer platform-specific. You download the same zip file
 for every development platform. This is made possible by the new
 plugin approach used to implement development mode (see below). The
 distribution file does not include the browser plugins themselves;
 those are downloaded separately the first time you use development
 mode in a browser that doesn't have the plugin installed.

 * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided
 a special-purpose embedded browser to debug your GWT code. In 2.0,
 the web page being debugged is viewed within a standard browser.
 Development mode is supported through the use of a native-code plugin
 for each browser. In other words, you can use development mode
 directly from Safari, Firefox, IE, and Chrome.

 * Code Splitting: Developer-guided code splitting allows you to chunk
 your GWT code into multiple fragments for faster startup. With code
 splitting, you can arrange to load just the minimum script needed to
 get the application running and the user interacting, while the rest
 of the app is downloaded as needed.

 * Declarative User Interface: GWT's UiBinder now allows you to create
 user interfaces mostly declaratively. Previously, widgets had to be
 created and assembled programmatically, requiring lots of code. Now,
 you can use XML to declare your UI, making the code more readable,
 easier to maintain, and faster to develop. The Mail sample has been
 updated to use the new declarative UI.

 * Bundling of resources (ClientBundle): GWT has shipped with
 ImageBundles since GWT v1.4, giving developers automatic spriting of
 images.