Wednesday, September 15, 2010

Declare object on GWT UiBinder

UiBinder is good. It can initial the UI (layout, widgets…) based on an xml.

Let’s say a CellTable should be added on UI. What do we need to do on xyz.ui.xml?

Adding name space

xmlns:c="urn:import:com.google.gwt.user.cellview.client"

Adding Cell Table



I guess when UiBinder faces “c:CellTable”, it looks into the name space and knows where to get class "CellTable". The name space keeps the package information of the CellTable java class.

No comments:

Post a Comment