Re: Avoid ListenerInvocationNotAllowedException on slow clients

2013-07-30 Thread Martin Grigorov
Hi, You can use AjaxChannel.ACTIVE in the Ajax attributes. This will tell Wicket JS to not send second Ajax call until the previous has finished. On Wed, Jul 31, 2013 at 8:03 AM, René Hartwig < rene.hart...@befine-solutions.com> wrote: > Hi there, > > I am using Wicket Version 6.9.1 on a Jetty

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-30 Thread Martin Grigorov
Hi, Yes, as you have found there is a ticket about this. On Wed, Jul 31, 2013 at 12:55 AM, Gabriel Landon wrote: > Since I've upgrade from wicket 6.8.0 to wicket 6.9.1, many of my gmap panel > are not working anymore when I do an ajax refresh on them. > > From what's I've discovered is that on

Avoid ListenerInvocationNotAllowedException on slow clients

2013-07-30 Thread René Hartwig
Hi there, I am using Wicket Version 6.9.1 on a Jetty 8 Server and have a Page opening up a modal dialog triggered by an AjaxSubmitLink. Now I recognized that on slow Clients a User is capable of clicking this link twice so that the server has already disabled the

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-30 Thread Gabriel Landon
Sorry to have bother you with this. There's already an issue open for this for those who have the same problem! https://issues.apache.org/jira/browse/WICKET-5248 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/gmap2-wicket-6-9-and-ajax-refresh-tp4660564p4660565.htm

gmap2, wicket 6.9 and ajax refresh

2013-07-30 Thread Gabriel Landon
Since I've upgrade from wicket 6.8.0 to wicket 6.9.1, many of my gmap panel are not working anymore when I do an ajax refresh on them. >From what's I've discovered is that on the refresh the Wicket.Event.add(window, "onUnload", function(event) { google.maps.Unload();;}); has became (function(){go

Re: Ajax Refreshing Issue

2013-07-30 Thread dhongyt
Sorry I forgot to add that I have fixed this issue. I think it was because I didn't apply it to the a panel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Refreshing-Issue-tp4660289p4660563.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Ajax Refreshing Issue

2013-07-30 Thread Paul Bors
Have you tried it outside of Eclipse? Create yourself a quick start and run it from the console. Also that stack trace could be usefull. - ~ Thank you, p...@bors.ws -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Refreshing-Issue-tp4660289p4660562.html

Re: Ajax Refreshing Issue

2013-07-30 Thread dhongyt
I'm using Wicket 6.4.0 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Refreshing-Issue-tp4660289p4660561.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
On Tue, Jul 30, 2013 at 9:10 PM, Chris Snyder wrote: > Good catch - thanks. Though it turns out that the mailcap stuff is all a > red herring - they're just a stub for some code that somebody (probably in > 1996 or thereabouts) thought they'd implement someday: > > // For backward compatibility --

WGET Session Invalid?

2013-07-30 Thread dhongyt
I have a wicket log in page that I would like to log in and create a session so that I can wget and download files off my wicket website. I do a: wget --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data='signInForm2_hf_0&username=(username)&password=(password)' htt

its that time of year again, 42lines is hiring java devs

