I think you are asking in the wrong forum.

On 25 Feb., 16:32, usul27 <[email protected]> wrote:
> I tried to create an application using LiveGrid. Unfortunately, it is
> requesting data from the servlet, but not
> showing it.
> After hours of debugging without results I used the LiveGruid demo
> code from the showcase, but this
> shows the same problem.
>
> I guess, I missed some small thing. Any idea?
>
> Regards
> Daniel
>
> Grid creation code:
> --------------------------------------------------
>         public static Panel getGrid() {
>
>                 FieldDef[] fieldDefs = new FieldDef[] { new IntegerFieldDef
> ("number_field"),
>                                 new StringFieldDef("string_field"), new 
> DateFieldDef("date_field",
> "Y-m-d H:i:s") };
>                 RecordDef recordDef = new RecordDef(fieldDefs);
>
>                 BufferedJsonReader reader = new BufferedJsonReader
> ("response.value.items", recordDef);
>                 reader.setVersionProperty("response.value.version");
>                 reader.setTotalProperty("response.value.total_count");
>                 reader.setId("id");
>
>                 BufferedStore store = new BufferedStore(reader);
>                 store.setAutoLoad(true);
>                 store.setBufferSize(300);
>                 store.setSortInfo(new SortState("number_field", SortDir.ASC));
>                 store.setUrl("LiveGridDataProxy");
>
>                 BufferedGridView view = new BufferedGridView();
>                 //view.setLoadMask("Wait ...");
>                 view.setNearLimit(100);
>
>                 BufferedGridToolbar toolbar = new BufferedGridToolbar(view);
>                 toolbar.setDisplayInfo(true);
>
>                 BufferedRowSelectionModel brsm = new 
> BufferedRowSelectionModel();
>
>                 GridPanel grid = new GridPanel(store, createColModel());
>                 grid.setEnableDragDrop(false);
>                 grid.setSelectionModel(brsm);
>                 grid.setView(view);
>                 grid.setBottomToolbar(toolbar);
>                 grid.setWidth(400);
>                 grid.getView().setAutoFill(true);
>                 grid.getView().setForceFit(true);
>
>                 return grid;
>         }
> --------------------------------------------------
>
> gwt.xml:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><module>
>
>         <!-- Specify the app entry point class.                   -->
>         <entry-point
> class="net.matuschek.mediawatcher.web.client.MediawatcherMainWindow"/>
>
>         <inherits name="com.google.gwt.user.theme.standard.Standard"/>
>
>         <servlet path="/LiveGridDataProxy"
> class="net.matuschek.mediawatcher.web.server.LiveGridDataProxy"></
> servlet>
>         <stylesheet src="js/ext/resources/css/ext-all.css" /><!-- Inherit the
> core Web Toolkit stuff.                  --><inherits
> name="com.google.gwt.user.User" /><inherits name="com.gwtext.GwtExt">
> </inherits>
>
>         <inherits name="com.gwtextux.GwtExtUx" /><script src="js/ext/adapter/
> yui/yui-utilities.js"></script>
>         <script src="js/ext/adapter/yui/yui-utilities.js"></script>
>         <script src="js/ext/adapter/ext/ext-base.js" /><script src="js/ext/
> ext-all.js" ></script>
>
>         <script src="js/livegrid/BufferedJsonReader.js"></script>
>         <script src="js/livegrid/BufferedGridView.js"></script>
>         <script src="js/livegrid/BufferedRowSelectionModel.js"></script>
>         <script src="js/livegrid/BufferedStore.js"></script>
>         <script src="js/livegrid/BufferedGridToolbar.js"></script>
>         <script src="js/livegrid/BufferedGridDragZone.js"></script>
>
> </module>
--~--~---------~--~----~------------~-------~--~----~
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