Re: Excluding path from Wicket filter (to let 404 pass as-is)?

2012-09-22 Thread Christoph Leiter
There's a parameter ignorePaths which you can configure in web.xml. See WicketFilter source. Christoph On 22.09.2012 10:07, Ondřej Žižka wrote: Hi, I have Wicket filter at /* and RESTEasy in AS 7, which is a servlet at /rest/* Wicket processes 404 because of filter-mapping

Re: Wicket 1.5 migration questions

2012-09-12 Thread Christoph Leiter
On 12.09.2012 21:38, Alec Swan wrote: PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. My point exactly. That's why I can't just do mountResource(/global, new MyRR()) as Martin suggested. My quick try: public class MyPackageResourceReference extends

Re: Wicket 1.5 migration questions

2012-09-12 Thread Christoph Leiter
On 12.09.2012 22:50, Alec Swan wrote: I tested your implementation and was able to pull global/css/styles.css from the browser. However, the following code threw an exception: response.renderCSSReference(new MyPackageResourceReference(MyResources.class, css/styles.css), screen); Maybe you

Re: How to prevent duplicates when using HeaderContributor

2012-05-03 Thread Christoph Leiter
Hi, the Javadoc of IHeaderResponse#renderString says: Renders an arbitrary string to the header. The string is only rendered if the same string hasn't been rendered before. So if you call it with two different titles the expected behavior is to get the title tag twice. I wouldn't use a

Re: force model update on a wicket form

2012-04-28 Thread Christoph Leiter
That's because Component#setDefaultModelObject is called internally. It uses an IModelComparator to check whether the model object needs to be changed. The default implementation uses an Object#equals() check. So if the new value is equal to the old value it ignores the call. If you want

Re: reloading of HTML and classes

2012-04-22 Thread Christoph Leiter
You are right, I was able to reproduce it: https://issues.apache.org/jira/browse/WICKET-4509 Christoph On 20.04.2012 18:24, Andrew Geery wrote: An issue I ran into with having Wicket reload the html files in development mode is that it doesn't seem to work if the path to the html files has

Re: reload model each time

2012-04-15 Thread Christoph Leiter
On 14.04.2012 16:38, Emmanouil Batsis (Manos) wrote: On 04/14/2012 03:03 PM, Christoph Leiter wrote: Here's a good article about EntityModel, which does what you want: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ Sorry for jumping in but wanted to make sure I get

Re: reload model each time

2012-04-14 Thread Christoph Leiter
Here's a good article about EntityModel, which does what you want: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ Christoph Tom Eugelink (2012-04-14 13:38): Another newbie question; it is now the case that each model is serialized between requests and (I presume) stored in

Re: Wicket with ServletContainerInitializer

2012-04-04 Thread Christoph Leiter
Christoph Leiter (2012-04-03 12:55): Hi, I'm trying to use ServletContainerInitializer to start my wicket application. There's already work done to support this in WICKET-4350. It's not working for me, however. The filter is registered in jetty but I get a 404 response for every request. What I've done

Wicket with ServletContainerInitializer

2012-04-03 Thread Christoph Leiter
Hi, I'm trying to use ServletContainerInitializer to start my wicket application. There's already work done to support this in WICKET-4350. It's not working for me, however. The filter is registered in jetty but I get a 404 response for every request. What I've done so far (starting from a

Re: Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Christoph Leiter
Hi, do you use 1.5.4 with package resources? There's a bug that causes locked resources: https://issues.apache.org/jira/browse/WICKET-4359 Until 1.5.5 is released you can use 1.5.3, which is not affected by this bug. Christoph On 04.03.2012 10:29, Jürgen Lind wrote: Hi, I was just

Re: Component specific JavaScript

2012-02-19 Thread Christoph Leiter
On 18.02.2012 17:46, Jürgen Lind wrote: thank you for your reply, I did not know that such a method exists (does it for 1.4 or is this already Wicket 1.5). An secondly: are these handlers fired on a ajax update of an existing DOM Element or only when it is added? This is also available in 1.4.

Re: Component specific JavaScript

2012-02-19 Thread Christoph Leiter
. J. On 19.02.2012 13:02, Christoph Leiter wrote: On 18.02.2012 17:46, Jürgen Lind wrote: thank you for your reply, I did not know that such a method exists (does it for 1.4 or is this already Wicket 1.5). An secondly: are these handlers fired on a ajax update of an existing DOM Element or only

Re: Component specific JavaScript

2012-02-19 Thread Christoph Leiter
is the added element? Could you probably add some code to illustrate this? J. On 19.02.2012 13:28, Christoph Leiter wrote: Hi Juergen, there's actually no need to scan the full DOM with this method. :) The first argument of the event handler is the added element. You can simply use

Re: Component specific JavaScript

2012-02-18 Thread Christoph Leiter
Hello Juergen, you can register a function that gets called when wicket creates a new element in the DOM: Wicket.Event.subscribe('/dom/node/added', function(element) { // do stuff }); You can also use the '/dom/node/removing' channel. Hope this helps. Christoph Jürgen Lind