[Geoserver-devel] WFS PAGING

My GeoServer instance is running version 2.1.1
Hello,

       I am new guy to Geo server open layers and ext js,now i am trying to
get wfs pagination when i set start index and count property.i saw that two
property in open layers API.Correctly i don't know why these two property
not working.Please tell any tips,i waiting for your reply
                                                                                           
thanks to all

wfsProtocol=new OpenLayers.Protocol.WFS({
                                                                                               
url: 'http://localhost:8080/geoserver/wfs’,
                                                                                               
featureType:layer,
                                                                                               
srsName: "EPSG:4326",
                                                                                               
version: '1.1.0',
                                                                                               
featureNS:"http://kcubeconsulting.com/geobrowser",
                                                                                               
featurePrefix: "VBL"
                                                                                        
});

wfsProtocol.read({
                                                        
                                                        startIndex:20,
                                                        count: 4,
                                                // maxFeatures: 15,
                                                        callback:
function(response) {
                                                                                
feat = response.features;
                                                                                
featureStore = new Ext.ux.data.PagingStore({
                                                                                
reader: new GeoExt.data.FeatureReader({}, [
                                                                                                                               
{name: "state_name", type: "string"},
                                                                                                                               
{name: "country_id", type: "int"}
                                                                                                                       
]),
                                                                                                                       
totalProperty : 35,
                                                                                                                       
data: feat
                                                                               
});
                                                                               
gridPanel = new Ext.grid.GridPanel({
                                                                                         
store: featureStore,
                                                                                         
columns: [
                                                                                                                                       
{
                                                                                                                                               
header: "State Name",
                                                                                                                                               
width: 200,
                                                                                                                                               
dataIndex: "state_name"
                                                                                                                                       
},
                                                                                                                                       
{
                                                                                                                                               
header: "Country Id",
                                                                                                                                               
width: 100,
                                                                                                                                               
dataIndex: "country_id"
                                                                                                                                                
},
                                                                                                                                                                
{
                                                                                                                                               
header: "Zoom to feature",
                                                                                                                                                
xtype:'actioncolumn',
                                                                                                                                               
items: [{
                                                                                                                                                                       
icon:'locked.png',
                                                                                                                                                                       
tooltip:'please click on this icon.',
                                                                                                                                                                       
handler: function(grid, rowIndex, colIndex) {
                                                                                                                                                                                        
alert("lock");
                                                                                                                                                                               
}
                                                                                                                                                                        
}]
                                                                                                                                        
}
                                                                                         
],
                                                                                         
stripeRows: true,
                                                                                 
// autoExpandColumn: 'company',
                                                                                         
height:350,
                                                                                         
width:600,
                                                                                         
title:'Array Grid',

bbar: new Ext.PagingToolbar({
                                                                                                 
store : featureStore,
                                                                                                 
pageSize : 4,
                                                                                                 
displayInfo : true
                                                                                               
}),
                                                                                               
viewConfig: {
                                                                                                       
forceFit: true
                                                                                               
}
                                                                         
});
                                                                         
featureStore.loadData(feat);
                                                                         
gridPanel.store.load({params:{start: 0, limit: 4}});
                                                                          
var gridWindow = new Ext.Window({
                                                                                                                       
items: [gridPanel]
                                                                                
}).show();
                                                                                
                                                        }
               
                });

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-PAGING-tp6869019p6869019.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.