Navigation to a plain URL within the same application in Wicket 6

2013-03-25 Thread Andrew Schetinin
Hi, I'm porting a Wicket application from 1.4 to 6.6, and there is one piece of code I cannot find how to port. In short, I have a Link descendant class that is supposed to navigate to a manually constructed URL within the Web application - something like

Re: readering strategy of the 'head' section

2013-03-25 Thread Harrie Hazewinkel
Hi Dan, Thanks for the example. On Mar 24, 2013, at 7:26 PM, Dan Retzlaff dretzl...@gmail.com wrote: Re: duplicate/conflicting contributions, Wicket automatically de-dups header contributions. See HeaderItem#getRenderTokens(). Since Wicket itself pulls in JQuery, your app's use of it should

Re: Navigation to a plain URL within the same application in Wicket 6

2013-03-25 Thread Martin Grigorov
Hi, IRequestTarget has been replaced by IRequestHandler in Wicket 1.5.0. Check http://wicketinaction.com/2011/07/wicket-1-5-request-mapper/, http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ and http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ See whether any of the

Re: UrlValidator issue

2013-03-25 Thread Teresa Batista Neto
https://issues.apache.org/jira/browse/WICKET-5112 On Thu, Mar 21, 2013 at 5:00 PM, Sven Meier s...@meiers.net wrote: It seems UrlValidator chokes on parantheses. Please open an Jira issue. Thanks Sven On 03/21/2013 04:33 PM, Teresa Batista Neto wrote: Dear all, One of our users got

Re: Free Wicket guide now available!

2013-03-25 Thread vineet semwal
super work ! super thanks ! :-) On Thu, Mar 21, 2013 at 9:21 PM, Andrea Del Bene an.delb...@gmail.comwrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published my free guide to Wicket! You can find it at

FeedbackPanel Empty on Wizard in 6.5

2013-03-25 Thread Fergal Keating
Hi, I'm using a wizard page on which there is some feedback panels. On the last step, (since i upgraded to version 6.5 wicket) the feedback messages are not displaying. (they are working fine on other steps). I can correctly see each component in the form adding its own error message.The

Re: FeedbackPanel Empty on Wizard in 6.5

2013-03-25 Thread Martin Grigorov
Hi, Check which component is used as root in FeedbackCollector. Is it the page or some other component which is not parent of the component on which you call .error() method ? As a workaround you can use session.error() instead but I think it will be better if you understand why the

Re: FeedbackPanel Empty on Wizard in 6.5

2013-03-25 Thread Fergal Keating
The MywizardPage is being used as the Root component and its set in the FeedbackCollector constructor. So it should be a parent of all components under it. Adding session.error to my FinishButton#OnError get the feedback panel displayed correctly with that one message, however i'm relying on

Re: FeedbackPanel Empty on Wizard in 6.5

2013-03-25 Thread Martin Grigorov
Hi, Do you use ListView somewhere in the hierarchy by chance ? I remember a similar issue - the component with the feedback message was in a ListView with .setReuseItems(false). Changing it to .setReuseItems(true) fixed the problem. On Mon, Mar 25, 2013 at 3:06 PM, Fergal Keating

Re: readering strategy of the 'head' section

2013-03-25 Thread Dan Retzlaff
I've managed to avoid dealing with multiple versions of jQuery on the same page. That sounds like a Bad Idea, and probably not necessary since in my experience jQuery does a good job being backwards compatible. But if you really must, http://api.jquery.com/jQuery.noConflict/ may be your ticket.

Migration issue: update templates in a running system

2013-03-25 Thread Martin Dietze
I recently upgraded a legacy project from Wicket 1.4 to 6.6. In that project we provide a test system to our HTML designers, set up as follows: whenever a change is committed into the git, the test system pulls those changes and copies templates, JS and CSS files into the webapp. It seems like

Re: Migration issue: update templates in a running system

2013-03-25 Thread Martin Grigorov
Hi, Wicket reloads HTML templates only when running in Development mode. Do you run your app in Dev mode ? On Mon, Mar 25, 2013 at 3:54 PM, Martin Dietze d...@fh-wedel.de wrote: I recently upgraded a legacy project from Wicket 1.4 to 6.6. In that project we provide a test system to our HTML

Re: Wicket for Hybrid App