2013-07-30 Thread Igor Vaynberg
the company i work for ( 42lines.net ) is growing and we are looking for a few good devs. about our approach: * we are a distributed usa-based company * everyone telecommutes either from home or a coworking space of your choice (paid for by the company) * we use a variation of agile methodology (

Re: SVG mime-type incorrect

2013-07-30 Thread Chris Snyder
Good catch - thanks. Though it turns out that the mailcap stuff is all a red herring - they're just a stub for some code that somebody (probably in 1996 or thereabouts) thought they'd implement someday: > // For backward compatibility -- mailcap format files > // This is not currently used, but m

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
You are right. It tries with getHeaderName(String) which looks in MimeTable and falls back to by stream. I think you need to set the type in your mailcap file. On Tue, Jul 30, 2013 at 8:16 PM, Chris Snyder wrote: > Except that URLConnection#getContentType doesn't even use MimeTable: > > http://g

Re: SVG mime-type incorrect

2013-07-30 Thread Chris Snyder
Except that URLConnection#getContentType doesn't even use MimeTable: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/net/www/URLConnection.java?av=f#147 URLConnection#guessContentTypeFromStream is what it's using: http://grepcode.com/file/repository.grepcode.com/j

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
On my machine System.err.println(URLConnection.getFileNameMap().getContentTypeFor("file.svg")); prints null On Tue, Jul 30, 2013 at 7:52 PM, Martin Grigorov wrote: > This is nasty indeed! > > According to > http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/net/www

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
This is nasty indeed! According to http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/net/www/MimeTable.java#MimeTable the mime types are loaded from mailcap files. See "man update-mime" On Tue, Jul 30, 2013 at 7:40 PM, Chris Snyder wrote: > However, just above th

Re: SVG mime-type incorrect

2013-07-30 Thread Chris Snyder
However, just above that (line 122) it gets the contentType from the URLConnection, which returns "application/xml". Since streamData.contentType is not null, it never gets to line 126. Thanks so much for your help! -Chris -- Chris Snyder Web Developer, BioLogos 616.328.5208 x203 biologos.org

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
Hi, According to https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/resource/UrlResourceStream.java?source=cc#L126 if theere is an application then it should be used before falling back. On Tue, Jul 30, 2013 at 7:22 PM, Chris Snyder wrote: > Hi Ma

Re: SVG mime-type incorrect

2013-07-30 Thread Chris Snyder
Hi Martin, Thanks for the extremely prompt response. Unfortunately, it appears that Application#getMimeType isn't called for UrlResourceStream resources - UrlResourceStream#getData calls URLConnection#getContentType, at which point we've entrusted the mime-type to Java. Versions I should have

Re: SVG mime-type incorrect

2013-07-30 Thread Martin Grigorov
Hi, You can override org.apache.wicket.Application#getMimeType On Tue, Jul 30, 2013 at 7:01 PM, Chris Snyder wrote: > I'm trying to serve SVG images as package resources. However, when I do > so, the image files are served with a mime-type of application/xml, rather > than the correct image/svg

SVG mime-type incorrect

2013-07-30 Thread Chris Snyder
I'm trying to serve SVG images as package resources. However, when I do so, the image files are served with a mime-type of application/xml, rather than the correct image/svg+xml. This causes strange behavior in Google Chrome - the image displays as a broken link when included in an tag, but ren

Re: Preserve state of wicket page after page navigation

2013-07-30 Thread brazz
Now i tried to use multi window support feature of wicket. I think this would be most elegant solution. In every page i do: super(ESSession.get().createAutoPageMap()); And in the application i set: getPageSettings().setAutomaticMultiWindowSupport(true); But still the objects are getting detached

Re: Render email with Javascript

2013-07-30 Thread Marco Springer
I've used jasper reports for functionality like that. http://community.jaspersoft.com/ All it really requires is a jrxml file that can be turned into a jasper file. This in turn can be fed with data to produce charts or whatever. This jrxml can be "designed" with iReport, which is also freely down

Re: Render email with Javascript

2013-07-30 Thread Martin Grigorov
My best experience with PDF generation out of HTML is with http://search.maven.org/#search%7Cga%7C1%7Cflying-saucer-pdf. But I don't think it supports neither JS nor SVG out of the box. See http://stackoverflow.com/questions/10437234/java-itext-flying-saucer-convert-html-containing-svg-tags-to-pdf

Re: Render email with Javascript

2013-07-30 Thread kevin94
In fact, my goal is to render the page in String to render it after in a PDF file attach to the mail. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Render-email-with-Javascript-tp4660534p4660539.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Render email with Javascript

2013-07-30 Thread Martin Grigorov
On Tue, Jul 30, 2013 at 10:26 AM, kevin94 wrote: > Hi, > > I'm looking in this direction. > I think you should drop this idea. Some users use web email clients - here you have some chance, but others use desktop clients where the HTML renderer may not be fully functional browser and your JS may

Re: Render email with Javascript

2013-07-30 Thread kevin94
Hi, I'm looking in this direction. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Render-email-with-Javascript-tp4660534p4660536.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Render email with Javascript

2013-07-30 Thread Martin Grigorov
Hi, ComponentRenderer just produces the final markup out of a page/component. You need to "run" this markup in a browser to execute any JavaScript in it. On Tue, Jul 30, 2013 at 10:01 AM, kevin94 wrote: > Hello, > > I'm trying to render an email with ComponentRenderer but the javascript > whic

Render email with Javascript

2013-07-30 Thread kevin94
Hello, I'm trying to render an email with ComponentRenderer but the javascript which build charts is not executed. Are there any solution to execute javascript (which builds svg charts) before getting the html in String ? Thanks -- View this message in context: http://apache-wicket.1842946.n4