1. #1
    Ext GWT Premium Member jorel2's Avatar
    Join Date
    Apr 2010
    Location
    Durham, NC
    Posts
    159
    Vote Rating
    0
    jorel2 is on a distinguished road

      0  

    Default Does GXT support UiBinder?

    Does GXT support UiBinder?


    Does GXT support UiBinder?

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You should use the forum search. I answered this question already 3 times the last few days. It cannot be supported because there is no API to register own parsers

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    2
    Vote Rating
    0
    MihaiMese is on a distinguished road

      0  

    Default


    previous: "Well I did use the forum search and no straight answer was found related to the UIBinder, maybe an indirect answer is given at another topic, I don't know. A link to that reply would be much appreciated if the issue was already discussed, because at the moment it's unclear if UIBinder works not only for GWT widgets but for GXT components as well; or if this feature will be implemented in the next release. Thank you for your time."

    - never mind, somehow, the search didn't came up with "GXT an UIBinder" thread.. http://www.extjs.com/forum/showthrea...T-and-UIBinder

  4. #4
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191
    Vote Rating
    3
    support_csd_kz is on a distinguished road

      0  

    Default


    Any changes with GWT 2.1 ??

  5. #5
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191
    Vote Rating
    3
    support_csd_kz is on a distinguished road

      0  

    Default


    I's become actual cos I just updated GWT Designer Beta, and it's working only with UIBinder Templaytes now!!

  6. #6
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Quote Originally Posted by support_csd_kz View Post
    Any changes with GWT 2.1 ??
    No and its still not possible because GWT does not allow custom parsers.

  7. #7
    Sencha User
    Join Date
    Dec 2009
    Posts
    57
    Vote Rating
    0
    andreiastra is on a distinguished road

      0  

    Default


    Hi Sven,

    UiBinder looks like a promising feature to me.

    What's your general opinion about future implementing of UiBinder functionality in GXT? Is there a way around custom parsers? Is there a talk about GWT planing to add them?

    Andrei

  8. #8
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Is there a way around custom parsers
    Not really.

    Is there a talk about GWT planing to add them?
    There are multiply talks on the official gwt mailinglists.

  9. #9
    Sencha - GXT Dev Team jhickman's Avatar
    Join Date
    Feb 2011
    Location
    Missouri
    Posts
    23
    Vote Rating
    2
    jhickman is on a distinguished road

      0  

    Default GXT UiBinder Support

    GXT UiBinder Support


    Although it's not officially supported by either Sencha or GWT, there's an open source project that allows using GXT widgets in UiBinder XML files. There are some frameworks that attempt to handle this by creating "adapter" classes for all GXT widgets. With this framework, you can use GXT widgets directly with zero dependencies on this library at runtime.
    http://code.google.com/p/gxt-uibinder/

    This project builds upon another project called gwt-customuibinder (http://code.google.com/p/gwt-customuibinder/), so it must be in the compile-time classpath as well. (again, no runtime dependency).

    You can see sample UiBinder code here:
    http://gxt-uibinder.appspot.com/

    It's still in early stages and will be deprecated once Sencha supports UiBinder natively, but much functionality is supported. For example, here's a small snippet on using a FormPanel:
    Code:
    <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
        xmlns:g='urn:import:com.google.gwt.user.client.ui'
        xmlns:gxt="urn:import:com.extjs.gxt.ui.client.widget"
        xmlns:form="urn:import:com.extjs.gxt.ui.client.widget.form"
        xmlns:button="urn:import:com.extjs.gxt.ui.client.widget.button">
    
      <gxt:LayoutContainer>
        <gxt:VerticalPanel spacing="10">
          <form:FormPanel heading="Simple Form" frame="true" width="350" buttonAlign="CENTER">
            <form:layoutdata type="FormData" anchorSpec="-20">
              <form:TextField fieldLabel="Name" allowBlank="false" />
              <form:TextField fieldLabel="Email" allowBlank="false" />
    ...

  10. #10
    Sencha User
    Join Date
    Feb 2011
    Posts
    2
    Vote Rating
    0
    Exclam is on a distinguished road

      0  

    Default


    Yes, that's working really good, we also use your (edit: just saw your name right now) tools.

    A small problem is, that the addition uses self-defined tags as <gxt:north>, <gxt: south> for the border layout, which are not covered by the namespaces in xmlns:gxt='urn:import:com.extjs.gxt.ui.client.widget or xmlns:grid="urn:import:com.extjs.gxt.ui.client.widget.grid

    Do you know, if these libraries have their own namespaces defined somewhere? Otherwise the IDE (in our case IntelliJ IDEA does not support code completion for these tags.

    cu,
    Guido