Re: Issues with refreshing panel with form

2020-08-04 Thread Martin Grigorov
ubmitOnNestedFormSubmit() returns false. > Therefore I conclude, that after POST request, other references among > components are broken. > What do you mean with this ? > > The question might be: How to "refresh" or keep these references after > nested form is submitted? > &

Re: Issues with refreshing panel with form

2020-08-04 Thread Martin Grigorov
Hi, On Mon, Aug 3, 2020 at 2:53 PM Zimen, Michal wrote: > Hi Wicket Users, > > >I've just started to learn the Wicket by fixing some issues in our > legacy backlog repository. > > Therefore, I need some clarification to manage my blockpoints. Having > spent enough time to fix it by myself,

Re: Page with AjaxSelfUpdatingTimerBehavior in multiple browser tabs

2020-07-28 Thread Martin Grigorov
Hi, On Tue, Jul 28, 2020 at 11:09 AM Zbynek Vavros wrote: > Hi, > > We have a page with AjaxSelfUpdatingTimerBehavior and now one of our > customers is complaining about "weird" behavior when this page is opened in > multiple browser tabs (yeah yeah we told him not to do it...). > > What

Re: Lambda expressions on StringResourceModel does not work

2020-07-14 Thread Martin Grigorov
Hi again, On Tue, Jul 14, 2020 at 10:46 AM Martin Grigorov wrote: > Hi, > > On Tue, Jul 14, 2020 at 10:10 AM Alberto wrote: > >> >> Hello, >> >> I have a StringResourceModel in a parent abstract class of all pages. >> >> IModel titleModel = new

Re: Change pageId Parameter structure

2020-07-14 Thread Martin Grigorov
On Tue, Jul 14, 2020 at 3:54 PM Ravi Knox wrote: > Hi Martin, > > > > that was a good starting point, thank you. > > I had to overwrite basically all Mappers within the SystemMapper and mounts > (since they create mappers themselves). > > > > The following Methods I had to overwrite: > > -

Re: Lambda expressions on StringResourceModel does not work

2020-07-14 Thread Martin Grigorov
Hi, On Tue, Jul 14, 2020 at 10:10 AM Alberto wrote: > > Hello, > > I have a StringResourceModel in a parent abstract class of all pages. > > IModel titleModel = new StringResourceModel("contentTitle", > getModel()); > > where "contentTitle" is a property specified for every child page in >

Re: Change pageId Parameter structure

2020-07-13 Thread Martin Grigorov
Hi Ravi, The logic you look for is at https://github.com/apache/wicket/blob/267fb06eec31e8e530fb5f0a4f691a0782e3d5b8/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/AbstractComponentMapper.java#L79 It is called by:

Re: Preventing the ModalWindow from being rendered as iframe

2020-07-07 Thread Martin Grigorov
Hi, On Tue, Jul 7, 2020 at 1:26 PM Lukas Fülling wrote: > Hi, > > I'm currently trying to get Javascript callbacks from/to a Wicket > ModalWindow to work. > Currently, the WebPage the ModalWindow consis of is being redered as an > iframe. > > The Wicket documentation states the following: > > >

Re: Page locked for a long time

2020-07-06 Thread Martin Grigorov
On Sun, Jul 5, 2020 at 9:16 PM Sven Meier wrote: > Hi Maxim, > > you'll have to upload these files to a resource separately. > > I'm not aware of a reusable solution for that. > Here is a blog article on this topic: http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/ and its

Re: Focusout event fires twice

2020-06-13 Thread Martin Grigorov
Hi Claudia, I'd suggest you to use your browser's Dev Tools and put a breakpoint on 'focusout' event and see how many times it fires and what is the reason/initiator. On Fri, Jun 12, 2020 at 11:56 AM Claudia Beck wrote: > Hi all, > > i came across the issue when binding a focusout event to a

Re: Locatable UnsupportedOperationException

2020-06-01 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-6796 On Mon, Jun 1, 2020 at 4:08 PM Sven Meier wrote: > +1 that should have no negative impact > > Sven > > On 01.06.20 11:22, Martin Grigorov wrote: > > Hi, > > > > I like the idea to ca

Re: Locatable UnsupportedOperationException

2020-06-01 Thread Martin Grigorov
Hi, I like the idea to catch UnsupportedOperationException at org.apache.wicket.IGenericComponent#setModelObject(T) and re-throw it as: throw new WicketRuntimeException("You need to use read/write Model for component '{}", this.getPageRelativePath(), uox) Does anyone see a drawback ? Martin On

Re: WebSocket concurrent modification

