Re: Having Wicket manage resources outside classpath

2015-02-01 Thread Martin Grigorov
Hi, Putting your static resources in the context root and letting Wicket manage them is not a problem. For example you can use a special/custom MyScope.class as a scope for JS/Css ResourceReferences and a custom IResourceFinder that uses ServletContext#getResource() when the scope is MyScope.class

Re: Wicket 7 for production use?

2015-02-01 Thread Martin Grigorov
Right. Keeping the method in 7.x doesn't help because it won't help. The developer would be confused that the method is still used. Deprecating in 6.x is not an option because #isEnabledInHierarchy() is still final there and there is no substitution. The migration guide properly says what is the

Re: GMap3 - Show title of markers permanently

2015-02-01 Thread Martin Grigorov
Hi, I think you should consult with Google Maps v3 JS API and if there is a way then look in WicketStuff integration to apply it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Feb 1, 2015 at 8:19 PM, Chris wrote: > Hi all, > > I am using GMap3 from Wicke

Re: put Javascript in HTML body

2015-02-01 Thread Martin Grigorov
Hi, If you use Label then you should do: label.setEscapeModelStrings(true). But for your case I'd recommend using OnDomReadyHeaderItem.forScript() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Feb 1, 2015 at 11:44 PM, Chris wrote: > Hi all, > > I would

Re: put Javascript in HTML body

2015-02-01 Thread Shengche Hsiao
Hello You may check wicket-guide http://wicket.apache.org/guide/guide/jsintegration.html Simply override the page#renderHeader(IHeaderResponse response){ response.render(JavaScriptHeaderItem.forScript("your script here",null)); } And may need to customize the output markup id to work. On Mon,

put Javascript in HTML body

2015-02-01 Thread Chris
Hi all, I would like to use Leaflet JS library in order to display open street maps. According to this library, certain JS code has to be placed in the body element of the html underneath a div element, e.g.: var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('GMap3 - Show title of markers permanently
Hi all, I am using GMap3 from Wickestuff. Markers are defined as follows, whereby the title is displayed as tooltip in the google map image: GOverlay marker = new GMarker(new GMarkerOptions(map, new GLatLng(lat, long), „Title", icon, null)); Is there a way to display the titles permanent and not

Re: Wicket 7 for production use?

Hi, I don't have any objections, but I don't see much sense in restoring the broken 6.x behavior. Yes, keeping a deprecated method is nice - it's not necessary for a major release though. We could deprecate #isLinkEnabled() in the next 6.x version (given it is released before 7.0). My 2 ce

Re: Wicket JQuery Selectable Sortable combined

Hi Chris, Please find hereafter the link to the sample: http://www.7thweb.net/wicket-jquery-ui/sortable/SelectableSortablePage Best regards, Sebastien.

Re: Wicket JQuery Selectable Sortable combined

Hi, > How is it possible to receive those click events so that I know which list elements has been selected by the user? Each list (html) item has a 'data-hash' attribute that corresponds to each list (java) hashcode. So you can send it with your button and get the selected item (java) back. You

Wicket JQuery Selectable Sortable combined

Hi all, the Wicket - jQuery UI Api shows an example of a sortable List view: http://www.7thweb.net/wicket-jquery-ui/sortable/DefaultSortablePage?6 I would not only like to sort a list, but to delete single elements within t

Re: Wicket 7 for production use?

Ok the commit shows what you are talking about. Thanks for fixing the signature! kind regards Tobias > Am 01.02.2015 um 13:02 schrieb Martin Grigorov : > > Hi Don, > > Are you sure that you upgraded to 7.0.0-M4 ? > The change in Image#setImageResponseReference() is not even in the voted > M5

Re: Wicket 7 for production use?

Hi Martin, what do you mean by disappeard there are two signatures in Image Image#setImageResourceReference() which is the old signature and Image#setResourceReferences() which os used for srcset - the diff view is confusing - take a look at the RAW version. kind regards Tobias > Am 01.02.201

Re: Wicket 7 for production use?

I agree that AbstractLink#isLinkEnabled() should be marked as deprecated in 7.x. Its substitution is #isEnabledInHierarchy(), not #isEnabled(). Having this described in the javadoc will help users to use the correct replacement. And the migration will be even smoother! @Sven: any objections ? Mar

Re: Wicket 7 for production use?

Hi Don, Are you sure that you upgraded to 7.0.0-M4 ? The change in Image#setImageResponseReference() is not even in the voted M5. It has been applied to master branch few days ago, after M5 has been cut for voting. I didn't notice that the old signature of the method disappeared. I'll revert it ba

Re: Wicket 7 for production use?

Hi Don, I've added a line to the migration docs related to the generics changes, i.e. WICKET-5350. Many thanks Sven On 01.02.2015 00:44, Don Ferguson wrote: Here is what I encountered migrating a moderately large wicket/bootstrap app from 6.1.18 to 7.0.0-M4. There were 8 changes that requ