java - GMap ajax "pointSelect" event doesn't work after validation -


I have a weird problem The GMFS component works primarily until I do not expect ... I support backing After certifying the data, I send the message to the component. After that the map does not respond to Ajax's "point selection" event. It can be moved, zoom in-etc, but I can not go into my code which is responsible for adding the marker. This is my code:

primetime

  & lt; P: = "add_marker" value = "punkt:" for the output label /> & Lt; P: OutputPanel ID = "AdMarker" style = "text-align: center;" & Gt; & Lt; p: gmap id = "add_gmap" widgetVar = "addMap" center = "# {addSpotController.sampleSpot.latitude}, # {addSpotController.sampleSpot.longitude}" zoom = "15" model = "# {addSpotController.model}" type = "Hybrid" style = "width: 600px; height: 400px" streetview = "true" & gt; & Lt; P: Ajax event = "select point" listener = "# {addSpotController.addMarker}" update = ": # {p: component ('add_gmap')} ,: # {p: component ('add_msgs')} ,: # {P: component ('basicDT')} ,: # {p: component ('mfdt')} "/> & lt; / P: gmap> & Lt; / P: outputPanel & gt; & Lt; p: commandButton id = "add_confirm" value = "Dodaj" Action: Listnr = "# {addSpotController.addSpot}" update = ": # {p: component ( 'add_msgs')} ,: # {p: component (' addForm ')} ,: # {P: component (' addInfoTitle ')},: # {p: component (' add_gmap ')} "incomplete =" PF (' adinfo '). Show () "& gt; & Lt; / P: CommandButton & gt;  

BackingBan

  Public Zero addMarker (PointSelectEvent pse) {FacesMessage Message; If (title == faucet || title.isEmpty ()) {message = new FacesMessage ("Brak tytułu", "Najpierw wprowadź tytuł."); } Else {if Model! GetMarkers (). IsEmpty ()) {model.getMarkers () clear (); } Marker marker = new marker (pse.getLatLng (), title); Model.addOverlay (marker); LatLng latLng = Marker.Getlatanga (); SampleSpot.setLatitude (latLng.getLat ()); SampleSpot.setLongitude (latLng.getLng ()); Message = new fusemes ("Dodano punkt:", title); } FacesContext.getCurrentInstance (). AddMessage (empty, message); } Public void addSpot () (if (isDataValid ()) {marker markers = model .getMarkers (). Get (0); SavedID = spotService.addSpot (new UserBean (), marker, Nyaspot Risevr type receiver list); SampleSpot = spotService.getSampleSpot (); browseController.refreshSpotList (); modifyController.refreshSpotList (); clearForms (); setExportUrl ();} Else {for (string error: error) {FacesMessage message = new Cehresmaj (FacesMessage.SEVERITY_ERROR, "Błędne Dace ", error); FacesContext.getCurrentInstance (). AddMessage (empty, message);} Errors.clear ();}}  

Why Ajax prevents point retrieval Select ?


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

How to access user directory in lazarus? -

java - Gradle dependencies: compile project by relative path -