Re: Help. Is it possible show a alert before setThrottleDelay..??

2012-04-11 Thread cellis
I'm trying the same idea within the AjaxPagingNavigator, that is, prepend an alert (or a jQuery for that matter), but the onclick javascript is always the default var wcall=wicketAjaxGet('.. I just can't seem to get the extra javaScript/jQuery to wrap around (for reference, I am attempting to

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-11 Thread Heikki Uotinen
Hi, it seems that IE9 leaks memory heavily when updating components with Ajax in IE9 document mode. can anyone confirm if this is Wicket related issue ? Forcing IE8 document mode will cause some problems in the future. Our use case is process displays where data comes from automation or

Re: dynamic wizard - update model

2012-04-11 Thread Frederico Rodrigues
Hi, If i remove override setObject/getObject doesn´t work, this works when i remove setDefaultFormProcessing Em 10-04-2012 08:30, Martin Grigorov escreveu: Hi, On Mon, Apr 9, 2012 at 6:50 PM, Frederico Rodrigues frederico_rodrig...@ano.pt wrote:

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-11 Thread Chris Colman
how exactly did you solve it with jQuery ? Since this leak seems to be caused by wicket-ajax calls then solution would be bypassing those, this would be the last resort. Wicket 6 uses jQuery for its AJAX backhauling. I wonder if, therefore, if your app were ported to Wicket 6 if the IE9 problem

404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread rawe
Hi, after updating from Wicket 1.4 to 1.5.4 I get a 404 error when doing a form submit. I get this error when calling a SubmitLink or a normal page submit. It's working in Tomcat 6, but not with Websphere 6.1 My Log output is empty - no error log ! The only message is (german): Error 404:

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread Martin Grigorov
Hi, On Wed, Apr 11, 2012 at 12:03 PM, rawe ralph.wey...@dachser.com wrote: Hi, after updating from Wicket 1.4 to 1.5.4 I get a 404 error when doing a form submit. I get this error when calling a SubmitLink or a normal page submit. It's working in Tomcat 6, but not with Websphere 6.1 My

Re: Re: Page Expired with Google Analytics Tracking Code

2012-04-11 Thread wicket
Hi, thank you for the answer. The they are not completely empty means the following. My results variable is a Vector that contains LoadableDetachableModel's in the form of the LoaableListingEntryModel. This model contains a class that has two variables that I access with getResults() and

Re: Page Expired with Google Analytics Tracking Code

2012-04-11 Thread Bas Gooren
Well, for starters I wonder why you are using multiple LoadableDetachableModels in a Vector? What we do 99% of the time is this: - Wrap the entire resultset in a LDM - Feed that LDM to a ListView or a variant (we have a custom RepeatingView for paged database listings) - Use PropertyModels

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-11 Thread Heikki Uotinen
Hi, I tested against apache-wicket-6.0.0-beta1 with that simple example in the first mail. Application still leaked memory on IE9 document mode, same behavior as with 1.5.5. Confirmed that it is using jQuery: script type=text/javascript

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread rawe
What I see in Firebug on tab network, when running the application under tomcat is: /POST page?9-3.IFormSubmitListener-frmOrderDetail 302 Moved Temporarily localhost:8080 0 127.0.0.1:8080/ Normally I get a status of 200. That's why Websphere can't find the page : 302 Moved Temporarily

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread Martin Grigorov
Doing a redirect is a normal operation in the web. That's why there is a HTTP status code for it, even several codes - 3xy. Check http://en.wikipedia.org/wiki/Post/Redirect/Get On Wed, Apr 11, 2012 at 1:53 PM, rawe ralph.wey...@dachser.com wrote: What I see in Firebug on tab network, when

Re: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-11 Thread Martin Grigorov
Hi, From your mails I still don't understand how exactly you measure the memory consumption. You have two options: 1) google for javascript memory leak. You can add Internet explorer in the search term too I'm not sure whether IE has tools to deal with that but you can use

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-11 Thread Heikki Uotinen
Hi, 1) Process Explorer and IE developer tools 2) ok -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 11. huhtikuuta 2012 14:14 To: users@wicket.apache.org Subject: Re: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5) Hi, From your mails I

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread rawe
Yes, also when a redirect is a normal operation it seems that Websphere 6.1 cannot handle it. see also the known problem with glassfish: https://issues.apache.org/jira/browse/WICKET-2732 https://issues.apache.org/jira/browse/WICKET-2732 -- View this message in context:

