Hi,

with a small tweak GMap2 can be made stateless when no markers are present:

--- a/jdk-1.5-parent/gmap2-parent/gmap2/src/main/java/wicket/contrib/gmap/GMap2.java +++ b/jdk-1.5-parent/gmap2-parent/gmap2/src/main/java/wicket/contrib/gmap/GMap2.java @@ -823,6 +823,11 @@ public class GMap2 extends Panel implements GOverlayContainer
                private static final long serialVersionUID = 1L;

                @Override
+               public boolean getStatelessHint(Component component) {
+                       return overlays.isEmpty();
+               }
+
+               @Override
                protected void respond(AjaxRequestTarget target)
                {
                        Request request = RequestCycle.get().getRequest();

Hope this helps
Sven


Am 14.12.2011 10:33, schrieb toytown:
Currently I am using GMap2 but my app needs a Stateless page. So wheneever I
add GMap2 panel the page becomes Stateful since GMap2 is a stateful
component. I tried to refactor the GMap2 but it seems not to be designed for
extensibility as most methods and fields are privat.
   All I need is a simple map with geocoding and a marker for which I can use
jquery. Has anyone expereince such issues before ?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Google-map-without-GMap2-tp4194249p4194249.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to