Hi

Im getting this error when trying to add my updated gmap:
ERROR - RequestCycle               - markupId cannot be empty
java.lang.IllegalArgumentException: markupId cannot be empty
    at 
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
    at 
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
    at wicket.quickstart.Index$1.onUpdate(Index.java:75)
    at 
wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java:64)
    at 
wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:139)
    at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
    at 
wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:236)



 Please note that I have set outputmarkupid to true.

You can see the java code here:

http://pastebin.ca/476843


but basically its this code it complains about:
            protected void onUpdate(AjaxRequestTarget target) {
                GMapPanel populatedMap = populateMap();
                if (populatedMap != null) {
                    target.addComponent(populatedMap);
                }

and possibly:
    private final GMapPanel populateMap() {
        if (filterModel.isDisplayHotel()) {
            // add gmarkers here
            GPoint center = gmap.getCenter();
            int zoomLevel = gmap.getZoomLevel();
            gmap = new GMap(center, zoomLevel);
           
            GMarker hotel = new GMarker(new GPoint(-112.1872f, 33.2765f),
                    new Label("gmarkerInfo", "Hotel"));
            gmap.addOverlay(hotel);
           
            GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800, 600,
                    quickStartGmap_8080_Key);
            gMapPanel.setOutputMarkupId(true);
            return gMapPanel;

        }
        return null;
    }



regards Nino

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to