Re: Jquery tooltip for multiple fields in wicket

2013-07-31 Thread Martin Grigorov
Hi, See Sebastien's examples earlier in this mail thread. On Thu, Aug 1, 2013 at 8:49 AM, Murugan wrote: > Hi Martin, > > I downloaded the wicket-jquery-ui through maven > > com.googlecode.wicket-jquery-ui > wicket-jquery-ui > 6.8.1 > > > also downloaded the required

Re: gmap2, wicket 6.9 and ajax refresh

2013-07-31 Thread Martin Grigorov
Hi, https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java?source=cc doesn't cut the 'on' prefix. https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxEventBehavior.java?source=cc#L68

Re: Jquery tooltip for multiple fields in wicket

2013-07-31 Thread Murugan
Hi Martin, I downloaded the wicket-jquery-ui through maven com.googlecode.wicket-jquery-ui wicket-jquery-ui 6.8.1 also downloaded the required css and added the reference in my html page. Added the below code in my java. this.add(new TooltipBehavior()); But tooltip

Re: Generating spreadsheet to send to Client fails in 1.6

2013-07-31 Thread Martin Grigorov
Hi, See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DownloadLink.java?source=cc#L167 for a simple example. On Thu, Aug 1, 2013 at 5:33 AM, BrianWilliams wrote: > Thank you again Paul. I'll look at scheduleRequestHandlerAfterCurrent

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 b

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 b

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 th

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 getRequestCycle().sc

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

2013-07-31 Thread saty
No, just the -- 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: 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 ? 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 anywhere in HTML so

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 clas

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 cl

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 i

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: http://apache-wicket.1842946.n4.nabble.com/How-to-add-a-div-tag-with-stylesheet-to-wrap

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" a écrit : > Martin in the javadoc there's an example saying "onclick". So should it be > "click"? > > /** > * Creates a

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 exten

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 a

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 does not seem to

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. --

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 back

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'.

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. all existent panel stuff goes here i tried this. WebMarkupContainer wmc = new WebMa

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 response.render(OnEventHeaderItem.forSc

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 [mailto:gata...

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: 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 wrote: > Am 31.07.13 13:56, schrieb Andrea Del Bene: > > I don't agree with everything in it, but it's a good art

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, List> dataList) { HSSFWorkbook myWorkBook = new HSSFWorkbook();

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 CheckboxColumn extends HeaderlessColumn { private String expression; public Checkb

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. I

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 it'

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 o

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 unsubs

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