1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    10
    Vote Rating
    0
    yurx is on a distinguished road

      0  

    Default GXT 3.0 and WindowBuilder

    GXT 3.0 and WindowBuilder


    I am evaluating the effort of switching from GXT 2 to GXT 3. One of my areas of concern is the ability to build UI from Eclipse using WindowBuilder plugin. GXT 2 support in WindowBuilder is quite good. It doesn't look like GXT 3 is supported at the moment. Some of the components (e.g. ComboBox with its new constructor arguments) don't seem to play alone with the WindowBuilder plugin.

    Can you shed some light on this issue please.
    Thanks.

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2011
    Location
    Amsterdam
    Posts
    54
    Vote Rating
    -6
    sblommers is infamous around these parts sblommers is infamous around these parts

      0  

    Default


    Same here. Keep getting:

    [ERROR] Error occured loading property: [ERROR] Deferred binding failed for 'com.sencha.gxt.core.client.GXT.UserAgent'; expect subsequent failures

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2011
    Location
    Amsterdam
    Posts
    54
    Vote Rating
    -6
    sblommers is infamous around these parts sblommers is infamous around these parts

      0  

    Default


    Quote Originally Posted by sblommers View Post
    Same here. Keep getting:

    [ERROR] Error occured loading property: [ERROR] Deferred binding failed for 'com.sencha.gxt.core.client.GXT.UserAgent'; expect subsequent failures
    Oh, adding
    <set-property name="gxt.user.agent" value="safari3" />
    <set-property name="user.agent.os" value="linux" />

    to the module fixed the ERRORS but now I am at the same level as you i guess with:


    [ERROR] Rebind result 'com.sencha.gxt.theme.base.client.container.ViewportBaseAppearance' has no default (zero argument) constructors.[ERROR] Failed to create an instance of 'com.sencha.gxt.widget.core.client.container.Viewport' via deferred binding

  4. #4
    Sencha Premium Member
    Join Date
    Feb 2011
    Location
    Amsterdam
    Posts
    54
    Vote Rating
    -6
    sblommers is infamous around these parts sblommers is infamous around these parts

      0  

    Default


    I see that someone already reported the Viewport issue and it is already fixed http://www.sencha.com/forum/showthread.php?151548-Viewport-bug&p=662607

    S
    orry for double posting this.

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    All of the support in WindowBuilder for GXT 2 is based on code they've written within WindowBuilder itself. At least from the docs pages, I do not see a way that support can be added to WindowBuilder to add support for new custom Widgets - until that support is added, or until they make their own changes to support 3.0, widgets without default constructors will not be usable.

    http://code.google.com/javadevtools/...#CustomWidgets
    http://code.google.com/javadevtools/...s/gwt/gxt.html

    As in 2.x, ComboBox must have a ListStore to be of any use. A Cell or a LabelProvider is also required in 3 to describe how to render the content, rather than just a string to indicate which property to use (as 3.0 is not using the string-y reflection found in 2).

  6. #6
    Sencha User
    Join Date
    Jun 2010
    Posts
    10
    Vote Rating
    0
    yurx is on a distinguished road

      0  

    Default


    @Colin. When you say "they" do you mean Google/WindowBuilder developers? Does it mean that GXT team has nothing to do with GXT support by the WindowBuilder?

  7. #7
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Correct - we've not had any input at all into how WindowBuilder works with GXT - to my knowledge, we've not been invited to either.

    Taking a quick look at their bug tracker, it isn't clear if they intend to make it possible to build something versioned outside WindowBuilder itself to add support for other widget libraries. Closest bug i see is https://bugs.eclipse.org/bugs/show_bug.cgi?id=349692, but the lack of content makes it kinda hard to tell what is going on.

    I know there is interest in getting GXT 3 support, but from what I know, that will involve getting patches submitted to WindowBuilder itself, which needs to wait at least until the 3.0 API is finalized and we've learned how to build within the app, as opposed to just building a plugin for it. If there were a plugin architecture, it'd be easier to consider keeping it up to date as the learning curve should be a little lower.

    If you investigate further and find out it isn't that bad, post back, I'm sure you'll find lots of support both on and off the GXT team to getting that going.