Avoid ListenerInvocationNotAllowedException on slow clients

2013-07-31 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-31 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 glan...@piti.pf 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

Re: Avoid ListenerInvocationNotAllowedException on slow clients

2013-07-31 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 8

Re: Avoid ListenerInvocationNotAllowedException on slow clients

2013-07-31 Thread René Hartwig
Perfect! Thank you! René Hartwig Senior Developer Befine Solutions AG - The Cryptshare Company Bebelstraße 17 79108 Freiburg Germany Tel: +49 (0) 761

Interesting article from Zeroturnaround

2013-07-31 Thread Andrea Del Bene
I don't agree with everything in it, but it's a good article anyway :) ... http://zeroturnaround.com/rebellabs/the-curious-coders-java-web-frameworks-comparison-spring-mvc-grails-vaadin-gwt-wicket-play-struts-and-jsf/ - To

Re: Interesting article from Zeroturnaround

2013-07-31 Thread Michael Mosmann
Am 31.07.13 13:56, schrieb Andrea Del Bene: I don't agree with everything in it, but it's a good article anyway :) ... http://zeroturnaround.com/rebellabs/the-curious-coders-java-web-frameworks-comparison-spring-mvc-grails-vaadin-gwt-wicket-play-struts-and-jsf/ I will take some time and put my

Wicket Content Parameters

2013-07-31 Thread Tom Norton
We just received our content back from our translators. They translated everything correctly for our velocity templates. However, when they translated our wicket content, they also translated the parameters (one translator even replaced the curly braces with parentheses). Does anyone know it

RE: Wicket Content Parameters

2013-07-31 Thread Paul Bors
We have unit tests that load the master lang pack (the development one) and compare it key by key to all of the other language packs making sure that: * It has all the necessary keys * Parameters in values are not missing * All values are translated (with different exceptions per lang pack) Etc.

Re: Adding checkbox column to DefaultDataTable

2013-07-31 Thread BrianWilliams
Sorry to take so long to reply. I've been working on other things. Looking at this again I had to change the model I was using, and my problem is solved with this CheckboxColumn: private class CheckboxColumnT extends HeaderlessColumnT, Object { private String expression;

Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread BrianWilliams
Hello, I had code in Wicket 1.x that worked perfectly to dynamically generate a spreadsheet and send it to the user. I had to rewrite it for the new Response classes in 1.6: public void generateExcel(String filename, ListListlt;? extends Object dataList) { HSSFWorkbook myWorkBook =

Re: Interesting article from Zeroturnaround

2013-07-31 Thread Igor Vaynberg
unless youve built and maintained a real non-trivial application using all those frameworks how can you put numbers on them? -igor On Wed, Jul 31, 2013 at 5:47 AM, Michael Mosmann mich...@mosmann.de wrote: Am 31.07.13 13:56, schrieb Andrea Del Bene: I don't agree with everything in it, but

Re: Wicket Content Parameters

2013-07-31 Thread Cedric Gatay
We have a custom maven plugin aggregating multiple properties file into one per language. It checks and display (does not fail the build) if the number of keys is different. I will try to see if it can be open sourced soon if someone is interested in it. __ Cedric Gatay (@Cedric_Gatay

RE: Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread Paul Bors
I think you should also upgrade your Apache POI version and switch to .xlsx since the older format has a limit of about 65K records. Outside of that I suggest you use an IResourceStream instead of writing to your web response. Personally I use csv comma delimited since I don't do any magic beside

RE: Wicket Content Parameters

2013-07-31 Thread Paul Bors
I won't mind taking yours and adding my tests to it with an option to fail the build. I like failing the build to grab people's attention and also generating an e-mail report so we all know what's missing :) ~ Thank you, Paul Bors -Original Message- From: Cedric Gatay

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-31 Thread Gabriel Landon
Martin Grigorov-4 wrote But this looks wrong. 1) OnLoadHeaderItem can be used 2) or OnEventHeaderItem with 'unload' event. Note that there is no 'on' prefix when using event registration So what you mean is that in GMapHeaderContributor.java the line

How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread saty
I have a complex panel with several components. I want to render the page background color different based on some condition without altering existing code, something like just wrap everything in a new div tag. div wicket:id=envIndicator all existent panel stuff goes here /div i tried this.

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-31 Thread Gabriel Landon
Martin in the javadoc there's an example saying onclick. So should it be click? /** * Creates a {@link OnEventHeaderItem} for the given parameters. * * @param target *The target of the event handler, for example 'window' or 'document'.

