I am using Openlayers + geoext to perform transaction operations in postgis database using geoserver . i can insert spatial data into postgis but cannot insert other data like road name, road type in my road database.
the openlayers generates this code during transaction
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs"
service="WFS"
version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<feature:Complaint xmlns:feature="http://geoserver/postgis">
<feature:geom>
<gml:MultiCurve
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:4326">
<gml:curveMember>
<gml:LineString>
<gml:posList>85.292019896027 27.722567213659 85.303131631935 27.72224973549 85.303290371019 27.72478956084
</gml:posList>
</gml:LineString>
</gml:curveMember>
</gml:MultiCurve>
</feature:geom>
</feature:Complaint>
</wfs:Insert>
</wfs:Transaction>
in geoserver demo i add fid and id so that it looks as
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs"
service="WFS"
version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<feature:Complaint xmlns:feature="http://geoserver/postgis">
<feature:geom>
<gml:MultiCurve
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:4326">
<gml:curveMember>
<gml:LineString>
<gml:posList>85.292019896027 27.722567213659 85.303131631935 27.72224973549 85.303290371019 27.72478956084
</gml:posList>
</gml:LineString>
</gml:curveMember>
</gml:MultiCurve>
</feature:geom>
**<id>650</id>
<fid>400</fid>**
</feature:Complaint>
</wfs:Insert>
</wfs:Transaction>
and i get what i want. my question is how can i post the 2nd request (with id and fid) instead of first using openlayers and/or geoext?