2020-05-28 Thread Martin Grigorov
On Thu, May 28, 2020 at 9:43 AM fanfy wrote: > Hello,I finally found the problem ... It seems that I didn't understood > very > well how to use WebSocketMessageBroadcaster from wicket-spring-boot. The > proper way to broadcast websocket messages from an ajax call is to use >

Re: FilenameWithVersionResourceCachingStrategy accepts (almost) any string as a version

2020-05-26 Thread Martin Grigorov
On Tue, May 26, 2020 at 11:59 AM Daniel Stoch wrote: > I know that and for me this is not an issue either ;). > But this "issue" is reported by some security scanners which checks > for obsolete and backup files by adding "_old", "_bak", "_backup" > suffix to filename of selected resource (css,

Re: Wicket and Vue.js synergy

2020-05-08 Thread Martin Grigorov
Hi Илья, 7 years ago I've made a (small) integration with Ractive.js: https://github.com/martin-g/wicket-ractive and blogged about it https://wicketinaction.com/2013/08/surgical-ajax-updates-with-ractive-js/ IMO Vue.js has started as a fork from Ractive.js but Rich Harris says it just influenced

Re: WebSocket onClose/onError/onAbort is not being called

2020-05-05 Thread Martin Grigorov
Hi Maxim, On Fri, May 1, 2020 at 2:22 PM Maxim Solodovnik wrote: > On Fri, 1 May 2020 at 18:15, Martin Grigorov wrote: > > > Hi Maxim, > > > > On Fri, May 1, 2020 at 1:31 PM Maxim Solodovnik > > wrote: > > > > > Hello Martin, > > > >

Re: WebSocket onClose/onError/onAbort is not being called

2020-05-01 Thread Martin Grigorov
ava#L86 > :( > > On Fri, 1 May 2020 at 17:12, Martin Grigorov wrote: > > > Hi Maxim, > > > > If WicketEndpoint#onError() [1] is not called then probably there is a > bug > > in Tomcat. > > I suggest you to post this question at Tomcat's users@. >

Re: WebSocket onClose/onError/onAbort is not being called

2020-05-01 Thread Martin Grigorov
Hi Maxim, If WicketEndpoint#onError() [1] is not called then probably there is a bug in Tomcat. I suggest you to post this question at Tomcat's users@. 1.

Re: SessionStore on database

2020-04-29 Thread Martin Grigorov
Hi On Wed, Apr 29, 2020, 19:55 Andrea Del Bene wrote: > Hi, > > if you haven't done it yet you should have a look at WicketStuff data > store projects: > > https://github.com/wicketstuff/core/tree/master/datastores-parent > > > this should give you some good ideas. > The data stores distribute

Re: The AutoCompleteTextField model callback setObject() not working

2020-04-28 Thread Martin Grigorov
Hi, On Tue, Apr 28, 2020 at 9:54 AM kyc wrote: > I am using wicket 7.14 > Try to upgrade to 7.16. > > The following setObject is not called if I select the item from the list > showing from AutoCompleteTextField. > However, it will be called if I type something on the textfield. I tried >

Re: Form submit sends GET request, if Wicket-generated URL contains jsessionId

2020-04-24 Thread Martin Grigorov
ys GET. And their parameters are in the query string. What does your proxy do with multipart POSTs? What does it do with single part body that is too long to be in the query string? Does it truncate it? > -Igor. > > On 24. Apr 2020, at 20:57, Martin Grigorov mgrigo...@apache.org>> wrote: >

Re: Form submit sends GET request, if Wicket-generated URL contains jsessionId

2020-04-24 Thread Martin Grigorov
TsJaOkrQX-Ez-mAG5UgADs3kdXgJpJlXbS8vhw > * > Request Method: > GET > * > Status Code: > 302 > * > Remote Address: > 10.1.37.99:443 > * > Referrer Policy: > no-referrer-when-downgrade > 1. Response Headers > * > cache-con

Re: Form submit sends GET request, if Wicket-generated URL contains jsessionId

2020-04-24 Thread Martin Grigorov
* > server: > nginx > * > status: > 302 > > Am I missing something? > I don't know. You tell us :-) Is there a problem with the functionality ? As far as I understood until now the problem was that there is no POST submit. Now you see that ther

Re: Form submit sends GET request, if Wicket-generated URL contains jsessionId

2020-04-24 Thread Martin Grigorov
es) > > -Igor. > > On 24. Apr 2020, at 06:02, Martin Grigorov mgrigo...@apache.org>> wrote: > > Hi Igor, > > > > On Fri, Apr 24, 2020 at 12:55 AM Igor Khvostenkov > igor.khvosten...@lindenbaum.eu.invalid>> wrote: > > Hi Sven, > > POST is

