Re: [REQUEST] Integrate Wicket and Nutch for Google Summer of Code 2014

2014-02-06 Thread Martin Grigorov
Hi Lewis, I'm glad you contacted us! I see the ticket has been opened for few years now. This is a shame! We should have coordinated this task much earlier! Nutch could be the next Apache project that uses Wicket for its web administration needs. There are few other projects already. I've added

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
I have created a new page with link and then execute: DummyBasePage page = new DummyBasePage(action); startPage(page); clickLink(page.getActionLink()); where action link is a link to another page. But it is still not working, only DummyBasePage is rendered. Then I look into

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
I have looked inside 1.4 and the code inside a clickLink() is very similar, so this is not a case to 6.x. But still it would be nice to have RequestCycle#setResponsePage() working ;). -- Daniel On Thu, Feb 6, 2014 at 10:00 AM, Daniel Stoch daniel.st...@gmail.comwrote: I have created a new

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Martin Grigorov
I am actually wondering how to hide this API from the developer in the tests. The idea of the tester is to simulate sending requests to the pages/resources. tester.getRequestCycle().setResponsePage() doesn't test anything in the application. tester.getRequestCycle().setResponsePage() is like to

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Martin Grigorov
If you see any regressions in WicketTester since 1.4.x/1.5.x please report ticket with a test case. I believe it is even much more powerful than in 1.4.x but since there was redesign of WicketTester in 1.5.0 there could be regressions. Martin Grigorov Wicket Training and Consulting On Thu, Feb

Re: Changed JSESSIONID Results in Wicket Exception

2014-02-06 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5500 Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 11:50 PM, Aaron J. Garcia agar...@rentec.com wrote: Martin Grigorov mgrigorov at apache.org writes: Hi, I will test this tomorrow. Martin Grigorov Wicket

[CVE-2013-2055] Apache Wicket information disclosure vulnerability

2014-02-06 Thread Martin Grigorov
Severity: Important Vendor: The Apache Software Foundation Affected versions: Apache Wicket 1.4.22, 1.5.10 and 6.7.0 Description CVE-2013-2055https://wicket.apache.org/2014/02/06/cve-2013-2055.html : It is possible to make Wicket deliver the HTML templates in their raw/non-processed form. An

Strange: Ajax-updates from a form inside a modal dialogue echoed in the page underneath

2014-02-06 Thread Martin Dietze
I've just spent several hours trying to figure out what's going wrong here without any success. I am investigating a very strange effect: In my application I have a search panel in which several dropdowns are used to select search settings. Some of these settings depend on each other, so that

Visual HTML diff in Wicket?

2014-02-06 Thread Martin Dietze
In my system there is an editorial submodule for creating HTML contents. As I am about to add a versioning history to it, I'd like to add some kind of visualisation of what changed from edit to edit. Does anyone here know of something like a library for this that can be used conveniently in a

Re: Strange: Ajax-updates from a form inside a modal dialogue echoed in the page underneath

2014-02-06 Thread Martin Grigorov
Hi, Check the Ajax response after selecting a component. It contains ajax-response with component id=... elements. The id attribute is used to find the old HTML element and to replace it with the new content. Since Wicket uses document.getElementByid() to find the old one I see no way how it will

Re: [REQUEST] Integrate Wicket and Nutch for Google Summer of Code 2014

2014-02-06 Thread Lewis John Mcgibbney
Hi Martin, On Thu, Feb 6, 2014 at 8:19 AM, Martin Grigorov mgrigo...@apache.orgwrote: I'm glad you contacted us! Thanks for your quick feedback. I see the ticket has been opened for few years now. Yes a bit of history on this one. For the last two years this ticket has been marked for

replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Vishal Popat
Hi, I have the following panel layout: SomeOtherPanel AjaxLazyLoadPanel Panel loading with AjaxLazyLoadPanel PanelToReplace I am trying to replace PanelToReplace using replaceWith within IndicatingAjaxFallbackLink onClick method but I get the message: Component

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Martin Grigorov
It seems you are adding the old/removed element to the ajax request target. You need to pass the new one instead. Martin Grigorov Wicket Training and Consulting On Thu, Feb 6, 2014 at 12:19 PM, Vishal Popat vishal.po...@cipriati.co.ukwrote: Hi, I have the following panel layout:

RE: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664234.html Sent

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread Sven Meier
See https://issues.apache.org/jira/browse/WICKET-4219 Sven On 02/06/2014 12:51 PM, dpmihai wrote: In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context:

Memory leaks best practices

2014-02-06 Thread Maxim Solodovnik
Hello All, Recently we have deployed our project to wicket project to production server. And start getting OutOfMemory PermGenSpace. I believe we have memory leak in our application maybe there is best practices how to deal with Models and JPA entities to resolve this? Thanks in advance --