Handling nested form submission on enter

2012-04-11 Thread Emmanouil Batsis (Manos)
I have a nested form that works as expected when it's submit button (an IndicatingAjaxButton) is pressed but not when the user presses the enter key when one of it's form fields is focused. Is it possible to capture this enter key press to trigger the nested form's submit instead? Manos

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Hi, already tried form setDefaultButton method (see JavaDoc)? I have a nested form that works as expected when it's submit button (an IndicatingAjaxButton) is pressed but not when the user presses the enter key when one of it's form fields is focused. Is it possible to capture this enter key

rawInput, page reload and error messages

2012-04-11 Thread Thomas Götz
Hi! I have the following situation (Wicket 1.5.5): - a Form with a TextFieldString with some Validator - you input invalid data and submit - error message, fine. - (invalid) rawInput is shown in the TextField, fine. - now I do a page reload, invalid rawInput still in the TextField, but no error

RE: Using Wicket 1.5 with Oracle Application Server

2012-04-11 Thread Thomas.Norton
I wrapped the init method of WicketServlet in a try...catch block and the following exception got logged: java.lang.SecurityException: Unauthorized access from application: RIDGIDPortal to MBean: java.lang:type=ClassLoading at

Re: Using Wicket 1.5 with Oracle Application Server

2012-04-11 Thread Martin Grigorov
Any reason to have wicket-jmx.jar in the classpath ? If it is not needed just remove it. On Wed, Apr 11, 2012 at 4:44 PM, thomas.nor...@emerson.com wrote: I wrapped the init method of WicketServlet in a try...catch block and the following exception got logged: java.lang.SecurityException:

Re: Handling nested form submission on enter

