Converting an app to use generics is a pain, but once you've done it, it does 
make a lot of sense. It cuts down on a lot of casting and helps keep things 
type-safe. It's also a reminder about exactly what is supposed to be in each 
collection.

It's well worth taking the time to do the conversion to generics.

Paul

On 19/08/11 03:39, David wrote:
Thanks Paul for you detail explaination. my model is as below:
public class CTableData implements IsSerializable {
    public String tableId;
    public int currentPage;
    public int lastPage;
    public long totalRows;

    public List <com.compositesw.web.client.ui.table.CRowData>rows = new ArrayList(); 
// List<CRowData>

    public Map <java.lang.String,java.util.List> filterStates = new HashMap(); // 
Map<String,Object> (filterName & filterState)

    public long totalErrorStatusRows;
    public long totalWarningStatusRows;
}

So we must specify the type of rows and filterStates? if it is, I must modify 
the codes in many place of my project, that worked fine in old version of GWT 
1.4.60. do we have any other better solution for this?

Thanks,
David


--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to