I am trying to make a basic grid in GWT Sencha.
it works fine , but i am not sure how to put the grid in UiBinder ,
Not sure what would be the parent widget ,
thats what i am doing
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<c:FramedPanel>
<grid:GridView ui:field="gridMain">
</grid:GridView>
</c:FramedPanel>
Error:
Expected a widget or <g:cell>, found <grid:GridView ui:field='gridMain'> Element <g:VerticalPanel> (:4
Add the following line in ui.xml
If you have already added these two lines then its fine
Here is my question and answer for you.
I guess
GridViewis your view class. Is it extends any widgets?If it extends any widgets then it will work. If not it just a class.
We can add a widget in a widget but we can’t add a class in a widget.
So if required extend the appropriate widget to GridView
For eg.
public class Gridview extends VerticalPanel