2012-04-11 Thread Emmanouil Batsis (Manos)
On 04/11/2012 04:14 PM, Andrea Del Bene wrote: already tried form setDefaultButton method (see JavaDoc)? Thanks, I just did and the flow is the one desired, but for some reason the nested form field models are not updated with the field inputs when the submit buttons onSubmit() is called. Is

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread Andrew Geery
Wicket 1.5 requires servlet 2.5 [ https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-%2528RC1%2529UpgradedtoServletAPI2.5 ], but WAS 6.1 only supports J2EE 1.4 (servlet 2.4) [ http://en.wikipedia.org/wiki/IBM_WebSphere_Application_Server#Version_6.1 ], so I wouldn't

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread Martin Grigorov
On Wed, Apr 11, 2012 at 5:05 PM, Andrew Geery andrew.ge...@gmail.com wrote: Wicket 1.5 requires servlet 2.5 [ https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-%2528RC1%2529UpgradedtoServletAPI2.5 ], but WAS 6.1 only supports J2EE 1.4 (servlet 2.4) [

Re: 404 error using Wicket 1.5.4 and Websphere 6.1

2012-04-11 Thread rawe
Yes, I think the problem could be the servlet-api version. WAS 6.1 is running with servlet-api 2.4, so I won't install a wicket 1.5 application on it! Thanks for your help! Ralph -- View this message in context:

How to enable SSI in wicket framework.

2012-04-11 Thread vaibhav228
Hi All, I have configured the SSI in apache Tomcat 7.0 by un-commenting the tags in web.xml for ssi and adding privileged=true in the context.xml. I am using the wicket framework and the project is running at the root level.But unfortunately the framework is not processing the

RE: Using Wicket 1.5 with Oracle Application Server

2012-04-11 Thread Thomas.Norton
That was the problem. Thanks! -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, April 11, 2012 9:48 AM To: users@wicket.apache.org Subject: Re: Using Wicket 1.5 with Oracle Application Server Any reason to have wicket-jmx.jar in the classpath ? If

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Thanks, I just did and the flow is the one desired, but for some reason the nested form field models are not updated with the field inputs when the submit buttons onSubmit() is called. Is there something

Re: Handling nested form submission on enter

2012-04-11 Thread Emmanouil Batsis (Manos)
On 04/11/2012 05:39 PM, Andrea Del Bene wrote: Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Sort of found what the problem is but have no clue on how to solve it. Pressing enter in one of the nested forms submits the last nested form in the page.

Re: How to enable SSI in wicket framework.

2012-04-11 Thread Dan Retzlaff
SSI is implemented with its own servlet which is totally separate from Wicket's filter, so you cannot use both Wicket and SSI for a single page. However, Wicket provides a variety of ways to include content into pages it renders: panels, fragments, labels, and more. Once you're familiar with these

Re: rawInput, page reload and error messages

2012-04-11 Thread Dan Retzlaff
You might want to subclass Form to retain additional state. It could save the validation errors and put them back onto components in onBeforeRender, clearing them when validation is eventually successful. This could probably also be accomplished with a Behavior. On Wed, Apr 11, 2012 at 7:19 AM,

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
It's like if JavaScript can't tell apart a form from another. Can you check the HTML generated for your page and see if forms have an unique id? On 04/11/2012 05:39 PM, Andrea Del Bene wrote: Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Sort of found

Re: Javascript call on AjaxFallbackDefaultDataTable

2012-04-11 Thread Dan Retzlaff
Yes. You're returning your decorator in an AjaxLink#getAjaxCallDecorator() override? I think you'll need to pastebin some code for us to help. On Tue, Apr 10, 2012 at 11:27 PM, cellis christopher.el...@uwa.edu.auwrote: I've tried to implement the ajaxCallDecorator as you specified, but I fail

Re: Handling nested form submission on enter

2012-04-11 Thread Emmanouil Batsis (Manos)
On 04/11/2012 07:53 PM, Andrea Del Bene wrote: It's like if JavaScript can't tell apart a form from another. Can you check the HTML generated for your page and see if forms have an unique id? Checked, the IDs are unique. I couldn't figure out what the actual problem is so, to bypass it, I

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread James Carman
I would recommend checking out one of the existing libraries that does Wicket/CDI integration. On Wed, Apr 11, 2012 at 3:54 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix. In certain cases when Wicket deserializes a Page

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread Jonathan Tougas
Using wicket-cdi https://github.com/42Lines/wicket-cdi the problem still exists. I'll update the example in a moment. On Wed, Apr 11, 2012 at 3:58 PM, James Carman ja...@carmanconsulting.comwrote: I would recommend checking out one of the existing libraries that does Wicket/CDI integration.

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread James Carman
The Wicketopia example application doesn't run into those troubles. I may not be doing exactly what you're doing, though: https://github.com/jwcarman/Wicketopia On Wed, Apr 11, 2012 at 4:26 PM, Jonathan Tougas jtou...@gmail.com wrote: Using wicket-cdi https://github.com/42Lines/wicket-cdi

JQuery and Wicket 1.5 question

2012-04-11 Thread Sandor Feher
Hi, I would like to use some visural wicket components so I need to initialize JQuery first. I'm wondering how to initialize it in wicket 1.5. The example shown below does not work in 1.5. Thank you in advance! Regards., Sandor -- package com.myapp.wicket; import

Re: Page Expired with Google Analytics Tracking Code

2012-04-11 Thread Andre Schütz
Hi, I implemented your version but still I get the same error, if I have the Google Analytics Code in the head. Could it be an error with the way I insert the Google Analytics Code? I do it in the following way. In my WebPage class I overwrite the following method: @Override public void

Same versioned link opens different pages on different machines

2012-04-11 Thread Alec Swan
Hello, I received a link from a customer to a versioned page (.version at the end of the URL). However, when I click on the link I see a completely different page. We are using Wicket 1.4.17 and the page is mounted as: mount(new HybridUrlCodingStrategy(mp, MyPage.class)); Why is this

Re: Same versioned link opens different pages on different machines

2012-04-11 Thread Igor Vaynberg
page 5 in your session can be completely different then page 5 in user's session. non-bookmarkable urls cannot be emailed...thats kind of the point. -igor On Wed, Apr 11, 2012 at 2:37 PM, Alec Swan alecs...@gmail.com wrote: Hello, I received a link from a customer to a versioned page

Re: Same versioned link opens different pages on different machines

2012-04-11 Thread Bertrand Guay-Paquet
Hi, A ticket regarding this was created and resolved in 1.5 (WICKET-4488). From the work log: There was code for this situation but it didn't cover the case 100%. Now if a request to page2?0 is made and the type of the found page with id=0 is not Page2 then a new instance of Page2 is

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
I found the same problem, in my case it is page reload. I have a simple QS that has a button that increments a counter using ajax. When the user refreshes the page, the counter shows the correct number of clicks. More clicks, and a new refresh, the counter shows as expected. However, if I add an

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Dan Retzlaff
Yeah, that sounds like the same issue: https://issues.apache.org/jira/browse/WICKET-4286 On Wed, Apr 11, 2012 at 6:52 PM, Nelson Segura nsegu...@gmail.com wrote: I found the same problem, in my case it is page reload. I have a simple QS that has a button that increments a counter using ajax.

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
This is easily reproduceable in the wicket sample pages: http://www.wicket-library.com/wicket-examples/ajax/links 1. Click on the increment link for Counter 2 for times. Counter shows 4. 2. CTRL-R/refresh 4 times, the counter still shows 4. 3. Click on link 4 more times. Counter shows 8

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
Sorry, you dont have to refresh 4 times, just once :p -Nelson On Wed, Apr 11, 2012 at 6:08 PM, Nelson Segura nsegu...@gmail.com wrote: This is easily reproduceable in the wicket sample pages: http://www.wicket-library.com/wicket-examples/ajax/links 1. Click on the increment link for Counter

RE: Error during start of wicket application

2012-04-11 Thread Alex Rass
Seems like a classpath issue. Make sure that all the wicket jars that you need are included in your path. - Alex -Original Message- From: André Schütz [mailto:andre-p...@gmx.de] Sent: Thursday, February 23, 2012 12:13 PM To: users@wicket.apache.org Subject: Error during start of wicket

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Dan Retzlaff
I don't know exactly what is making the page dirty in this case. The AJAX debug window has a ListView in it. On Wed, Apr 11, 2012 at 7:09 PM, Nelson Segura nsegu...@gmail.com wrote: Sorry, you dont have to refresh 4 times, just once :p -Nelson On Wed, Apr 11, 2012 at 6:08 PM, Nelson Segura

tomcat deployment issues

2012-04-11 Thread Alex Rass
If someone could help me out with this issue, that would be awesome. Currently: Deploying on Tomcat 6. Default deploy folder is webapps webapps/ROOT is where my 1st wicket app is (lets call it App1) webapps.web2 is another Host record for a different URL. webapps.web2/app2 is my wicket app #2

IDataProvider#size()

2012-04-11 Thread Dan Retzlaff
Hi all. Time to start a thread of my own. :) Many of Wicket's powerful repeaters depend on IDataProvider. This interface has a size() method which returns a non-null integer. This makes it easy to determine the total number of pages in a pageable view, but IMO the required computation and

Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Ahijah
I've been working on various implementations of this all day, to try and output a simple JSON response, as Content-Type: application/json, with absolutely no luck. My current class is setup as below. However, when sending a request to the Feed URL, it comes back as text/plain, with the JSON

Re: Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Dan Retzlaff
Hi, Ahijah. I think you should use a resource for this, not a page. Something like: class MyResource extends AbstractResource { ResourceResponse newResourceResponse(Attributes a) { ResourceResponse r = new ResourceResponse(); r.setContentType(application/json);

Re: IDataProvider#size()

2012-04-11 Thread Igor Vaynberg
why not just fake the size to current page+1? that way you always have a next link and once you receive the current page you should know if you have more or not so you dont have to add the one on the last page -igor On Wed, Apr 11, 2012 at 6:59 PM, Dan Retzlaff dretzl...@gmail.com wrote:

Re: Wicket 1.5 - Generic JSON Response

2012-04-11 Thread Ahijah
Thanks for the tip, that definitely sounds like the way to go. Quick follow-up, how does one mount an AbstractResource within the application. There doesn't appear to be an Abstract reference class to instantiate using something like: mountResource(/Feed2, new ResourceReference(Feed2.class));

Re: How to enable SSI in wicket framework.

2012-04-11 Thread vaibhav228
Thanks for the reply Dan. We need to use only SSI, because these pages are getting generated from the CMS, and in the CMS we have done separate header, footer, menu htmls and while generating main page we are including these pages into main page and deploying that main page in Apache tomcat where