Tuesday, August 7, 2012

Re: Widget won't load with Datagrid sorthandler

Do you get any exceptions?

It seems that the problem is that you don't initialize dataGrid.

Use something like: 
@UiField(provided = true)
DataGrid<FileProperties> dataGrid;

And in constructor:

dataGrid = new DataGrid<FileProperties>(KEY_PROVIDER);





Den tisdagen den 7:e augusti 2012 kl. 15:22:44 UTC+2 skrev RAJ:
Hi,

In my project, when I load only the composite with bare elements, it will load fine, but when I have the sorthandler defined for datgrid, the composite won't load at all. I have attached the code for entrypoint and composite.

If the constructor is changed only to have initwidget, then the composite will load fine.

I am using Eclipse Juno and GWT 2.5 rc1 on Windows 7, and testing on chrome.

Please suggest a solution.

Thanks.





--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/72kxfR56oisJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment