Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Hi i want to use geoserver+openlayers in LifeRay portlet. My main question its how to do this? I mean how to include geoserver in liferay, how to open geoserver's admin panel in liferay. Next question its how to use deafult geoserver's css. When i create simple html page i use

<link href="http://localhost:8080/geoserver/openlayers/theme/default/style.css" type="text/css"/>

But in LifeRay all css gonna be include in file liferay-portlet.xml can someone say how to add this css in this file?

Next question: how to use wms? In html i use this

layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
    "http://localhost:8080/geoserver/wms", {layers: 'cite:filedata', transparent: true, format: "image/png"});

I gonna change this link to wms to use this in portlet?

And final question: i try add OpenLayers.js in layfray-portlet.xml but after deploy my portlet i dont see any map controls on the page just empty DIV.

this is part of liferay-portlet.xml

<portlet>
 <portlet-name>MyGreeting</portlet-name>
 <icon>/icon.png</icon>
 <instanceable>true</instanceable>
 <header-portlet-javascript>/js/jquery.min.js</header-portlet-javascript>
 <header-portlet-javascript>/js/OpenLayers.js</header-portlet-javascript>
 <footer-portlet-css>/css/main.css</footer-portlet-css>
 <footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
 <css-class-wrapper>MyGreeting-portlet</css-class-wrapper>
</portlet>

That what i get. enter image description here

Im foget say about one thing. I see a error in firebug with this text:

localhost:8080/poller/receive error 404 Not Found

Anyone have ideas?

share|improve this question
    
Okay, No w i see the map controls. I add style.css in lifray-portlet.xml and copy directory with images and css from geoserver to lifray css directory. But im still dont know how to use geoserver in liferay. –  Kliver Max Jun 26 '12 at 10:36
    
Okey, i understand im dummy. To geoserver is work just needed put it in liferay's tomcat directory. Path to WMS still same, nothing need to change. –  Kliver Max Jun 26 '12 at 11:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.