Re: Form submit sends GET request, if Wicket-generated URL contains jsessionId

2020-04-23 Thread Martin Grigorov
Hi Igor, On Fri, Apr 24, 2020 at 12:55 AM Igor Khvostenkov wrote: > Hi Sven, > > POST is substituted with GET by the HTTP client (Browser). > > A web-server, any web-server, returns a 301 or 302 redirect then Browser, > on client side, will replace any type of request to GET. No server-side >

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-16 Thread Martin Grigorov
>>>> The problem is this: The heap was full of objects referencing > > >>>>> InMemoryPageStore, i.e. the in-memory 2nd-level cache for pages. My > > >> first > > >>>>> thought was that there is something wrong with the implementation

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-10 Thread Martin Grigorov
On Fri, Apr 10, 2020 at 4:01 PM Thomas Heigl wrote: > FYI: I deployed Wicket 9.0.0-M5 to production an hour ago. 100k requests > served and no issues so far. > Awesome! Thank you for testing it! > > Great work! > > Thomas > > On Wed, Apr 8, 2020 at 3:13 PM Sven Meier wrote: > > > Many thanks

Re: Quick Start Error with 8.7.0 - The desired archetype does not exist

2020-04-10 Thread Martin Grigorov
Hi, It works fine for me: mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=8.7.0 -DgroupId=4MyTestCompany -DartifactId=testWicket8 -DarchetypeRepository= https://repository.apache.org/ -DinteractiveMode=false [INFO]

Re: About XML Injection

2020-04-09 Thread Martin Grigorov
gt; > > > > > > > image.png > > > < > > > > > > https://drive.google.com/file/d/1RcAegoREfmkdPNm1DCw9ouUyfI20lh7K/view?usp=drive_web > > > > > > > > > > > > > As a result, I have to prevent the xml inject

Re: Upgrade to Wicket 9: troubles with WicketTester and MockPageStore

2020-04-09 Thread Martin Grigorov
It is not my day today! :-) This is the second description of an issue here in users@ which I don't understand. I'll let someone else try to help you. On Thu, Apr 9, 2020 at 2:32 PM Francesco Chicchiriccò wrote: > On 2020/04/09 10:58:13, Martin Grigorov wrote: > > Hi, > > >

Re: Upgrade to Wicket 9: troubles with WicketTester and MockPageStore

2020-04-09 Thread Martin Grigorov
Hi, Why do you need to use PageManager ? By default WicketTester uses MockPageManager without a backing PageStore. On Thu, Apr 9, 2020 at 1:20 PM Francesco Chicchiriccò wrote: > Hi all, > at Syncope we have been upgrading our Console and Enduser web applications > from Wicket 8 to 9.0.0-M5, in

Re: About XML Injection

2020-04-09 Thread Martin Grigorov
ion, do I check the entire > payload or only check there value we need ? > > On Thu, Apr 9, 2020 at 4:11 PM Martin Grigorov > wrote: > >> On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao >> wrote: >> >> > Yes, I need to know overriding which methods >&

Re: About XML Injection

2020-04-09 Thread Martin Grigorov
On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao wrote: > Yes, I need to know overriding which methods > I still do not understand what exactly you need to accomplish. Please be more specific! > > On Thu, Apr 9, 2020 at 16:03 Martin Grigorov wrote: > > > Hi, > > &g

Re: About XML Injection

2020-04-09 Thread Martin Grigorov
Hi, On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao wrote: > Dear all > > I use built-in ajax dropdownchoice component, it's default payload is xml > entity, but if I need to prevent xml injection ,how can i do? > Could you please give some more information what exactly you need? > > >

Re: Kendo Material update from 8.3.0 to 8.6.0 adds 'user-select:none'

2020-04-03 Thread Martin Grigorov
Hi Manfred, On Thu, Apr 2, 2020 at 6:23 PM Bergmann Manfred wrote: > Hi. > > We’ve just realized that none of the texts when changing this library > version are selectable/copyable. > Is this intentional? > It sounds like the change is in Kendo Material sources, not in Wicket JQuery UI, so the

Re: MetaData for websocket connections

2020-03-26 Thread Martin Grigorov
plus the required glue code for keeping the > registry up to date. > > But if you prefer not to add functionality I can go ahead and implement an > external solution and see how it goes. > Anyone else having an opinion on this? > > Best regards, > > Thomas > >

Re: MetaData for websocket connections

2020-03-25 Thread Martin Grigorov
Hi Thomas, Is this really necessary? You can achieve the same today by using an external registry. E.g. List channels = channelRegistry.get(webSocketConnection); internally the registry can use WebSocketConnection's getApplication().getName(), getSessionId() and getKey() to construct the key.

