[ANNOUNCE] Apache Wicket 1.5.10 is released

2013-02-26 Thread Martin Grigorov
This is the tenth maintenance release of the Wicket 1.5.x series. This release brings over 28 bug fixes and improvements. Git tag: release/wicket-1.5.10 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12323510 Maven: dependency

Re: page mounting

2013-02-26 Thread Dr. Britta Landgraf
Hi, in public IRequestHandler mapRequest(final Request request) the mappers will be sort by: Collections.sort(list); So there is no chance to influence the order of the mappers :( regards britta Am 25.02.2013 11:18, schrieb Martin Grigorov: Hi, I've just tried it in a quickstart and my

Re: page mounting

2013-02-26 Thread Martin Grigorov
Hi, This #sort() sorts by the compatibility score the mapper returns for this Request. If two or more mappers return the same score then the order in the list depends on the order of the mounting in Application#init(), i.e. the order of insertion in the non-sorted list. On Tue, Feb 26, 2013 at

wicket6-ajax-anchorbrowserhistory

2013-02-26 Thread Oscar Besga Arcauz
Hi wickers ! First, I'd like to thank all the people that have helped me from this forum: Second, I've created a github repo to place a pair of classes that I'm using in my projects.     https://github.com/obaisdefe/wicket6-ajax-anchorbrowserhistory This code is based on the work of

Re: page mounting

2013-02-26 Thread Dr. Britta Landgraf
I solved it now by overriding getCompatibilityScore. Thanks for your hints. britta Am 26.02.2013 10:25, schrieb Martin Grigorov: Hi, This #sort() sorts by the compatibility score the mapper returns for this Request. If two or more mappers return the same score then the order in the list

Re: Integrating Wicket with an Angular app

2013-02-26 Thread sauli.ketola
Ernesto Reinaldo Barreiro-4 wrote I want this special page to be be stateless, so I'm planning to serve JSON needed via mounted resources. I've been also playing with a similar idea. Nice to hear that there are similar attempts going on. In my case I decided to serve the JSON through a Spring

Re: Wicket 6.5.0 upgrade, Extensions Wizard, ApplyState() not called

2013-02-26 Thread Fergal Keating
Hi, If i put a breakpoint in renderCount (it gets called a lot) But the resolvePageInstance only gets called once per request, It seems to have the same renderCount Value that is on the current page. E.G. The page is displaying booking?14-1 for all event listeners. If i change the GroupSize

Re: Wicket 6.5.0 upgrade, Extensions Wizard, ApplyState() not called

2013-02-26 Thread Martin Grigorov
Hi, On Tue, Feb 26, 2013 at 2:10 PM, Fergal Keating fergal.keat...@directski.com wrote: Hi, If i put a breakpoint in renderCount (it gets called a lot) But the resolvePageInstance only gets called once per request, It seems to have the same renderCount Value that is on the current page.

Re: Application name can only be set once

2013-02-26 Thread Sven Meier
How do you create your Application? Do you have a custom IWebApplicationFactory? Sven On 02/26/2013 03:35 PM, Tom Norton wrote: We're upgrading from Wicket 1.5.4 to 1.5.9. The upgrade runs fine on our local development machines, which run WebLogic 11g. However, our staging server, which

Re: Application name can only be set once

2013-02-26 Thread Tom Norton
We use the SpringWebApplicationFactory. Tom On Tue, Feb 26, 2013 at 10:26 AM, Sven Meier s...@meiers.net wrote: How do you create your Application? Do you have a custom IWebApplicationFactory? Sven On 02/26/2013 03:35 PM, Tom Norton wrote: We're upgrading from Wicket 1.5.4 to 1.5.9.

Re: URL fragment parsing

2013-02-26 Thread Maxim Solodovnik
AFAIK it is impossible to read URL hash on the server side Hopefully somebody can write component for that :) I use JS (with the hack to pass authorization) On Tue, Feb 26, 2013 at 11:40 PM, Michael Chandler michael.chand...@onassignment.com wrote: Is it possible to read and parse values in

Re: org.apache.wicket.markup.html.link.PopupSettings.java problem (version 6.5.0)

2013-02-26 Thread chrome1235
Thanks for your reply, I added a quickstart and ticket. https://issues.apache.org/jira/browse/WICKET-5058 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-markup-html-link-PopupSettings-java-problem-version-6-5-0-tp4656735p4656829.html Sent from the

Re: URL fragment parsing

2013-02-26 Thread Martin Grigorov
Hi, The browser doesn't send this information to the server. You need to read it with JS and send it manually (Ajax). Earlier today another user shared his project in GitHub about the same. Read the mail archives. On Tue, Feb 26, 2013 at 7:02 PM, Maxim Solodovnik solomax...@gmail.comwrote:

