Re: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-13 Thread Martin Grigorov
Hi, On Fri, Jan 10, 2014 at 10:31 PM, jchappelle jchappe...@4redi.com wrote: Sometimes it's an AjaxLazyLoadPanel and sometimes it is an AjaxLink. This particular one is from an AjaxLazyLoadPanel. 2013-10-17 07:23:42,782 ERROR ajp-127.0.0.1-8009-6 com.redi.risk.ui.RiskExceptionMapper -

Re: Nested Forms

2014-01-13 Thread Martin Grigorov
Hi, As others explained - yes, this is correct behavior. In the produced page markup you can see that there is form element only for the outer form. The inner form is represented by a div element. Martin Grigorov Wicket Training and Consulting On Fri, Jan 10, 2014 at 7:04 PM, gmparker2000

RequestCycleListener and setPageExpiredErrorPage

2014-01-13 Thread Christoph.Manig
Hello, in my application I do the following configurations: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); getRequestCycleListeners().add(new RequestCycleExceptionListener()); my

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-13 Thread Martin Grigorov
On Fri, Jan 10, 2014 at 9:41 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Thu, Jan 9, 2014 at 11:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Wed, Jan 8, 2014 at 11:41 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Igor, While I see what you mean I think that often

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-13 Thread Oliver B. Fischer
I see your point and I also think that it is very important to ensure the contract your class or methods relies on. But in such a case the method where the method must be final a customization point should be provided to allow us the modify the part of the method which is independent of the

Re: RequestCycleListener and setPageExpiredErrorPage

2014-01-13 Thread Martin Grigorov
Hi, Martin Grigorov Wicket Training and Consulting On Mon, Jan 13, 2014 at 10:52 AM, christoph.ma...@t-systems.com wrote: Hello, in my application I do the following configurations: getApplicationSettings().setPageExpiredErrorPage(Timeout.class);