Re: jquery-weekdays

2020-03-19 Thread Martin Grigorov
Hi, I am not aware of an integration of Wicket with https://github.com/nikolasmagno/jquery-weekdays. You can use Wicket Bootstrap code for inspiration how to integrate it. For example

Re: PerSessionPageStore thread-safety

2020-02-28 Thread Martin Grigorov
al lock map is not shared > between requests. Moving the lock map into global or application scope > solves the issue with the downside of > increased concurrency to the, now shared, map but should not require any > additional locking or synchronization. > It is quite trivial to write such a glob

Re: PerSessionPageStore thread-safety

2020-02-27 Thread Martin Grigorov
Hi Thomas, Could you please explain how exactly Spring Session works ? This will help us both understand where the problem comes from. Also how exactly do you integrate it with Wicket ? Which extension points do you use ? Since it is backed by Redis it means that it is distributed. But at the

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-22 Thread Martin Grigorov
On Wed, Jan 22, 2020 at 8:55 AM Sven Meier wrote: > Ah, our old friends 'enclosures'! > > Problem is that a component inside an enclosure is really inside it only > during rendering of its markup. > But the strategy walking through the component hierarchy to render all > headers doesn't know

Re: Need an event later than 'done'

2020-01-22 Thread Martin Grigorov
On Tue, Jan 21, 2020 at 11:59 PM Entropy wrote: > That seems promising. If you could look how you did it in your other > project > that would be great. I suppose if I could get access to the response XML I > could look for the redirect in that. I'm not sure where it is though or > even if

Re: An open source devops platform completely created with Wicket

