[Users] problem with WFS-T tutorial: cannot add FeatureSelectionModel

Alex Dean alex at crackpot.org
Fri Jan 28 16:51:56 CET 2011


Hello.  I'm going through this tutorial using my local GeoServer installation.  I am using GeoExt 1.0, OpenLayers 2.10, and ext.js 3.2.1.
http://workshops.opengeo.org/geoext/wfs/layer.html

Code looks like this thusfar: http://pastie.org/1506095  It's the same as the example, with modifications to retrieve local data.

Everything works as expected until I attempt to add 'sm: new GeoExt.grid.FeatureSelectionModel()' to my GridPanel.

When I do that, I receive the error: "layer.map is null", in reference to "layer.map.addControl(selectControl)" on line 153 of FeatureSelectionModel.js.  If I remove this code, the map & grid render correctly.

This seems similar to the problem reported in https://geoext.org/ticket/396, but I am wondering if there is some other explanation.  I've tried explicitly setting the layer's map property ("layer.map = mapPanel.map").  This removes the error I cited above, but raises new ones, and I suspect this isn't the correct way to solve the problem.

thanks,
alex


More information about the Users mailing list