<HTML xmlns:o =
"urn:schemas-microsoft-com:office:office"><HEAD><TITLE>Message</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120"></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>One problem is that you don’t use any of the special search action naming
conventions:</DIV>
<DIV><A
href="http://dev.geoext.org/docs/lib/GeoExt/widgets/form/SearchAction.html"><FONT
face="Times New Roman"><FONT
style="FONT-SIZE: 12pt">http://dev.geoext.org/docs/lib/GeoExt/widgets/form/SearchAction.html</FONT></FONT></A><FONT
face="Times New Roman"><FONT style="FONT-SIZE: 12pt"> </FONT></FONT></DIV>
<DIV>Since you aren’t using the search action naming conventions, I don’t think
it is creating a GeoExt.form.SearchAction and thus not firing the
‘actioncomplete’ event.</DIV>
<DIV>It is however directly using your search fields to fill a WFS filter and
thus generating proper GML on client & server sides.</DIV>
<DIV>Try using the search action naming convention and see if it fires your
event listener.</DIV>
<DIV>Matt Priour</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=jms@clevelandmetroparks.com
href="mailto:jms@clevelandmetroparks.com">John M. Stein</A> </DIV>
<DIV><B>Sent:</B> Tuesday, September 06, 2011 3:58 PM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] formPanel search not working with
WFS</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV><FONT size=2>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>Hello
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011></SPAN></FONT> </DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial>I'm trying to set up a very
simple search form. Most of my usergroup perusals have shown that it seems
to be pretty straightforward, but for some reason this just won't work.
When the search is sent, I recieve (via Firebug) a GML that, once saved into its
own .xml on the server, works perfectly fine. For whatever reason, it just
doesn't want to show up<SPAN class=011155520-06092011> from the POST
request</SPAN>.</FONT></SPAN></DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>Here's the
code:</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>
formPanel = new
GeoExt.form.FormPanel({<BR> title:
"SEARCHBOX", <BR> region:
"north", <BR>
width: 300,<BR> height:
100,<BR> protocol: new
OpenLayers.Protocol.WFS({<BR>
url:
GeoserverWFS,<BR>
version:
"1.1.0",<BR>
featureType:
"plant_view",<BR>
featureNS:
"localparks",<BR>
srsName:
"EPSG:3734"
<BR>
}),<BR> items:
[{<BR> xtype:
"textfield",<BR>
name:
"p_genus",<BR>
value:
"Acer",<BR>
fieldLabel: "GENUS"<BR> },
{<BR> xtype:
"textfield",<BR>
name:
"p_species",<BR>
value:
"saccharinum",<BR>
fieldLabel: "SPECIES"<BR>
}<BR>],</SPAN></FONT></DIV>
<DIV><SPAN class=815580120-05092011><BR><FONT face=Arial>
listeners: {<BR> actioncomplete:
function(form, action) {<BR>// alert(action.response);
<BR>
}</FONT></SPAN></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>
}<BR>});</SPAN></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>
formPanel.addButton({<BR> text:
"search",<BR> handler: function()
{<BR>
this.search();<BR>
},<BR> scope:
formPanel<BR> });</SPAN></FONT></DIV>
<DIV><FONT face=Arial></FONT><SPAN
class=815580120-05092011><BR> </DIV></SPAN>
<DIV><FONT face=Arial><SPAN class=815580120-05092011>right? pretty
standard. I tried WFS 1.0.0. and 1.1.0. I tried playing around with
WFS settings in GeoServer (changing SRS styles from XML to URN - which never
changes the request..).</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=815580120-05092011> </DIV></SPAN></FONT>
<DIV><SPAN class=815580120-05092011><FONT face=Arial>The important thing is that
I'm getting a proper GML Post from the search. I tried adding a blank
vector layer to the eventlistener and adding bindings from a FeatureDataStore,
but t<SPAN class=011155520-06092011>hose</SPAN> <SPAN
class=011155520-06092011>methods failed me as well</SPAN>. Is there some
basic setting in WFS that I am completely missing? Might this have to do
with geoserver version (2.1.0)? </FONT></SPAN></DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial>Is there anything else I
can do with the eventlistener to force a <SPAN
class=011155520-06092011>rendering</SPAN> of the response? Something with
action.response written into a temp.xml and rendered? </FONT></SPAN></DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial>Thanks for any
insight..</FONT></SPAN></DIV>
<DIV><SPAN class=815580120-05092011><FONT face=Arial></FONT></SPAN> </DIV>
<DIV class=WordSection1><FONT face=Arial><IMG hspace=12
alt=http://www.clemetparks.com/images/esig/cmp-ms-90x122.png align=left
src="http://www.clemetparks.com/images/esig/cmp-ms-90x122.png" width=90
height=122 v:shapes="cmp-ms-90x122.png"><FONT color=#006c56></FONT><FONT
color=#006c56></FONT></FONT><A name=_MailAutoSig><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 14pt; mso-no-proof: yes">John
Stein<BR></SPAN></A><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; mso-no-proof: yes">Geographic
Information Systems (GIS) Intern<BR></SPAN></SPAN><SPAN
style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=1>(216) 635 3239 [Mon, Tues, Thurs]</FONT></SPAN></SPAN><FONT
face=Arial> </FONT>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=3>Horticulture Intern</FONT></SPAN></SPAN></P>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=1>(330) 760 3243 [Wed, Fri]</FONT></SPAN></SPAN></P>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes">jms@clevelandmetroparks.com<BR></SPAN></SPAN></P>
<P class=MsoNormal><o:p><FONT face=Arial> </FONT></o:p></P>
<P class=MsoNormal><o:p><FONT face=Arial> </FONT></o:p></P>
<P class=MsoNormal><o:p><FONT face=Arial> </FONT></o:p></P>
<P class=MsoNormal><o:p><FONT face=Arial> </FONT></o:p></P></DIV>
<DIV><FONT face=Arial></FONT> </DIV></FONT></DIV>
<DIV> </DIV>
<DIV class=WordSection1><IMG hspace=12
alt=http://www.clemetparks.com/images/esig/cmp-ms-90x122.png align=left
src="http://www.clemetparks.com/images/esig/cmp-ms-90x122.png" width=90
height=122 v:shapes="cmp-ms-90x122.png"><FONT color=#006c56
face=Arial></FONT><FONT color=#006c56 face=Arial></FONT><A
name=_MailAutoSig><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 14pt; mso-no-proof: yes">John
Stein<BR></SPAN></A><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; mso-no-proof: yes">Geographic
Information Systems (GIS) Intern<BR></SPAN></SPAN><SPAN
style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=1>(216) 635 3239 [Mon, Tues, Thurs]</FONT></SPAN></SPAN>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=3>Horticulture Intern</FONT></SPAN></SPAN></P>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes"><FONT
size=1>(330) 760 3243 [Wed, Fri]</FONT></SPAN></SPAN></P>
<P class=MsoNormal align=left><SPAN style="mso-bookmark: _mailautosig"><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #006c56; FONT-SIZE: 9pt; mso-no-proof: yes">jms@clevelandmetroparks.com<BR></SPAN></SPAN></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal><o:p></o:p> </P></DIV>
<DIV> </DIV>
<P>
<HR>
_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></DIV></DIV></DIV></BODY></HTML>