I think you should probably dig into OpenLayers\Format\GML.js to see if fid is correctly retrieved when GML response from Geoserver was parsed when you turned the layer. I guess fid attribute in your features are empty.
Arno wrote: > > Hi all, > > I've been trying the WFS-T support for inserting polygons and it works > greats (polygons added in the PostGIS database, using GeoServer 1.6). I > tried also modifying features with the ModifyFeature Controls (based on > the > online example). Using the modifyOptions, I changed the state of the > feature: > > feature.state = OpenLayers.State.UPDATE; > > and then tried to commit the WFS layer. But I received an error from the > GeoServer (log traces something like "features is not available") and the > transaction failed. Before asking something on the GeoServer list, is > there > anything I missed when trying to modify the feature with OpenLayers? > > For deleting, I used the SelectFeature control, overrode the onSelect > method > to mark the feature as deleted: > > feature.state = OpenLayers.State.DELETE; > > and when committing the WFS layer, OpenLayers displayed a message saying > that the fid was missing. Same as the update question, is there anything I > missed when trying to mark the feature? > > Thanks! > > Arnaud > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/WFS-T-delete-update-tp14843989p14873181.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