Re: Strange: Ajax-updates from a form inside a modal dialogue echoed in the page underneath

2014-02-06 Thread Martin Dietze
Martin, thanks a lot for your advice! On Thu, February 06, 2014, Martin Grigorov wrote: Check the Ajax response after selecting a component. It contains ajax-response with component id=... elements. The id attribute is used to find the old HTML element and to replace it with the new

RE: Memory leaks best practices

2014-02-06 Thread Richter, Marvin
If you have Models or Components as fields in you classes you should override the classes method onDetach. Example: Public class MyPanel extends Panel { private final IModelObject objectModel; public MyPanel(String id, IModelObject objectModel) {

Re: Memory leaks best practices

2014-02-06 Thread Sven Meier
Probably a class-loading issue: http://stackoverflow.com/questions/88235/dealing-with-java-lang-outofmemoryerror-permgen-space-error Sven On 02/06/2014 01:07 PM, Maxim Solodovnik wrote: Hello All, Recently we have deployed our project to wicket project to production server. And start getting

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
Thanks. I did the following: @Override public Component getHeader(final String id, final Component parent, final IWizard wizard) { Component c = super.getHeader(id, parent, wizard); c.get(summary).setEscapeModelStrings(false); return c; } -- View

Re: Memory leaks best practices

2014-02-06 Thread Martin Grigorov
Hi, OOM in PermGen is not what you ask for. If you leak normal memory than the error would be with heap space. PermGen memory is used to keep the Class instances and interned Strings. If you deploy your app for first time then most probably you just need to set the proper initial and max value :

Next Apache Wicket Release

2014-02-06 Thread Marco Di Sabatino Di Diodoro
Hi all, You know approximately when Apache Wicket 6.14 will be released? Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PMC Member

Re: Choice Renderers Display Issue After Submit

2014-02-06 Thread MissOvenMitts
I answered my own question! I'm a dork. But, for others that might have this same problem: Because the object in the SearchCriteria bean that you are selecting (selectedPeriod) is now a different type of Object than a String, if you recreate your list of objects to feed to the DropDownChoice (as

Re: Memory leaks best practices

2014-02-06 Thread Maxim Solodovnik
Thanks a lot for quick answers have already added -Xms512M -Xmx2G -Xss1M -XX:PermSize=192m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled Now will add *Model.detach(); to the code and will check the stability (currently application works ~2days before PermGen) Redeployment is performed using

Re: tinymce textarea in a modal window not letting to type

2014-02-06 Thread Andrea Del Bene
Hi, as the original issue is pretty old, I think nothing has done about it lately. I will open an issue with the quickstart project and try to solve it when I will have some time. I am having this same issue in wicket 6.13.0. Any fixes as of yet? -- View this message in context:

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread vp143
This is what I am doing: final Panel emptyPanel = new EmptyPanel(additionalInfo); emptyPanel.setOutputMarkupId(true); item.add(emptyPanel); IndicatingAjaxFallbackLink additionalInfoLink = new IndicatingAjaxFallbackLink(additionalInfoLink) { @Override

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Martin Grigorov
On Thu, Feb 6, 2014 at 2:17 PM, vp143 vishal.po...@cipriati.co.uk wrote: This is what I am doing: final Panel emptyPanel = new EmptyPanel(additionalInfo); emptyPanel.setOutputMarkupId(true); item.add(emptyPanel); IndicatingAjaxFallbackLink additionalInfoLink = new

Re: Next Apache Wicket Release

2014-02-06 Thread Andrea Del Bene
Hi Marco! In a week or two, according to what Martin said. Hi all, You know approximately when Apache Wicket 6.14 will be released? Thanks M - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Next Apache Wicket Release

2014-02-06 Thread Martin Grigorov
6.13.0 has been released at Jan 05 ( http://wicket.apache.org/2014/01/05/wicket-6.13.0-released.html) so it is about time for 6.14.0. It depends whether our release manager (Martijn Dashorst) will have time to do this week. As far as I remember Apache Syncope uses 6.14.0-SNAPSHOT at the moment,

Precondition Check

2014-02-06 Thread Richter, Marvin
Args ... I already had this problem some time ago but I can't remember what it was exactly. Wicket Ajax Debug: INFO: Ajax request stopped because of precondition check, url: ./admin?1-5.IBehaviorListener.1-configTypes-panel-dialog-footer-buttons-0-button I have two different Panels with almost

Re: Next Apache Wicket Release

2014-02-06 Thread Martijn Dashorst
I was hoping to do something tomorrow afternoon... Unfortunately I wished I was able to complete the migration from our app to 7-snapshot, so I can fix any issues we find prior to a 7-m1... Just have to find the time to perform those actions (I just upgraded myself from full time software engineer

Re: Precondition Check

2014-02-06 Thread Martin Grigorov
Hi, I see you don't have custom AjaxRequestAttributes, so no custom preconditions. Wicket has just one default precondition - it will execute the Ajax call only if the related HTML element (the link) is in the current document.

Re: Memory leaks best practices

2014-02-06 Thread Shengche Hsiao
I had the same issue, my problem was doesn't close the database connection! On Thu, Feb 6, 2014 at 8:54 PM, Maxim Solodovnik solomax...@gmail.comwrote: Thanks a lot for quick answers have already added -Xms512M -Xmx2G -Xss1M -XX:PermSize=192m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled

RE: Precondition Check

2014-02-06 Thread Richter, Marvin
That is the point I don't get ... how can an element doesn't exist in DOM but I can click on it? Marvin Richter -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, February 06, 2014 3:05 PM To: users@wicket.apache.org Subject: Re: Precondition Check

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread vp143
That was it! Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664257.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Web Sockets proxying

2014-02-06 Thread Maxim Solodovnik
Hello Martin, I have asked HTTPD mailing thread: http://httpd.markmail.org/thread/zohvqeokryvigpjn It seems to be impossible to set proxy on protocol basis. Maybe it would be possible to do the following: create mapping /ws inside the application make websocket URL to be ws://host:port/app/ws on

Re: Memory leaks best practices

2014-02-06 Thread Maxim Solodovnik
In my case OpenJPA handle DB connection open/close/pooling, so I hope this is not the case. Maybe you can suggest server side memory profiler for Ubuntu server? On Thu, Feb 6, 2014 at 9:12 PM, Shengche Hsiao shengchehs...@gmail.comwrote: I had the same issue, my problem was doesn't close the

Re: Precondition Check

2014-02-06 Thread Martin Grigorov
you can click on it and the event listener can delay the actual Ajax call as much as it wants (Wicket's AjaxChannel.QUEUE does exactly this). E.g. click two times on the link, the first click fires Ajax call (the second click waits), its response removes the link from the DOM (or replaces it),

Re: Memory leaks best practices

2014-02-06 Thread Martin Grigorov
The best memory profiler is Eclipse MAT - https://www.eclipse.org/mat/ But again it helps only with debugging problems in the heap, not in the perm gen Martin Grigorov Wicket Training and Consulting On Thu, Feb 6, 2014 at 3:18 PM, Maxim Solodovnik solomax...@gmail.comwrote: In my case OpenJPA

Re: Memory leaks best practices

2014-02-06 Thread francois meillet
http://www.yourkit.com/docs/kb/class_loaders.jsp François On Thu, Feb 6, 2014 at 3:22 PM, Martin Grigorov mgrigo...@apache.orgwrote: The best memory profiler is Eclipse MAT - https://www.eclipse.org/mat/ But again it helps only with debugging problems in the heap, not in the perm gen

Wicket 6 datatable pagination

2014-02-06 Thread djapal
Hello all. I'm facing a strange problem. If i use 1.5.11 version of wicket, pagination works as designed. I can traverse through all pages of the table and sorting works too. If i switch to 6.13.0 method public IteratorContact iterator(long first, long count) of my SortingDataProvider class always

Re: Web Sockets proxying

2014-02-06 Thread Martin Grigorov
Hi Maxim, It is shame that none of the HTTPD developers responded. It looks Eric Covener knows as much as I do about mod_proxy_wstunnel ... If it wasn't possible to make the difference between the protocols then the web server won't be able to decide whether to use WebSocket endpoint or http

RE: Precondition Check

2014-02-06 Thread Richter, Marvin
Ok, that would be a valid scenario where that makes sense but that's not the case. But I found the problem: Because of the the childing of my panels the one that was not working was inside a form tag but this panel also contains a form. As of the HTML specification it is not allowed to nest

Re: Precondition Check

2014-02-06 Thread Martin Grigorov
So the check fails here https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js?source=c#L511 the form is not there ... Thanks for sharing! Martin Grigorov Wicket Training and Consulting On Thu, Feb 6, 2014 at 3:35 PM, Richter,

RE: Precondition Check

2014-02-06 Thread Richter, Marvin
No problem ... I have to thank you, you pointed me in the right direction. Finding such DOM problems while the Browser renders them just fine and even calling JQuery selector on console returns the element can be pain in the ass ... Marvin Richter -Original Message- From: Martin

Datepicker to pick just the month

2014-02-06 Thread María del Busto Griñón
Hi, I am developing a webapp where at some certain point we need to pick just the month of a date. I have tried to create a DatePicker with date format = , and it works ok when it loads the date from the Database, if the month of the date stored is february, for example, it renders February

Re: Wicket 6 datatable pagination

2014-02-06 Thread djapal
OK found it. after trying with many versions it seems that it is a 6.13.0 bug, because in 6.12.0 pagination works w/o probs -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-datatable-pagination-tp4664262p4664263.html Sent from the Users forum mailing list

Re: Next Apache Wicket Release

2014-02-06 Thread Marco Di Sabatino Di Diodoro
Hi, Il giorno 06/feb/2014, alle ore 14:38, Martin Grigorov mgrigo...@apache.org ha scritto: 6.13.0 has been released at Jan 05 ( http://wicket.apache.org/2014/01/05/wicket-6.13.0-released.html) so it is about time for 6.14.0. It depends whether our release manager (Martijn Dashorst) will

Re: Datepicker to pick just the month

2014-02-06 Thread Martin Grigorov
Hi, I assume you use wicket-datetime module. You will have to consult with YUI 2.x docs to see what is supported - http://yui.github.io/yui2/ https://github.com/l0rdn1kk0n/wicket-bootstrap uses this datepicker - http://bootstrap-datepicker.readthedocs.org/en/latest/options.html#format Wicket

Re: Wicket 6 datatable pagination

2014-02-06 Thread Martin Grigorov
We are not aware of such issue. Please create a quickstart and attach it to ticket in JIRA. Thanks! Martin Grigorov Wicket Training and Consulting On Thu, Feb 6, 2014 at 3:51 PM, djapal dja...@gmail.com wrote: OK found it. after trying with many versions it seems that it is a 6.13.0 bug,

I need a library for drawing graph

2014-02-06 Thread Farrukh SATTOROV
Hi everyone!, I need js or embedded js to wicket library for drawing graph (math) network.

Re: I need a library for drawing graph

2014-02-06 Thread Duane Searsmith
I'm using jsplumb with wicket. There is not a lot of interaction between the two but the clean separation of concerns afforded by wicket's design makes using JS libraries like this very easy. On Thu, Feb 6, 2014 at 10:24 AM, Farrukh SATTOROV fireda...@gmail.comwrote: Hi everyone!, I need js

Re: I need a library for drawing graph

2014-02-06 Thread Farrukh SATTOROV
Thank you On Thu, Feb 6, 2014 at 8:40 PM, Duane Searsmith dsearsm...@gmail.comwrote: I'm using jsplumb with wicket. There is not a lot of interaction between the two but the clean separation of concerns afforded by wicket's design makes using JS libraries like this very easy. On Thu, Feb

Re: I need a library for drawing graph

2014-02-06 Thread Sebastien
Hi, arbor.js is a really nice library based on jQuery. I don't know if it can suit your need. http://arborjs.org/ I am not aware of an existing wicket integration but it should be feasible... There is several jQuery / Wicket integrations (boostrap, jquery-ui, etc) you can look at for

Re: I need a library for drawing graph

2014-02-06 Thread Martin Grigorov
Here is another JavaScript solution - http://sigmajs.org/ Martin Grigorov Wicket Training and Consulting On Thu, Feb 6, 2014 at 5:44 PM, Farrukh SATTOROV fireda...@gmail.comwrote: Thank you On Thu, Feb 6, 2014 at 8:40 PM, Duane Searsmith dsearsm...@gmail.com wrote: I'm using jsplumb

Re: Visual HTML diff in Wicket?

2014-02-06 Thread Joachim Schrod
On 02/06/14 10:53, Martin Dietze wrote: In my system there is an editorial submodule for creating HTML contents. As I am about to add a versioning history to it, I'd like to add some kind of visualisation of what changed from edit to edit. Does anyone here know of something like a library

Re: [REQUEST] Integrate Wicket and Nutch for Google Summer of Code 2014

2014-02-06 Thread Mattmann, Chris A (3980)
Thanks Guys. I created the original ticket and am a huge Wicket fanboy :) We used it all over OODT and rewrote a bunch of our web apps in it. I'm happy to help here too. Cheers, Chris -Original Message- From: Martin Grigorov mgrigo...@apache.org Reply-To: d...@nutch.apache.org

replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Vishal Popat
Hi, I have the following panel layout: SomeOtherPanel AjaxLazyLoadPanel Panel loading with AjaxLazyLoadPanel PanelToReplace I am trying to replace PanelToReplace using replaceWith within IndicatingAjaxFallbackLink onClick method but I get the message: Component

Choice Renderers Display Issue After Submit

2014-02-06 Thread MissOvenMitts
Hi guys! I'm using a ChoiceRenderer for the first time, and am having a slight problem with it. Any help would be *greatly* appreciated! I have a DropDownChoice used to select a particular PeriodBean object which uses a ChoiceRenderer to properly display only the Description string of the

Re: Visual HTML diff in Wicket?

2014-02-06 Thread Stephan Schrader
You could try https://github.com/alkacon/alkacon-diff Stephan Am 06.02.2014 um 10:53 schrieb Martin Dietze d...@fh-wedel.de: In my system there is an editorial submodule for creating HTML contents. As I am about to add a versioning history to it, I'd like to add some kind of visualisation