Calling javascript from AjaxCheckBox
Hi, I'm trying to call javascript function on AjaxCheckBox selection. Tried both in 1.4 and 1.5 by overriding protected IAjaxCallDecorator getAjaxCallDecorator() This approach works well for AjaxLink and AjaxButton, but for AjaxCheckBox execution even not arrives to decorateScript(Component component, CharSequence script) { How can I do it? Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-javascript-from-AjaxCheckBox-tp3161184p3161184.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Calling javascript from AjaxCheckBox
Thank you, I tried to take code from AjaxLink - the same result: public abstract class PropertyCheckBox extends CheckBox { private static final long serialVersionUID = 1L; public PropertyCheckBox(final String id) { this(id, null); } public PropertyCheckBox(final String id, final IModelBoolean model) { super(id, model); setOutputMarkupId(true); add(new AjaxEventBehavior(onclick) { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { PropertyCheckBox.this.onUpdate(target); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new IAjaxCallDecorator() { public CharSequence decorateScript(Component component, CharSequence script) { return script; } public CharSequence decorateOnSuccessScript(Component component, CharSequence script) { return script; } public CharSequence decorateOnFailureScript(Component component, CharSequence script) { return script; } }; } @Override protected void onEvent(AjaxRequestTarget target) { onUpdate(target); } }); } protected abstract void onUpdate(AjaxRequestTarget target); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-javascript-from-AjaxCheckBox-tp3161184p3161674.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Layers on gmap2
Hi! Can I add openstreet layer on top of gmap2 map? Something like I do in javascript: var map; var geodan = new google.maps.LatLng(31.777622647101833,35.231376640319844); var osmMapType = new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { return http://tile.openstreetmap.org/; + zoom + / + coord.x + / + coord.y + .png; }, tileSize: new google.maps.Size(256, 256), isPng: true, alt: OpenStreetMap layer, name: OpenStreetMap, maxZoom: 19 }); function initializeMap() { var mapOptions = { zoom: 16, center: geodan, mapTypeId: 'OSM', mapTypeControlOptions: { mapTypeIds: ['OSM', google.maps.MapTypeId.ROADMAP], style: google.maps.MapTypeControlStyle.DROPDOWN_MENU } }; map = new google.maps.Map(document.getElementById(map_canvas),mapOptions); map.mapTypes.set('OSM',osmMapType); map.setMapTypeId('OSM'); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Layers-on-gmap2-tp3056261p3056261.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Example of Ajax DataView update
Hi! Can you show me an example of Ajax update of a paging table (I use DataView for it)? Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053204.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Customizing AutoCompleteTextFeld
Thank you, where can I find names of corresponding CSS elements? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customizing-AutoCompleteTextFeld-tp3053200p3053236.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Example of Ajax DataView update
Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053237.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Example of Ajax DataView update
I have exception java.lang.IllegalArgumentException: Component org.haploblock.components.ImportsDataView has been added to the target. This component is a repeater and cannot be repainted via ajax directly. Instead add its parent or another markup container higher in the hierarchy. Which container can I use to put DataView inside? Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053395.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Customizing AutoCompleteTextFeld
Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customizing-AutoCompleteTextFeld-tp3053200p3053396.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: Example of Ajax DataView update
I added a container, but no update happens. What I'm doing wrong? I have a container and a DataView, which is binded to a SortableDataProvider. When AjaxButton is pressed I take a value from my text field, change the internal state of the provider and add to a target DataView's container AjaxButton show = new AjaxButton(Show) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { String selected = field.getModelObject(); if (selected!=null) { provider.setPersonString(selected); } target.addComponent(container); } }; However, the view remains empty. It looks like I should say him that his provider changed and it should refresh. How I do this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053427.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org