2020-01-17 Thread Martin Grigorov
Thank you for sharing it with us, Robin! It looks awesome! On Fri, Jan 17, 2020 at 2:26 AM Robin Shen wrote: > Dear wicket users, > > I'd like to introduce OneDev, an open source all-in-one devops platform: > https://github.com/theonedev/onedev > > It is created completely with Wicket with

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Martin Grigorov
On Fri, Jan 10, 2020 at 2:55 PM Francesco Chicchiriccò wrote: > On 2020/01/10 12:24:49, Martin Grigorov wrote: > > Hi Francesco, > > > > This was a bug in Wicket, a security related one. > > You will need to fix your code. > > > >

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Martin Grigorov
Hi Francesco, This was a bug in Wicket, a security related one. You will need to fix your code. The change should look something like this: - tester.getRequest().setParameter("select", page.option1.getValue()); - tester.getRequest().setParameter("text", "text is

Re: Best way to refresh entire NestedTree

2019-12-29 Thread Martin Grigorov
Hi Chris, On Sun, Dec 29, 2019 at 11:22 AM Chris Colman wrote: > Sorry for the duplication. These messages did not appear in the mail > group until about 8 hours after they were posted. I thought I must have > This is because you are not subscribed to the mailing list and your messages are

Re: Is there an example project for wicket-spring-boot with gradle and webpack?

2019-12-08 Thread Martin Grigorov
Hi, I would suggest you to generate your application with JHipster and then remove the front-end (Angular/React) and add Wicket instead. On Sun, Dec 8, 2019, 10:02 Per Newgro wrote: > Hello *, > > i try to setup a spring boot project based on wicket-spring-boot-parent. > To built my frontend

Re: Partial update of DataGridView when adding new items

2019-12-04 Thread Martin Grigorov
Hi Chris, Please read https://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ The article explains how to do this with ListView but the idea is the same for all other repeaters. On Wed, Dec 4, 2019 at 6:53 AM Chris Colman wrote: > We're using a DataGridView

Re: FileUpload class still implements IClusterable

2019-12-03 Thread Martin Grigorov
On Tue, Dec 3, 2019 at 3:42 PM Ernesto Reinaldo Barreiro wrote: > Hi Martin, > > > On Tue, Dec 3, 2019 at 3:09 PM Martin Grigorov > wrote: > > > Hi Ernesto, > > > > Yes, I think FileUpload should not be Serializable. > > FileUploadField uses trans

Re: FileUpload class still implements IClusterable

2019-12-03 Thread Martin Grigorov
Hi Ernesto, Yes, I think FileUpload should not be Serializable. FileUploadField uses transient reference to the list of file uploads for this reason:

Re: Application # newSession # sessionUnbound - RuntimeException

2019-11-21 Thread Martin Grigorov
esn't > make sense for an exception happening on a worker thread. > you meant on *non*-worker thread ? Francois, please give us the stack trace. > Hope this helps > Sven > > > On 21.11.19 16:37, Martin Grigorov wrote: > > Hi Francois, > > > > #sessionUnbound() is called i

Re: Application # newSession # sessionUnbound - RuntimeException

2019-11-21 Thread Martin Grigorov
Hi Francois, #sessionUnbound() is called in two contexts: 1) the user clicked the Logout button - in this case the call is executed in http worker thread where there is a ThreadContext, i.e. Application.get(), Session.get() and RequestCycle.get() would work here, I think, Wicket should use the

Re: Wicket blog

2019-11-10 Thread Martin Grigorov
Done! https://wicket.apache.org/learn/blogs.html#get-your-blog-listed https://github.com/apache/wicket-site/commit/6a07ad54303361f583f8182e2516b96bc07f627c Thank you, Roman! On Sat, Nov 9, 2019 at 7:03 PM Roman Sery wrote: > Hello, > I have been working with Wicket for many years now and

Re: Log feedback messages

2019-10-29 Thread Martin Grigorov
Hi, On Mon, Oct 28, 2019 at 7:33 PM Entropy wrote: > As part of a larger effort to improve our audit logs, I have been requested > to add the feedback messages that appear as part of validation to those > audits. So in the onError() of a button or form, where the validation has > failed, I

Re: Client browser timezone offset

2019-10-28 Thread Martin Grigorov
Hi, I didn't get what is the problem with the current code. For me http://examples8x.wicket.apache.org/ajaxhellobrowser/ shows utcDSTOffset=3 utcOffset=2 which seems to be correct. On Mon, Oct 28, 2019 at 5:56 PM Maxim Solodovnik wrote: > On the other hand: the old code can be used if TZ is

Re: Is there a way to control Wicket's id generation?

2019-10-27 Thread Martin Grigorov
On Fri, Oct 25, 2019 at 6:06 PM Entropy wrote: > I work on a government project and one of our rules is that all of our apps > scrape the request object and log it so that everything that happens can be > reviewed. Partly this is for audit reasons, sometimes it comes in handy > for > lawsuits,

Re: 404 : https://wicket.apache.org/learn/#javadoc JavaDoc 9.x

2019-10-07 Thread Martin Grigorov
Fixed! On Mon, Oct 7, 2019, 12:11 Martin Grigorov wrote: > Hi Francois, > > This is a known issue. > > https://markmail.org/message/6owzkxowbsf33jcy > https://markmail.org/message/ac65iqbmwjdlugz3 > > I will try to find a working solution for it this week. > > Ma

Re: Wicket Cookie Deletion

2019-10-07 Thread Martin Grigorov
header then most probably the Wicket WebResponse you have used when calling #clearCookie() is not the one that has been used to deliver the HTML response. Most probably your application has replaced the response object with another one without preserving the already set headers. > >

Re: Is there a SOAP resource?

2019-10-07 Thread Martin Grigorov
Hi, I am not aware of such resource. That does not mean that there is no such out there though! But SOAP is just XML, i.e. text, so you can read and parse it and do whatever is needed. Martin On Mon, Oct 7, 2019 at 1:22 PM Per Newgro wrote: > Hello every1, > > i would like to migrate some

Re: 404 : https://wicket.apache.org/learn/#javadoc JavaDoc 9.x

2019-10-07 Thread Martin Grigorov
Hi Francois, This is a known issue. https://markmail.org/message/6owzkxowbsf33jcy https://markmail.org/message/ac65iqbmwjdlugz3 I will try to find a working solution for it this week. Martin On Mon, Oct 7, 2019 at 11:17 AM Francois Meillet wrote: > Hi, > > There is a 404 for >

Re: Wicket Cookie Deletion

2019-10-07 Thread Martin Grigorov
Hi, On Mon, Oct 7, 2019 at 3:14 AM Sibgha Nazir wrote: > Hi, > > I set a cookie from JavaScript in the chrome browser like > > > var d = new Date(); > > d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); > > var expires = "expires=" + d.toUTCString(); > > document.cookie =

Re: Wicket 9.x and wicket-bootstrap status

2019-09-24 Thread Martin Grigorov
2.0.11 (Wicket 8.6.1 + Bootstrap 3.x) and 3.0.0-M12 (Wicket 8.6.1 + Bootstrap 4.x) are also released! On Tue, Sep 24, 2019 at 9:18 AM Michał Szwaczko wrote: > Thanks Martin :) > > > Dnia 23 września 2019 o 15:54 Martin Grigorov < mgrigo...@apache.org > mailto:mgrigo...@ap

Re: Wicket 9.x and wicket-bootstrap status

