As a side note, I've got this working for Mapserver. However, Mapserver backported the startPosition parameter from WFS 2.0 to WFS 1.1 as a vendor-specific parameter to get this working.
Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS [email protected] On Nov 8, 2010, at 2:37 PM, Andreas Hocevar wrote: > Hi, > > neither the ProtocolProxy, nor the OpenLayers protocols, nor the underlying > WFS service support server side paging at this point. So you won't have much > luck trying to use the Ext.PagingToolbar. > > Regards, > Andreas. > > On Nov 8, 2010, at 14:23 , antoniofacno wrote: > >> Hello, >> >> I've got a Vector layer wich loaded from GeoServer using a ProtocolProxy >> and GML format. The grid shows all features (not the pageSize limit) of >> the layer, and I can see the pager but when click over pager controls it >> loads something but the grid view doesn't change. Is something like both >> stores (grid and pager) were not connected. >> >> My code is this, and I don't know what could be happening :( >> >> >> var labores = new OpenLayers.Layer.Vector( >> "Labores", >> { >> displayInLayerSwitcher: false, >> visibility: false >> } >> ); >> >> // create feature store, binding it to the vector layer >> var laborStore = new GeoExt.data.FeatureStore({ >> layer: labores, >> fields: [ >> {name: 'fecha', type: 'date'}, >> {name: 'horas', type: 'float'}, >> {name: 'jornales', type: 'float'}, >> {name: 'cliente', type: 'strig'}, >> {name: 'finca_id', type: 'string'}, >> {name: 'labor', type:'string'} >> ], >> proxy: new GeoExt.data.ProtocolProxy({ >> protocol: new OpenLayers.Protocol.HTTP({ >> url: >> "http://getcloud.info:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=acano:labores", >> format: new OpenLayers.Format.GML() >> }) >> }), >> autoLoad: true >> }); >> >> var gridPanel = new Ext.grid.GridPanel( >> { >> title: "Labores", >> renderTo: "resumen", >> store: laborStore, >> autoHeight: true, >> loadMask: true, >> columns: [{ >> header: "finca", >> width: 100, >> sortable: true, >> dataIndex: "finca_id" >> }, >> { >> header: "cliente", >> width: 100, >> sortable: true, >> dataIndex: "cliente" >> }, >> { >> header: "labor", >> width: 100, >> sortable: true, >> dataIndex: "labor" >> }, >> { >> header: "fecha", >> width: 100, >> sortable: true, >> renderer: Ext.util.Format.dateRenderer('d/m/Y'), >> dataIndex: "fecha" >> }, { >> header: "horas", >> width: 100, >> sortable: true, >> dataIndex: "horas" >> },{ >> header: "jornales", >> width: 100, >> sortable: true, >> dataIndex: "jornales" >> }], >> sm: new GeoExt.grid.FeatureSelectionModel({ >> layer: labores >> }), >> bbar: [], >> tbar: [new Ext.PagingToolbar({ >> pageSize: 25, >> store: laborStore, >> displayInfo: true, >> displayMsg: 'datos {0} - {1} of {2}', >> emptyMsg: "No Datos" >> })] >> } >> ); >> >> >> Best whises, >> _______________________________________________ >> Users mailing list >> [email protected] >> http://www.geoext.org/cgi-bin/mailman/listinfo/users > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
