Re: When will my panels be released?

2011-05-26 Thread MattyDE
Iam not aware that i keep some references anywhere. could it be possible, that the panels will be freed if the DataPageStore exceed? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551705.html Sent from the Users forum

Re: When will my panels be released?

2011-05-26 Thread Martin Grigorov
On Thu, May 26, 2011 at 9:02 AM, MattyDE ufer.mar...@gmail.com wrote: Iam not aware that i keep some references anywhere. could it be possible, that the panels will be freed if the DataPageStore exceed? This store keeps byte[]. It doesn't know about Java objects. -- View this message

Re: When will my panels be released?

2011-05-26 Thread MattyDE
ohkaay... So i dont understand why my GridView Panels are not released immediately... I browse to site A - heap dump - GridView Panels in the Heap (Correct) to site B - heap dump - GridView Panels still in Heap (why?) to site A - heap dump - GridView Panels sometimes still in Heap (why, and why

Re: When will my panels be released?

2011-05-26 Thread Martin Grigorov
The last N pages are kept in the http session for faster read when browser back button is used and for Ajax apps. In Wicket 1.5 (trunk) you can see org.apache.wicket.settings.IStoreSettings.getInmemoryCacheSize() On Thu, May 26, 2011 at 9:25 AM, MattyDE ufer.mar...@gmail.com wrote: ohkaay...

Re: When will my panels be released?

2011-05-26 Thread MattyDE
Iam using wicket 1.4.8 Any chance to disable session keeping for certain components or to disable this feature at all? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551758.html Sent from the Users forum mailing list archive

Re: When will my panels be released?

2011-05-26 Thread Martin Grigorov
In 1.4 see org.apache.wicket.settings.ISessionSettings.setMaxPageMaps(int) org.apache.wicket.settings.ISessionSettings.setPageMapEvictionStrategy(IPageMapEvictionStrategy) On Thu, May 26, 2011 at 9:37 AM, MattyDE ufer.mar...@gmail.com wrote: Iam using wicket 1.4.8 Any chance to disable session

Re: Problems localized URLs (https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html)

2011-05-26 Thread Andreas Maza
Thanks, Martin - but that's a different story ;-) I have already read about the features of 1.5 and I would really be keen to migrate. However, that's not possible for the moment, since we have to come up with that site in a about a month and that's too late to switch (moreover, some

Re: Problems localized URLs (https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html)

2011-05-26 Thread Martin Grigorov
Shame! This blog http://day-to-day-stuff.blogspot.com has few articles about mounting in 1.4. And maybe http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ (same author) can help you. Good luck! On Thu, May 26, 2011 at 10:19 AM, Andreas Maza andr.m...@gmail.com wrote: Thanks, Martin - but

problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
Hi all, I have a modal window with a login form inside that works fine when I test it manually. I try to test it with wicket tester since yesterday. I saw in some mails of this list that there is nothing special in testing modal windows. I tried this :

Re: tree do not stay open tree collapsed after setResponsePage

2011-05-26 Thread hubert_hupe
hi, i do not reload the page - or rather the page reloads itself. the page has two div areas in the markup and i load the target page into one div and the tree in the other. regards hubert Am 25.05.2011 um 20:51 schrieb James Carman: How are you getting back to the original page? On Wed,

Re: tree do not stay open tree collapsed after setResponsePage

2011-05-26 Thread Martin Grigorov
With code like:  Page1 p1 = new Page1(node.toString()); setResponsePage(p1); -- it is you who reloads the page. Load a page in a div ? How do you do that ? The only possible way is to put an iframe in the div. I guess you need a Panel instead of a Page and re-render it with :

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Hi Mathilde, maybe the form id you use in test is not correct. How do you add form to modalWindow? Can you attach code? Hi all, I have a modal window with a login form inside that works fine when I test it manually. I try to test it with wicket tester since yesterday. I saw in some mails

Re: tree do not stay open tree collapsed after setResponsePage

2011-05-26 Thread hubert_hupe
i used the following example as a template: http://wicket.apache.org/learn/examples/markupinheritance.html With code like: Page1 p1 = new Page1(node.toString()); setResponsePage(p1); -- is there an alternative to show Page1 without using setResponsePage? Am 26.05.2011 um 10:23 schrieb

Re: Problems localized URLs (https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html)

2011-05-26 Thread Andreas Maza
Thanks Martin. I've already googled a lot and read the article by Erik you are referencing (http://blog.jteam.nl/2010/02/24/wicket-root-mounts). However, this blog post target a different URL mounting problem and refers to the wiki article by Alex Objelean, which I am quoting in the subject of

Re: wicket session statistics

2011-05-26 Thread KingFee Dong
hello, Maybe my question is not very clear. I want to Statistics Session Numbers, I mean the sessions in the application. for example there are two users online the session should be 2. Can anyone give me some solutions ? Thank you all the same,Martin Grigorov! Good Luck ! 2011/5/26

Re: wicket session statistics

2011-05-26 Thread Martin Grigorov
see DebugBar panel in wicket-devutils.jar 2011/5/26 KingFee Dong kingfee.d...@gmail.com: hello, Maybe my question is not very clear.  I want to Statistics  Session Numbers, I mean the sessions in the application. for example there are two users online the session should be 2. Can

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
this is the code to construct modal window final ModalWindowE4N modalConnexion = new ModalWindowE4N(modalConnexion); modalConnexion.setTitle(Connexion à l'espace membre); modalConnexion.setContent(new ConnexionContentPanel(modalConnexion.getContentId()));

Re: wicket session statistics

2011-05-26 Thread Martin Grigorov
Also Tomcat comes with ManagerApplication which provides such kind of information for all deployed apps On Thu, May 26, 2011 at 12:05 PM, Martin Grigorov mgrigo...@apache.org wrote: see DebugBar panel in wicket-devutils.jar 2011/5/26 KingFee Dong kingfee.d...@gmail.com: hello, Maybe my

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
It's fix : when I paste code to show you, I notice that login form is not added in modal window but in ConnexionContentPanel... So I try this code : ModalWindowE4N modalWindow = (ModalWindowE4N) tester.getComponentFromLastRenderedPage(modalConnexion); ConnexionContentPanel

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Form id is corret, but remember that form and feedback panel are not added directly to modal window. They are inside ConnexionContentPanel which in turn is added to modalwindow. In your test you should be able to access form calling getContent() before get(loginForm), i.e:

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
I didn't find getContent() method to modalWindow component, but it works well in two steps : ConnexionContentPanel loginPanel = (ConnexionContentPanel) modalWindow.get(modalWindow.getContentId()); Form? loginForm = (Form?) loginPanel.get(loginForm); thanks a lot ! 2011/5/26 Andrea Del Bene

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Sorry, I didn't noticed that getContent() is protected. The solution you found is perfect :-) I didn't find getContent() method to modalWindow component, but it works well in two steps : ConnexionContentPanel loginPanel = (ConnexionContentPanel) modalWindow.get(modalWindow.getContentId()); Form?

Re: wicket session statistics

2011-05-26 Thread KingFee Dong
I found that DebugBar panel in wicket-devutils.jar is also talk about size of one session. What I want to count is unexpired sessions in the wicket application. just like a forum,count the online users Thanks ! 2011/5/26 Martin Grigorov mgrigo...@apache.org Also Tomcat comes with

Re: wicket session statistics

2011-05-26 Thread Martin Grigorov
Look deeper. This info is also provided. 2011/5/26 KingFee Dong kingfee.d...@gmail.com: I found that DebugBar panel in wicket-devutils.jar is also talk about size of one session. What I want to count  is unexpired sessions in the wicket application. just like a forum,count the online users

Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Matthias Keller
We have a dynamically generated PDF we send to the user. I figured out a way to do it, but while it works, it produces lots of stacktraces in wicket: I created a PdfResource as subclass of ByteArrayResource. When the user clicks the button, in the onClick() method we do: PdfResource

Re: Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Martin Grigorov
see how org.apache.wicket.markup.html.link.DownloadLink.onClick() does it On Thu, May 26, 2011 at 2:52 PM, Matthias Keller matthias.kel...@ergon.ch wrote: We have a dynamically generated PDF we send to the user. I figured out a way to do it, but while it works, it produces lots of stacktraces

Re: Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Matthias Keller
Thanks Martin Was looking for such an example but couldn't find one right away. Works like a charm even though I don't really understand what's going on - is there some reading about request handler internals in wicket 1.5 somewhere? The wiki pages do not seem to reflect any 1.5 behaviour

WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
Hi all, I am testing a form with FormTester and WicketTester. When I test error messages which are send by form validation, test works well : tester.assertErrorMessages(new String[] {Le champ 'Identifiant' est obligatoire.}); but when I test error message which is send by my submit ajaxButton,

Re: Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Martin Grigorov
There is a label in CWIKI named wicket15. All new information about 1.5 uses it. The migration page is also labeled with this label. It is at the bottom, just click it and you'll see a list of pages for 1.5 that we have currently. IRequestHandler (IRH) is the improved IRequestTarget from 1.4.

Re: WicketTester and error messages

2011-05-26 Thread Martin Grigorov
Maybe you hit the problem in https://issues.apache.org/jira/browse/WICKET-3711 On Thu, May 26, 2011 at 3:30 PM, Mathilde Pellerin mathilde.pelle...@gmail.com wrote: Hi all, I am testing a form with FormTester and WicketTester. When I test error messages which are send by form validation, test

Re: WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
I don't know, it's possible... but honestly, I'm too newbie to judge that. And I don't know how try patches which are proposed... 2011/5/26 Martin Grigorov mgrigo...@apache.org Maybe you hit the problem in https://issues.apache.org/jira/browse/WICKET-3711 On Thu, May 26, 2011 at 3:30 PM,

Re: WicketTester and error messages

2011-05-26 Thread Martin Grigorov
Create a mini application that reproduces the problem (a.k.a. quickstart) and attach it to this ticket. We will take it into account when we apply this patch. Until then you'll have to find a workaround. Or you Wicket 1.5 RC4.2 where this problem is solved... On Thu, May 26, 2011 at 3:49 PM,

Re: WicketTester and error messages

2011-05-26 Thread Mathilde Pellerin
OK, I will try to create a quickstart. thanks for your answer. 2011/5/26 Martin Grigorov mgrigo...@apache.org Create a mini application that reproduces the problem (a.k.a. quickstart) and attach it to this ticket. We will take it into account when we apply this patch. Until then you'll

Re: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Martin Grigorov
Seems to be up now. On Thu, May 26, 2011 at 4:32 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is wicketstuff.org supposed to be up?  I don't know if it is deprecated or not.  There were some good examples out there. -- Martin Grigorov jWeekend Training, Consulting,

RE: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Brown, Berlin [GCG-PFS]
Is it down again, darn I was doing a demo. I am getting a 503 unavailable error. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, May 26, 2011 9:59 AM To: users@wicket.apache.org Subject: Re: WicketStuff.org is down, do you guys need some change

Re: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Martin Grigorov
Use http://www.wicket-library.com/wicket-examples/index.html as backup :-) On Thu, May 26, 2011 at 6:28 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is it down again, darn I was doing a demo. I am getting a 503 unavailable error. -Original Message- From: Martin

Re: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Martijn Dashorst
Download the distribution, and run the examples locally. Using an external (I might add free, volunteer, no-guarantees) service for a demo that you don't have any control over is asking for trouble. Martijn On Thu, May 26, 2011 at 5:28 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com

Re: WicketTester and error messages

2011-05-26 Thread Per Newgro
As far as i understood this, FormTester submit is only for pushing the data from component to model. If you wait for the component to be executed the js event has to be executed. Is it working if you do an WicketTester.executeAjaxEvent(id, onclick); ? Cheers Per Hi all, I am testing a form

Request logger invasive

2011-05-26 Thread Brown, Berlin [GCG-PFS]
Is the request logger invasive? Is it something that can be used in a production environment? http://www.volkomenjuist.nl/blog/2009/04/08/wicket-requestlogger/

Re: Request logger invasive

2011-05-26 Thread Martijn Dashorst
On Thu, May 26, 2011 at 9:34 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is the request logger invasive?  Is it something that can be used in a production environment? http://www.volkomenjuist.nl/blog/2009/04/08/wicket-requestlogger/ Only when you log the size of the

Re: Request logger invasive

2011-05-26 Thread Martin Grigorov
And you can always switch it off/on at runtime thru an admin page for example. On Thu, May 26, 2011 at 10:44 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: On Thu, May 26, 2011 at 9:34 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is the request logger invasive?  Is it

Re: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Bruno Borges
Server is up and running, if anyone haven't noticed yet. :-) *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, May 26, 2011 at 12:45 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Download the distribution, and run the examples locally. Using an external (I might add

JavaScript form submit

2011-05-26 Thread Jered Myers
I am having trouble figuring out how to submit a form that is dynamically created via JavaScript. The page uses JavaScript to create a list of commands inside a form element like so: form input type=hidden name=ActionCd value=Move / input type=hidden name=Origination value=Person1 / input

Re: JavaScript form submit

2011-05-26 Thread Jered Myers
Using the Request object seems to work here. I am not sure if this is a good idea. Here is an example from in the form onSubmit(): Request request = RequestCycle.get().getRequest(); String[] actions = request.getParameters(ActionCd); String[] orginations = request.getParameters(Origination);

Execute Javascript after Ajax

2011-05-26 Thread Phil Franken
Here are my components; Wicket 1.4.17 Page AjaxTabbedPanel (with Panel1 and Panel2) AdPanel which has adsense js, no components AdPanel is on Panel1 and Panel2 When the tab panel renders the first tab (Panel1) the AdPanel executes its js and renders the ad. Moving to the second tab (Panel2)

Re: wicket session statistics

2011-05-26 Thread KingFee Dong
Hello, Maybe I found it,LiveSessionsPage.java ,it can count peak session,but not what i want. I want to count the online users, for example there a three users here, if somtime a user had closed his(or her) web browser this session number is two now How can I do it ? Thanks! 2011/5/26

Original page cloned after popup dialog closes

2011-05-26 Thread Scott Reed
Out app has a WebPage that opens a ModalWindow dialog passing in the page. The dialog allows the user to modify the model of one of the page's components. When the dialog closes and the onClose() callback in the page is called, the object ID of the page has changed and the component model does

Re: tree do not stay open tree collapsed after setResponsePage

2011-05-26 Thread Bert
I have not worked with trees myself, but it sounds like you would like to update the contents of another div when a node in the tree is clicked? Use ajax to update the div, via an AjaxLink in the the node. Viel spass Bert Am 26.05.2011 10:53 schrieb hubert_hupe hubert_h...@gmx.de: i used the

Re: Execute Javascript after Ajax

2011-05-26 Thread Igor Vaynberg
target.appendJavascript(js) will execute it after components have been updated via ajax. -igor On Thu, May 26, 2011 at 6:12 PM, Phil Franken phil.fran...@gmail.com wrote: Here are my components; Wicket 1.4.17 Page AjaxTabbedPanel (with Panel1 and Panel2) AdPanel which has adsense js, no

Re: wicket session statistics

2011-05-26 Thread Tobias Gierke
Hi, Implement a http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html and put it in your web.xml. Regards, Tobias Hello, Maybe I found it,LiveSessionsPage.java ,it can count peak session,but not what i want. I want to count the online users, for example