Question

Why there're no info about how to use HTMLTable in UiBinder on the internet?

I tried this simple code:

           <g:HTMLTable>
               <g:row>
                   <c:cell>
                       <b>My Info</b>
                   </c:cell>
               </g:row>
           </g:HTMLTable>

After ran, it showed No class matching "row" in urn:import:com.google.gwt.user.client.ui: <g:row> error.

Is there anyone know how to use it?

Was it helpful?

Solution

There's nothing said because there's to say.

To begin with, HTMLTable is an abstract class, base of FlexTable and Grid. FlexTable cannot have its children configured via UiBinder, contrary to Grid (and this is documented in its javadoc).

If you're going to change the contents of the table dynamically after it's constructed, then you can use a Grid (or FlexTable). Otherwise, there's no reason to use such widgets, just put a <table> within an HTMLPanel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top