<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi<div><br></div><div><b>I am using GeoExt2 with OpenLayers. I am trying to Export my vector layer features to a grid like here: <a href="http://workshops.opengeo.org/geoext/wfs/grid.html" style="font-size: 10pt; ">http://workshops.opengeo.org/geoext/wfs/grid.html</a></b></div><div><b><font size="2">but I keep getting an empty grid. I see the right </font>result from geoserver<font size="2"> in firebug. all features are retrieved but nothing is displaying in the grid.</font></b></div><div><b style="font-size: 10pt; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><br></b></div><div><b style="font-size: 10pt; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">would anyone take a look and let me know if I miss something ?</b></div><div><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> gridPanel = new Ext.grid.GridPanel({ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> title: "Feature Grid", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> store: new GeoExt.data.FeatureStore({ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> fields: [ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> {name: "id", type: "int"}, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> {name: "name", type: "string"} </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> ], </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> proxy: new GeoExt.data.proxy.Protocol({ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> protocol: new OpenLayers.Protocol.WFS({ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> url: "</span><a href="http://ip/geoserver/wfs" target="_top" rel="nofollow" link="external" style="color: rgb(85, 26, 139); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">http://IP/geoserver/wfs</a><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> featureType: "myLayer", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> featureNS: "</span><a href="http://mapmap.org/" target="_top" rel="nofollow" link="external" style="color: rgb(85, 26, 139); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">http://mapmap.org</a><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> srsName: "EPSG:3857", </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> version: "1.1.0" </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> }) </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> }), </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> autoLoad: true </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> }), </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> sm: new GeoExt.selection.FeatureModel(), </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> width: 320, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> columns: [ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> {header: "id", dataIndex: "id"}, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> {header: "name", dataIndex: "name"} </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> ] </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> }); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> </span><b style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">//window to display grid </b><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> var gridWindow = new Ext.Window({ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> items: [ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> gridPanel </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> ] </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); "> }).show();</span>
</div>                                            </div></body>
</html>