Re: How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread Sven Meier
In Wicket the markup hierarchy has to match the component hierarchy. Why not add the attribute to the panel itself? this.add(new AttributeModifier(class, some class)); Sven On 07/31/2013 08:39 PM, saty wrote: I have a complex panel with several components. I want to render the page

Re: How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread saty
Thanks Sven, i will try that. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-a-div-tag-with-stylesheet-to-wrap-exisiting-panel-tp4660585p4660588.html Sent from the Users forum mailing list archive at Nabble.com.

How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread shimin_q
Hi, I am using wicket Wizard extension to create a create metaprofile wizard. I am having trouble incorporating line breaks in the summary text of the properties file. As you can see below, the summary text for the steps are long, and I intended to break into several lines, but br/ does not

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
You can have HTML in your language pack and then call Componenet.setEscapeModelString(false) to have it rendered. http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/Compone nt.html#setEscapeModelStrings(boolean) You can also add an attribute modifier to your panel to wrap it at

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Sven Meier
Hi, you're probably extending WizardStep? Override #getHeader() returning a custom header similar to WizardStep$Header but using a MultiLineLabel for the summary. Then you can use new lines in your properties. Sven On 07/31/2013 09:20 PM, shimin_q wrote: Hi, I am using wicket Wizard

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-31 Thread Cedric Gatay
If I remember well click or on click should work, the on prefix is automatically removed if it is present. Regards, Le 31 juil. 2013 20:47, Gabriel Landon glan...@piti.pf a écrit : Martin in the javadoc there's an example saying onclick. So should it be click? /** * Creates

Re: How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread saty
Sorry to ask again but what i will have to do on markup side. I added this but dont find the attribute (style-sheet) appearing anywhere in HTML source to see whats happening. -- View this message in context:

Re: Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread BrianWilliams
Thank you Paul.  I appreciate the advice.  Regarding your suggestion to use IResourceStream, I wonder what the problem is with writing to the web response?  Is this simply something that is no longer supported in 6.x, even though it worked perfectly in 4.x?  I'd prefer to simply fix whatever

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread shimin_q
Thanks for the suggestion! Yes, I am extending WizardStep. Here is what I did to my code following your suggestion (the Header class is a final class, so I had to create a new MultiLineHeader class extends Panel directly to add new MultiLineLabel instead of the default new Label line in Header

Re: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Sven Meier
MultiLineHeader is a panel, so it needs its own markup file. Did you create MultiLineHeader.html? Sven On 07/31/2013 10:43 PM, shimin_q wrote: Thanks for the suggestion! Yes, I am extending WizardStep. Here is what I did to my code following your suggestion (the Header class is a final

Re: How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread Sven Meier
what i will have to do on markup side This shouldn't need any markup change. Is your panel bound to a wicket:container ? Sven On 07/31/2013 10:37 PM, saty wrote: Sorry to ask again but what i will have to do on markup side. I added this but dont find the attribute (style-sheet) appearing

Re: How to add a div tag with stylesheet to wrap exisiting panel

2013-07-31 Thread saty
No, just the wicket:panel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-a-div-tag-with-stylesheet-to-wrap-exisiting-panel-tp4660585p4660598.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread Paul Bors
Well... Component.getResponse() calls getRequestCycle().getResponse() and you're then you're casting that Response object to a WebResponse and change it in the middle of wicket's processing it. Is simple to schedule your resource outside of wicket's normal flow right? Hence

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
The way I styled the wizard to fit my look-n-feel is by extending Wizard and creating MyOwnWizard and then overriding whatever I wanted to change in the Java code (such as the type of form to create) and also in the HTML. You can do this with any Component but keep in mind the more you customize

RE: How to add line breaks in the summary text of Wizard properties file

2013-07-31 Thread Paul Bors
So in your case I would just change my CSS and add a wicketExtensionsWizardHeader with the width you want :) ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Wednesday, July 31, 2013 6:34 PM To: users@wicket.apache.org Subject: RE: How to add line

Re: Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread BrianWilliams
Thank you again Paul.  I'll look at scheduleRequestHandlerAfterCurrent and compare it.   And yes, you are right that IResourceStream is straightforward, but again I am blown away that something that worked perfectly pre6.x now requires a different strategy.  And no, I am not setting cookies or