Re: OnDomReadyHeaderItems

2013-02-26 Thread Ernesto Reinaldo Barreiro
I don't know if there is a better way... but can always check if you are NOT in a middle of and AJAX request cycle and if so contribute your script. On Tue, Feb 26, 2013 at 10:24 PM, Nick Pratt nbpr...@gmail.com wrote: With Wicket 6.5.0, is it expected that scripts added in Behavior.renderHead

Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Nigel Sheridan-Smith
Hi all, I'm hooking up a data import batch job with Quartz to Wicket and have struck an issue - how do you notify a Wicket page that the batch job is complete? I originally planned to update the Wicket session with the running count of how many items are processed. However, the Wicket request

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Paul Bors
I would look at Observable and Observer class in java to achieve signal sort of behavior. On Tue, Feb 26, 2013 at 5:47 PM, Nigel Sheridan-Smith wtfi...@gmail.comwrote: Hi all, I'm hooking up a data import batch job with Quartz to Wicket and have struck an issue - how do you notify a Wicket

How to automatically add a parameter to every request

2013-02-26 Thread Florian Braun
Hello, I am currently in the process of migrating an application from Wicket 1.4 to Wicket 6. In my application I have a parameter that needs to be part of every request (kind of like pageMaps used to be in 1.4). This means I have to check each request to see if the parameter is there and if

Re: How to automatically add a parameter to every request

2013-02-26 Thread Igor Vaynberg
see IRequestCycleListener#onUrlMapped() -igor On Tue, Feb 26, 2013 at 6:35 PM, Florian Braun florianbrau...@gmail.com wrote: Hello, I am currently in the process of migrating an application from Wicket 1.4 to Wicket 6. In my application I have a parameter that needs to be part of every

Re: Handle JSON response

2013-02-26 Thread Paul Bors
There is a wiki page on that: https://cwiki.apache.org/WICKET/how-to-write-json-response.html ~ Thank you, Paul C Bors On Feb 26, 2013, at 20:33, abarretto abarrett...@gmail.com wrote: Hi, I'm a beginner in Wicket and I need to develop a simple application that make an AJAX request to

Re: Handle JSON response

2013-02-26 Thread Paul Bors
If you want to see a simple project using Jackson to render JSON on the page take a look at: http://wicket-continuous-calendar.GoogleCode.com/ Or a bit bigger one: http://wicked-charts.GoogleCode.com Or poke around other open source code projects in Wicket that use those dependencies in Maven.

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Ernesto Reinaldo Barreiro
Hi, I remember I have done this by creating a class that serves a progress watching context and sharing an instance of this class between Wicket Session (or a page or component) and the quartz job. This class acted as a wire to pass information between the two threads (e.g. progress, cancel the

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Nigel Sheridan-Smith
Thanks Paul and Ernesto, After much stuffing around, I managed to get this to work: modifying the JobDataMap within the Quartz job. However, you must re-publish the map after it has been changed, as Quartz serializes it and doesn't update it until after the job finishes executing. You might also

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Feb 27, 2013 at 7:32 AM, Nigel Sheridan-Smith wtfi...@gmail.comwrote: Thanks Paul and Ernesto, After much stuffing around, I managed to get this to work: modifying the JobDataMap within the Quartz job. However, you must re-publish the map after it has been changed, as Quartz

Re: Handle JSON response

2013-02-26 Thread Martin Grigorov
Hi, The demo app for what's new in Wicket 6's JavaScript does exactly this: http://wicketinaction.com/2012/07/wicket-6-javascript-improvements/ On Wed, Feb 27, 2013 at 6:34 AM, Paul Bors p...@bors.ws wrote: If you want to see a simple project using Jackson to render JSON on the page take a

Re: How to automatically add a parameter to every request

2013-02-26 Thread Martin Grigorov
Hi, You can also use a custom root mapper that does this for all wrapped mappers. See how HttpsMapper and CryptoMapper work. On Wed, Feb 27, 2013 at 4:55 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: see IRequestCycleListener#onUrlMapped() -igor On Tue, Feb 26, 2013 at 6:35 PM, Florian

Re: OnDomReadyHeaderItems

2013-02-26 Thread Martin Grigorov
Hi, DomReady JS is executed manually in Ajax response: 1) execute prepend JS 2) replace components 3) execute ondomready 4) execute append JS As Ernesto suggested you can use: if (requestCycle.find(AjaxRequestTarget.class) == null) { response.render(OnDomReadyHeaderItem.forScript(...)); }