set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
Hello, I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. I do this the following way: public class TableDisabler implements Runnable{ private IndicatingAjaxButton button; public TableDisabler (IndicatingAjaxButton button){ this.button=button; }

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-13 Thread Oliver B. Fischer
Am 10.01.14 08:41, schrieb Martin Grigorov: if you consulted with the source you would see that there is no reason to override that method directly as its functionality can be completely replaced by overriding postprocess()... so why override the original? For example to prevent

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
Why do you need o start a new thread? Is I might ask the question? On Mon, Jan 13, 2014 at 11:58 AM, christoph.ma...@t-systems.com wrote: Hello, I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. I do this the following way: public class TableDisabler implements Runnable{

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
If I only add the behaviour to the button it is not fast enough. If the user clicks the button an sql-statement starts running which collects a lot of data. The delay between clicking the button and disabling the table is too big. That's why I want to do this in a parallel thead. Mit

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
Hi, It won't be faster again. Your best bet is to use plain JavaScript so that the table is disabled before the Ajax call is even made to the server. See AjaxRequestAttributes's onBeforeSend() method (IndicatingAjaxButton#updateAjaxAttributes()). Martin Grigorov Wicket Training and Consulting

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
Can you give a more detailed example? I cant see how I should add JavaScript and how I should use the updateAjaxAttributes method. Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
demo of Wicket 6 AjaxRequestAttributes: https://github.com/martin-g/blogs/blob/master/wicket6-ajax-demo/src/main/java/com/wicketinaction/HandlebarsButton.java#L104 use beforeSend() callback to execute something like: http://stackoverflow.com/questions/14929095/how-to-add-a-veil-div-to-a-table-row

Re: how to add field to event in a wicket.jquery.ui calendar

2014-01-13 Thread Selom
Hi sebastien, Thanks for the reply. Yes I called calendar.refresh(target) and I use a CompoundPropertyModel. May be i did not use these the right way? I called also calendar.modelChanged() after the form submit but still the same behavoir. Please see my attached quick start zip. Best

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
Hi, Just put a div that covers the table and make it visible (hive it after AJAX). There are many ways to do this in Wicket one is using IAjaxIndicatorAware. There was an article on wicket in action page explaining how to use it (if I recall correctly). On Mon, Jan 13, 2014 at 12:54 PM,

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
I dont want to cover the table. It should be readable for the user. My issue is that the user cant click the toolbars while the request is running. This resolution works, I can see the text 'Before ajax call: @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes){

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
See my link to StackOverflow. It shows how to disable a row. By disable it means put a div above the row so it receives any clicks. The div may be transparent so your users won't notice it. Martin Grigorov Wicket Training and Consulting On Mon, Jan 13, 2014 at 2:42 PM,

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
Hi, I mean cover it with a veil: semi-transparent blocking click. IAjaxIndicatorAware will make this DIV visible. On Mon, Jan 13, 2014 at 1:42 PM, christoph.ma...@t-systems.com wrote: I dont want to cover the table. It should be readable for the user. My issue is that the user cant click the

NPEs when locating resources after upgrading to Wicket 6.13.0

2014-01-13 Thread Thomas Heigl
Hey all, I just tried to upgrade to Wicket 6.13.0 because of the new JQuery version packaged with it. It breaks some of our resource mounting functionality that has been working since 1.4x and some package resources cannot be found anymore. Have there been changes to resource mounting in this

Re: how to add field to event in a wicket.jquery.ui calendar

2014-01-13 Thread Sebastien
Hi Pierre, Thanks for the attached zip. I do not see weird things that can prevent the autocomplete to reflect the changed model object. Unfortunately, I am not able to debug the quickstart because it missing to much dependencies (Joda, Spring...) and custom classes (AgendaModele, AmemetTemplate,

Re: NPEs when locating resources after upgrading to Wicket 6.13.0

2014-01-13 Thread Martin Grigorov
Hi, Please check your logs for : Argument 'delegate' may not be null. This is what g.Args.notNull(Args.java:41) at org.apache.wicket.util.resource.ResourceStreamWrapper.init( ResourceStreamWrapper.java:36) at should actually throw. I am looking why it could be null. Martin Grigorov Wicket

Re: NPEs when locating resources after upgrading to Wicket 6.13.0

2014-01-13 Thread Martin Grigorov
Please put a breakpoint at https://github.com/apache/wicket/blob/wicket-6.x/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java?source=cc#L431 It seems /images/alt_neu_v2.jpg; locale: null; style: null; variation: null does not exists. Only in this case the resource

Re: NPEs when locating resources after upgrading to Wicket 6.13.0

2014-01-13 Thread Thomas Heigl
Hey Martin, I don't have time to create a quickstart at the moment. If you can't find the problem without it I'll try to do it in the next days. The resource is definitely there and downgrading to 6.12.0 fixes the problem immediately. Thomas On Mon, Jan 13, 2014 at 2:15 PM, Martin Grigorov

WicketTester: getLastRenderedPage() returns null

2014-01-13 Thread Oliver B. Fischer
I have strange unit test where I use the WicketTester. I perform the usual Does the page renders test?. In my IDE the test passes, but fails on the command line with Maven. When I execute the test on the command line I can see that getLastRenderedPage() returns null. Any idea how to debug

Fwd: Wicket and embedded tomcat

2014-01-13 Thread bangaly sangare
Hello, I want to embed tomcat with my wicket application. I use maven to deploy my application. Can somebody tell how I have to do that ? Thanks.

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
I tried it like this: @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes){ super.updateAjaxAttributes(attributes); IAjaxCallListener ajaxCallListener = new AjaxCallListener() { @Override public CharSequence

Re: Fwd: Wicket and embedded tomcat

2014-01-13 Thread Richard W. Adams
What do yo mean by embed? You want to include Tomcat as part of your distribution? From: bangaly sangare bangaly.sang...@gmail.com To: users@wicket.apache.org Date: 01/13/2014 09:22 AM Subject:Fwd: Wicket and embedded tomcat Hello, I want to embed tomcat with my wicket

Re: Wicket and embedded tomcat

2014-01-13 Thread Martin Grigorov
Hi, What have you tried so far ? Martin Grigorov Wicket Training and Consulting On Mon, Jan 13, 2014 at 4:07 PM, bangaly sangare bangaly.sang...@gmail.comwrote: Hello, I want to embed tomcat with my wicket application. I use maven to deploy my application. Can somebody tell how I have to

Re: WicketTester: getLastRenderedPage() returns null

2014-01-13 Thread Martin Grigorov
Hi, You can use MAVEN_OPTS to set the debugging JVM options and attach remote debugger. Most probably some resource is in the classpath in the IDE, but not when executing with Maven. Martin Grigorov Wicket Training and Consulting On Mon, Jan 13, 2014 at 3:53 PM, Oliver B. Fischer

Re: how to add field to event in a wicket.jquery.ui calendar

2014-01-13 Thread Pierre
Sebastien, Thank for your suggestion. My bean (PersonnelEvent ) is correctely persisted after submiting the dialog. Also I did the debugging. And it seems like the problem is due to the fact that my field sesame is not a *Event Data* field from fullCalendar

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
define didn't work put some console.log() statements in the JS to see what is executed hint: DataTable uses thead element for the toolbars, and tbody for the real data Martin Grigorov Wicket Training and Consulting On Mon, Jan 13, 2014 at 4:34 PM, christoph.ma...@t-systems.com wrote: I tried

[ANNOUNCE] Apache Wicket 6.13.0 adds free online user guide

2014-01-13 Thread Martijn Dashorst
The Apache Wicket PMC is proud to announce Apache Wicket 6.13.0! This release marks the thirteenth minor release of Wicket 6. Starting with Wicket 6 we use semantic versioning for the future development of Wicket, and as such no API breaks are present in this release compared to 6.0.0. New and

Re: how to add field to event in a wicket.jquery.ui calendar

2014-01-13 Thread Sebastien
Hi Pierre, I have misunderstood the issue, sorry. I thought you had something displayed before (state #1), which was not reflected after the update (state #2)... Actually, the visual representation of the event in the calendar relies on the calendar itself (fullcalendar.js). If you wish to

Models and page serialization

2014-01-13 Thread gmparker2000
I would like to be able to analyze a particular Wicket page to determine where I might be using models incorrectly. The model behind the page is a very nested serializable object that is kept in a document cache. The idea is to use a loadable detachable model that will retrieve the object from

Re: [OT] thanks

2014-01-13 Thread Pierre Goupil
Good evening, I finally have the need to use nginx, but can't figure out how to configure it with Wicket and Atmosphere. I've provided the nginx configuration quoted above, and in my init() method of WebApplication, I have: this.getFilterFactoryManager().add(new

Static HTML is validating the dynamic content

2014-01-13 Thread Paul Bors
When I develop my components I drop example output so that if the HTML file is open by itself once can get a preview of a mock-up of how the app might look like. Usefull for when the component is to be styled and etc. I just noticed that at runtime in development mode the HTML validation fails

Re: Static HTML is validating the dynamic content

2014-01-13 Thread Martin Grigorov
Hi, Yes, Wicket uses XML-like parser (org.apache.wicket.markup.parser.XmlPullParser) to read the markup. You can use CDATA around such special snippets. Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 2:49 AM, Paul Bors p...@bors.ws wrote: When I develop my components

Re: Models and page serialization

2014-01-13 Thread Martin Grigorov
Hi, If you use Wicket 6.x then you can use special impl of org.apache.wicket.core.util.objects.checker.IObjectChecker To use it you have to extend org.apache.wicket.serialize.java.JavaSerializer#newObjectOutputStream. See for example how