2013-03-25 Thread Paul Bors
Here's an idea, Create a native app for your phone that installs Tomcat, Jetty along with your Wicket webapp and whatever else you might nedd. Have your webapp on all those clients sync up with your central db whenever they come online :) ~ Thank you, Paul Bors On Sat, Mar 23, 2013 at 1:19

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Entropy
I am Eugene's co-worker. The entire code block would be unreasonable as it contains alot of business rules that have nothing to do with the technical issue. The basic code summary is this: Inside a re-usable panel orgPanel: final DropDownChoiceStructureL structureDropDown = new

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Sven Meier
final DropDownChoice struct = (DropDownChoice) orgPanel.get(StructureL); This way you're breaking the encapsulation of orgPanel :(. Why doesn't orgPanel offer the #onOfficeChange() hook in the first place? Sven On 03/25/2013 04:18 PM, Entropy wrote: I am Eugene's co-worker. The entire

Wicket DefaultDataTable - Refresh it on browser back button

2013-03-25 Thread Jayakrishnan R
Hi All, In my application I am using *DefaultDataTable *with *SortableDataProvider *which has *LoadableDetachableModel *as the model. I used it to display a set of records ( say RecordList page). When I add or remove some records and load the page RecordList again, it displays the changes.

Re: Wicket DefaultDataTable - Refresh it on browser back button

2013-03-25 Thread Martin Grigorov
Hi, On Mon, Mar 25, 2013 at 5:50 PM, Jayakrishnan R jk.h...@gmail.com wrote: Hi All, In my application I am using *DefaultDataTable *with *SortableDataProvider *which has *LoadableDetachableModel *as the model. Does that mean that the DataProvider returns primary key objects which are

Re: Wicket DefaultDataTable - Refresh it on browser back button

2013-03-25 Thread Jayakrishnan R
Hi, Does that mean that the DataProvider returns primary key objects which are used in the LoadableDetachableModel to load the real object ? I am not sure. But one thing I noticed, the load() method of the LoadableDetachableModel is not being called when the back button is hit. I am getting

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Entropy
Yeah, that is what I do with my panels I write. In this case though, I'd /RATHER/ just add the extra behavior because it means I don't have to alter any of that orgPanel's code. The panel build is done within a factory method and the inheritance and design of it doesn't really make exposing

Re: Migration issue: update templates in a running system

2013-03-25 Thread Martin Dietze
On Mon, March 25, 2013, Martin Grigorov wrote: Wicket reloads HTML templates only when running in Development mode. Do you run your app in Dev mode ? Yes, I do. And I did see some changes coming through (like adding a CSS-class to a div etc.), but today I was asked by our HTMLer, and like him

Re: Wicket for Hybrid App

2013-03-25 Thread manuelbarzi
Create a native app for your phone that installs Tomcat, Jetty along with your Wicket webapp and whatever else you might nedd. Have your webapp on all those clients sync up with your central db whenever they come online :) how do you do explain that? running a fully compliant jvm in a

RE: Wicket for Hybrid App

2013-03-25 Thread Paul Bors
I was kidding hence the smiling face :P Although, you might be able to do so in a few years or so... You'll have to have a full native phone app since you're already have a requirement to run the app offline (and you can't run Wicket on the phone). If the app is static, you might get to cache

Re: Wicket for Hybrid App

2013-03-25 Thread Igor Vaynberg
why wait? https://code.google.com/p/i-jetty/ -igor On Mon, Mar 25, 2013 at 3:38 PM, Paul Bors p...@bors.ws wrote: I was kidding hence the smiling face :P Although, you might be able to do so in a few years or so... You'll have to have a full native phone app since you're already have a

Serverside caching of IResource's that are expensive to generate

2013-03-25 Thread Pointbreak
I have implemented a LessCssResource (it generates a CSS resource from Less source files) + LessCssResourceReference. Since computing the CSS is expensive, I would like to cache the generated CSS on the server, once generated. It is unclear to me whether Wicket has mechanisms to do this. I

Re: Serverside caching of IResource's that are expensive to generate

2013-03-25 Thread Dan Retzlaff
I believe Wicket's resource versioning and caching logic simply provides advice in HTTP response headers, and decorates filenames if so configured. Do your requests come directly to Wicket's container? We reverse proxy with HTTPD, which is probably better at caching than a Java solution could ever

NullPointerException in Page constructor

2013-03-25 Thread jchappelle
We have just upgraded from wicket 1.5.4 to 1.5.10 and we are getting a NullPointerException in the constructor of all the pages. It is happening because our AuthorizationStrategy.isActionAuthorized calls a method on the on our BasePage class. A NullPointerException occurrs in that method because