Hi,<br><br>Ok I now deploy my simple OpenLayers .war archive in the same JBoss instance as the GeoServer .war archive and the WFS layer is now displayed. It currently displays the features as markers, is it possible to display them as point as in a Vector layer ?? I have managed to find a reference to WFS Vector mode in this post
<br><br><a href="http://openlayers.org/pipermail/dev/2007-March/000499.html">http://openlayers.org/pipermail/dev/2007-March/000499.html</a><br><br>What i basically want it to be able to select features that are displayed (i know how to do this in a Vector layer), would it be possible to map the results of WFS requests to points in a GML layer, similar to the below example:
<br><br><a href="http://openlayers.org/dev/examples/gml-layer.html">http://openlayers.org/dev/examples/gml-layer.html</a><br><br>Thanks,<br><br>Andy<br> <br> <br><br><div><span class="gmail_quote">On 08/07/07,
<b class="gmail_sendername">Christopher Schmidt</b> <<a href="mailto:crschmidt@metacarta.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crschmidt@metacarta.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Jul 06, 2007 at 10:29:57PM -0700, andydale wrote:<br>><br>> Hi,<br>><br>> I am pretty new to using OpenLayers, and am now running into some issues.<br>><br>> I can use OpenLayers with WMS layers from the GeoServer (war install) with
<br>> out any problem. The issue occurs when trying to use a WFS layer like<br>> below.<br>><br>> wfs = new OpenLayers.Layer.WFS("WFS fixpoint",<br>> "<a href="http://172.16.135.144:8080/geoserver/wfs?" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://172.16.135.144:8080/geoserver/wfs?</a>",<br>> {typename: "topp:fixpoint" ,maxfeatures: "100"},<br>> {featureClass: OpenLayers.Feature.WFS} );<br>><br>> This layers in not drawn on the map, but causes no errors. After seaching
<br>> around on the net and forums i have discovered that i must set the<br>> OpenLayers.ProxyHost to get the WFS layer to be displayed, and have seen<br>> many examples such as this:<br>><br>> OpenLayers.ProxyHost=
"/proxy/?url=";<br>><br>> The above will not work for me, how can i set the proxy host within JBoss.<br>> The page i am using openlayers on is a .jsp (using jsf), packed inside a<br>> simple .war archive. Has anybody managed to set up the ProxyHost under
<br>> JBoss before ? Is it just a matter of packing something (python script ??)<br>> into my war archive ? Any advice would be greatly appreciated .<br><br>The best thing for you to do is probably to get the OpenLayers file
<br>served from within GeoServer. So, your OpenLayers HTML should be at<br><a href="http://172.16.135.144:8080/openlayers/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://172.16.135.144:8080/openlayers/
</a> or whatever. Once you do that,<br>you don't need a proxyhost anymore. Anything else is going to be vastly
<br>more complex.<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br>