2019-09-23 Thread Martin Grigorov
Wicket Bootstrap 4.0.0-M3 (Wicket 9.0.0-M3 and Bootstrap 3.x) has been released! The other versions will be released on the coming days because upload to Sonatype is very slow today. On Thu, Sep 19, 2019 at 3:57 PM Martin Grigorov wrote: > Hi, > > The branch is there since a long time

Re: Wicket first time visit check

2019-09-23 Thread Martin Grigorov
d how? > > Best Regards, > Sibgha > > On Sat, Sep 21, 2019 at 7:08 AM Martin Grigorov > wrote: > > > Hi, > > > > You can execute your logic in the page's constructor or onInitialize() > > method. > > > > On Fri, Sep 20, 2019, 21:25 Sibgha Nazi

Re: Wicket first time visit check

2019-09-20 Thread Martin Grigorov
Hi, You can execute your logic in the page's constructor or onInitialize() method. On Fri, Sep 20, 2019, 21:25 Sibgha Nazir wrote: > Hi, > > I have a wicket application and I want to do something when the user opens > the webpage for the first time. > > Could anyone give me a clue on how to

Re: Wicket 9.x and wicket-bootstrap status

2019-09-19 Thread Martin Grigorov
Hi, The branch is there since a long time: https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/wicket-9.x. -SNAPSHOT builds are deployed at Sonatype OSS repos when TravisCI is happy to work. I am using a -SNAPSHOT build of it for my training application. Lately I release versions of

Re: Google and DevUtils Inspector Page can kill your WebApp

2019-09-12 Thread Martin Grigorov
Hi Илья, On Thu, Sep 12, 2019 at 12:04 AM Илья Нарыжный wrote: > Hello, > > This is real-life story. It started a relatively long time ago: our > demo server from time to time had OurOfMemory condition. It was > strange because the solution itself is very well "stress volume > tested". So we

Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up

2019-09-11 Thread Martin Grigorov
at looks like a doable solution. > > I'd go for the Listener but I'll probably have to ask some more when I'm > > going to implement it. > > > > > > Manfred > > > > > > > > Martin Grigorov-4 wrote > >> Hi Manfred, > >> > >> T

Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up

2019-09-10 Thread Martin Grigorov
Hi Manfred, The #refresh(PartialPageUpdateHandler) methods are useful if you update the specific component. They do not help if you repaint a parent of such a component. In your case you will need to destroy the component (grid, chart) in your action callback (e.g. onUpdate(), onClick()). You can

Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Martin Grigorov
aResponse.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jquery.scroll*T*o/current/jquery.scroll *T*o.js"))); On Mon, Sep 9, 2019 at 2:06 PM Sibgha Nazir wrote: > Any idea, how to fix it? > > On Mon, Sep 9, 2019 at 10:01 AM Martin Grigorov

Re: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-09 Thread Martin Grigorov
> > > > > https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java#L106 > > > > > > -- > > > Olivier Dutrieux > > > Evolution du SI Scientifique et de Gestion (Tél

Re: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-09 Thread Martin Grigorov
Hi Olivier, The backport of the commit from 9.x (master) is https://github.com/apache/wicket/commit/efcffbb7be97847bec40aec77cfb9414fc55fa8c And I see the lines at:

Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Martin Grigorov
Hi, I think the problem is in the packaging of this webjar. The folder name in the .jar file is: /META-INF/resources/webjars/jquery.scroll*T*o/ . Note the capiral T in scrollTo. It does not match with the Maven artifact id - it uses lower case 't'. Because of this

Re: Wrapping a FormComponent with a Border

2019-09-03 Thread Martin Grigorov
k with FormGroup then you will need to override onComponentTagBody() too > > Tom > > > > Gesendet: Dienstag, 03. September 2019 um 09:22 Uhr > > Von: "Martin Grigorov" > > An: "users@wicket.apache.org" > > Betreff: Re: Re: Wrapping a Form

Re: Re: Wrapping a FormComponent with a Border

2019-09-03 Thread Martin Grigorov
: Montag, 02. September 2019 um 13:57 Uhr > > Von: "Tom Götz" > > An: users@wicket.apache.org > > Betreff: Re: Wrapping a FormComponent with a Border > > > > Thanks Martin, this is exactly what I had in mind. I already implemented > 1), replacing the TextField with

Re: Wrapping a FormComponent with a Border

2019-09-02 Thread Martin Grigorov
Hi Tom, I imagine two ways: 1) use org.apache.wicket.application.IComponentInitializationListener that manipulates the component tree whenever the passed component is an instance of TextField and has no (direct?!) parent of type FormGroup 2) use AOP In both cases you will need to also the markup

