1. #1
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default UiBinder problem -- No class matching ContentPanel

    UiBinder problem -- No class matching ContentPanel


    I get this error when the devserver tries to compile the module:

    [ERROR] No class matching "ContentPanel" in urn:import:com.sencha.gxt.ui.client.widget Element <gxt:ContentPanel headingText='BorderLayout UiBinder Example'> (:12)

    I was trying to copy the BorderLayout example from the GXT 3 demo application but it doesn't work. I checked the GXT3 jar and ContentPanel is there in the correct package.

    My UiBinder file:
    Code:
    <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
    <ui:UiBinder 
    	xmlns:ui='urn:ui:com.google.gwt.uibinder' 
    	xmlns:border="urn:import:com.sencha.gxt.ui.client.widget.container.border"
      	xmlns:gxt="urn:import:com.sencha.gxt.ui.client.widget">
     
      <border:BorderLayoutContainer>
        <border:north>
        </border:north>
        <border:west>
        </border:west>
        <border:center><gxt:ContentPanel headingText="BorderLayout UiBinder Example"></gxt:ContentPanel></border:center>
        <border:east>
        </border:east>
        <border:south>
        </border:south>
      </border:BorderLayoutContainer>
    </ui:UiBinder>

  2. #2
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default


    Code:
    <sarcasm>
         I'm really glad that Sencha and the GXT team take user-reported issues seriously.
    </sarcasm>

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    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


    Make sure the namespace you reference in the UiBinder tag points to the package that the component is in. You listed "xmlns:gxt="urn:import:com.sencha.gxt.ui.client.widget"", which is where the class listed in "gxt:ContentPanel" must be. Classes have moved a little in svn since that release, but make sure you are pointing to the correct package.

    Re: delay - we don't deliberatly ignore the issues, but there are a lot of messages to read... I usually hang out in #extgwt and ##gwt on freenode if you want some immediate attention, at least if i'm signed on...

  4. #4
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default


    Looking in the gxt3 jar file, ContentPanel is in fact in that place. The code compiles fine, and I can create UIs in pure Java -- only when I used UiBinder did I see this problem.

    Thanks for the help, but as I mentioned in another forum post (responding to someone else's disappointment that no one responded to them, either), I've already begun development with a different GWT framework. As far as "immediate attention goes, you'll notice that I originally posted this issue nearly 3 weeks ago. My team is already on our second sprint using SmartGWT.

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    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


    I'm sorry to hear that this hasn't worked for you. I can confirm that your package appears to be correct as of the DP4 release, and it appears to work in the examples released with that jar, and still don't see why this example didn't work for you.

    I'm glad you've got a widget library that appears to do the job for you, and I hope you have more luck working with it than I have - I started with SmartGWT on one of my first GWT projects, and ended up moving to GXT to solve the issues I faced there.

    Thanks for sticking around long enough to give feedback, we do appreciate the critique, and hopefully will do better as we move closer to an actual release.

Thread Participants: 1

Tags for this Thread