In Google's documentation for CelLTree,
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltree

the sample code provided for CellTreeExample2 doesnt compile:
http://google-web-toolkit.googlecode.com/svn/trunk/user/javadoc/com/google/gwt/examples/cellview/CellTreeExample2.java

the problem is in :

                        Cell<Composer> cell = new AbstractCell<Composer>() {
                          @Override
                          public void render(Context context, Composer value,
SafeHtmlBuilder sb) {
                            if (value != null) {
                              sb.appendEscaped(value.getName());
                            }
                          }
                        };

and

                        ListDataProvider<Playlist> dataProvider = new
ListDataProvider<Playlist>(
                            ((Composer) value).getPlaylists());
                        Cell<Playlist> cell = new AbstractCell<Playlist>() {
                          @Override
                          public void render(Context context, Playlist value,
SafeHtmlBuilder sb) {
                            if (value != null) {
                              sb.appendEscaped(value.getName());
                            }
                          }
                        };


IDE suggests:

        - The method render(AutoBeanVisitor.Context,
ApplicationMain.Composer, SafeHtmlBuilder) of type new
AbstractCell<ApplicationMain.Composer>(){} must override or implement
a supertype
         method

        - Context cannot be resolved to a type


the problem is "Context".
do you know what is the correct type for Context ? is it
AutoBeanVisitor ?

h

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

Reply via email to