Re: Streaming a PDF into an iFrame

2019-08-29 Thread Martin Grigorov
Hi, Check the response headers of PDF. If chunked transfer encoding is used then maybe you can fix it by providing explicitly the Content-Lenght in your Wicket code. On Thu, Aug 29, 2019 at 12:05 AM Benjamin Chew wrote: > Yes, they are the full PDFs that I'm expecting. > > Ben > > > On Wed,

Re: non-serializable objects to feed a DropDownChoice

2019-08-28 Thread Martin Grigorov
Hi, Is there a problem in using LoadableDetachableModel> for the DropDownChoice ? Use this constuctor: public DropDownChoice(String id, IModel model, IModel> choices, IChoiceRenderer renderer) On Wed, Aug 28, 2019 at 10:56 PM René Stolle wrote: > Hello there, > > my domain classes are mostly

Re: Re: Wicket Spring boot - use spring devtools

2019-08-28 Thread Martin Grigorov
e. > > (DCEVM i need to inspect :-).) > > Thanks for your support. > Regards > Per > > > Gesendet: Mittwoch, 28. August 2019 um 10:37 Uhr > > Von: "Martin Grigorov" > > An: "users@wicket.apache.org" > > Betreff: Re: Wicket S

Re: Wicket Spring boot - use spring devtools

2019-08-28 Thread Martin Grigorov
Hi, This is how Spring Dev Tools work. When it detects a change it removes the old application class loader and creates a new one. Why this is a problem for you ? I personally prefer to use DCEVM (https://dcevm.github.io/). It is able to redefine a specific class in the current class loader.

Re: Migrating to 8.5

2019-08-19 Thread Martin Grigorov
On Mon, Aug 19, 2019 at 1:48 PM Bas Gooren wrote: > Hi! > > It sounds like you are not referencing the correct wicket-request > dependency. > > Did you check your maven dependency tree to ensure there are no old (or > duplicate/multiple) versions of wicket dependencies being resolved? > Indeed,

Re: multiple AjaxFileDropBehaviour on single page

2019-08-14 Thread Martin Grigorov
On Wed, Aug 14, 2019 at 10:19 AM Sven Meier wrote: > Hi Korbinian, > > Wicket Ajax is primarily used for UI updates, thus all requests *have* > to be sent sequentially: Otherwise user input > (click...tab...type...click...click) would not be processed in a > deterministic way! > Furthermore all

Re: getPageClass locks the page

2019-08-12 Thread Martin Grigorov
Hi, If the page is not unlocked then it is a bug. But it is strange that no one faced it before. This code is in use since Wicket 1.5.0. On Tue, Aug 13, 2019 at 7:38 AM Andrew Kondratev wrote: > Hi! > > My colleague noticed some dodgy behavior, which I think could be a bug. > Just asking here

Re: Java 8 access to effectively final variables/method parameters from anonymous classes

2019-08-05 Thread Martin Grigorov
Hi, You can file a feature request to Java developers. A compiler flag can forbid this behavior. On Sun, Aug 4, 2019, 14:05 mscoon wrote: > Thomas, > > Thanks for the info. > > The domain objects not being serializable is certainly a valid option. > > To return to my original point, even this

Re: Best practice for session handling - high availability

2019-07-04 Thread Martin Grigorov
Hi, On Wed, Jul 3, 2019 at 8:32 PM Manfred Bergmann wrote: > I mean, don't get me wrong. > I'm in favour of session stickiness and I can't understand why this is not > preferred. > > But anyway. If we have aTCP load-balancer that switches on a timely basis > every 200ms then session replication

Re: WebSockets and Page serialization, oddity.

2019-07-02 Thread Martin Grigorov
Hi, Here are the logs: [qtp1722023916-27] INFO com.mycompany.StartWebSocketPage - onClose [Wicket-AsyncPageStore-PageSavingThread] INFO com.mycompany.WicketApplication - ===serialize class com.mycompany.StartWebSocketPage 0 [qtp1722023916-16] INFO com.mycompany.WicketApplication - ---deserialize

Re: receiving email from from p.davids@hea.jetzt when posting on users@wicket.apache.org

2019-07-01 Thread Martin Grigorov
I've just unsubscribed p.davids@hea.jetzt from both dev@ and users@ On Fri, Jun 21, 2019 at 4:37 PM Sven Meier wrote: > Hi, > > that's just an automatic reply from Patrick's mailbox. > > @Patrick check your subscription please > > Have fun > Sven > > > On 21.06.19 15:01, Francois Meillet wrote:

Re: Enclosure around a RefreshingView

2019-06-29 Thread Martin Grigorov
Hi, On Fri, Jun 28, 2019 at 6:25 PM Boris Goldowsky wrote: > What’s the best practice for a list (built in this case with a > RefreshingView) that has a header, which should be hidden if the list is > empty? > > The most obvious would be to wrap around the whole > thing, but the

Re: caching javascript and other secondary resource files

2019-06-27 Thread Martin Grigorov
Hi, If you don't use Wicket ResourceReference for the resource (js/css/image/...) then Wicket will not do anything for it. Still you have the following options: - use a custom Servler Filter that adds the caching response headers for any resource that does not have them. This filter should be

Re: improvement for wicket:for

2019-06-26 Thread Martin Grigorov
Hi Ernesto, Please create a Pull Request and we will discuss it! Thanks! On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > I could try to provide a PR implementing this. > > On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro < > reier...@gmail.com>

Re: estimate time for 9.x release?

2019-06-25 Thread Martin Grigorov
gt; > Meanwhile I'm preparing a pull request for another modal-dialog > proposal, but this doesn't have to delay a Wicket 9 release either. > > Have fun > Sven > > > On 20.06.19 11:50, Martin Grigorov wrote: > > Hi, > > > > The only bigger task I am aware o

Re: estimate time for 9.x release?

2019-06-20 Thread Martin Grigorov
On Thu, Jun 20, 2019, 23:17 Andrea Del Bene wrote: > > On 6/20/19 12:46 PM, Martin Grigorov wrote: > > On Thu, Jun 20, 2019 at 1:37 PM Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > >> Hi Martin and Andrea, > >> > >&g

Re: Wicket 9 migration guide : No such URL

2019-06-20 Thread Martin Grigorov
Added it! Thanks, François! On Thu, Jun 20, 2019 at 2:02 PM Francois Meillet wrote: > There is no html data for Wicket 9 migration guide > > https://s.apache.org/wicket9migration < > https://s.apache.org/wicket9migration> : No such URL > > > François > > > >

Re: estimate time for 9.x release?

2019-06-20 Thread Martin Grigorov
On Thu, Jun 20, 2019 at 1:37 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi Martin and Andrea, > > Many thanks for answers. So, I will try to convince my teammates to switch > development to 9.x branch and that way provide "life feedback" on new > developments. > > The only

Re: estimate time for 9.x release?

2019-06-20 Thread Martin Grigorov
Hi, The only bigger task I am aware of is the vanilla wicket-ajax.js rewrite that has been suggested by Korbinian Bachl (some time ago) and Andrew Kondratev (more recently). Sven said that he wants to work on it. But in my opinion this task should not stop us to release 9.0.0. The vanilla impl

Re: Getting access to AjaxRequestTarget

2019-06-07 Thread Martin Grigorov
Hi, You can't do this the way you described it because Ajax is initiated by the browser. I can propose you three options: 1) use Ajax polling Store the messages in some data structure in the page/panel and with the help of AbstractAjaxTimerBehavior render the collected messages 2) WebSocket

Re: Close browser on button click

2019-06-03 Thread Martin Grigorov
Hi, What exactly did you try ? Try with the following: AjaxLink closeWindowLink = new AjaxLink("closeWindow") { @Override public void onClick(AjaxRequestTarget target) { target.appendJavaScript("self.open(location, '_self').close();"); } } On Mon, Jun 3, 2019 at 2:16 PM zahir.kali

Re: Close browser on button click

2019-06-03 Thread Martin Grigorov
Hi, On Mon, Jun 3, 2019 at 1:44 PM zahir.kali wrote: > Hi, > > I have a WebPage with an "Close" button. I would like to close the current > page on pressing the close button. > > > > I tried with JavaScript function (see link >

Re: 7.14.0 release

2019-05-24 Thread Martin Grigorov
The vote already started at dev@ On Fri, May 24, 2019, 18:54 Wayne W wrote: > Ok thanks. So soon then hopefully!! > > On Wed, May 22, 2019 at 3:37 PM Andrea Del Bene > wrote: > > > yes. 8.5.0 and 7.14.0 go hand in hand together :-) > > > > see > > > > >

Re: Possible memory leak with Tomcat?

2019-05-21 Thread Martin Grigorov
Hi Wayne, I think you are facing https://issues.apache.org/jira/browse/WICKET-6639 It is fixed in 7.14.0 and 8.4.0. On Mon, May 20, 2019 at 6:48 PM Wayne W wrote: > Hi Sven, > > I'm having trouble replicating locally. We just saw it in production and > then had to roll back as it was effecting

  1   2   3   4   5   6   7   8   9   10   >