Re: Wizard - showing Modal on "next" button

2020-07-16 Thread Sven Meier
Hi, easiest solution is to do the confirmation in JS only:         button.add(new Behavior() {             @Override             public void renderHead(Component component, IHeaderResponse response)             { response.render(OnEventHeaderItem.forComponent(component, "click", "return

Re: Page locked for a long time

2020-07-05 Thread Sven Meier
Hi Maxim, you'll have to upload these files to a resource separately. I'm not aware of a reusable solution for that. Have fun Sven On 05.07.20 17:20, Maxim Solodovnik wrote: Hello All, our app allows huge file uploads I have noticed the page is locked while incoming input stream is being

Re: Wicket can't distinguish multiple submit button in case of one form.

2020-06-26 Thread Sven Meier
Hi Thorsten, this is all HTML standard:     https://stackoverflow.com/questions/2129346 I have no clue why it doesn't work for you. Please isolate the problem in a jsfiddle or similar. Have fun Sven On 26.06.20 10:44, Thorsten Schöning wrote: Guten Tag Thorsten Schöning, am Freitag, 26.

Re: Wicket can't distinguish multiple submit button in case of one form.

2020-06-25 Thread Sven Meier
Hi Thorsten, for a normal form submit the browser should send "bcdHistory.upload" as post parameter. That should definitely work. Show us your HTML, maybe something is wrong there. Have fun Sven On 25.06.20 19:05, Thorsten Schöning wrote: Hi all, I have one form in which I need two

Re: one pass render, mounted page back button

2020-06-24 Thread Sven Meier
Hi Rob, without a redirect, your first page will be presented without page id in the url. Thus when you return back from another page, the browser will just request a fresh page. An F5 while on your first page should result in the same problem. I don't know how to square that circle.

Re: Stateless page with AjaxSelfUpdatingTimerBehavior

2020-06-23 Thread Sven Meier
Hi, you can make any Ajax behavior stateless as follows:         component.setMarkupId("stable-id");         add(component);         component.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)) {             @Override             public boolean getStatelessHint(Component component) {

Re: JS - defer automatic?

2020-06-22 Thread Sven Meier
Hi Rob, have you tried JavaScriptDeferHeaderResponse? And here's some background on how we arrived at this solution: https://issues.apache.org/jira/browse/WICKET-6498 Have fun Sven On 22.06.20 13:23, Rob Audenaerde wrote: Hi all, I'm trying to increase the google-page-speed of some

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
Hard to tell, the code looks fine to me :/ Have fun Sven On 01.06.20 15:09, leodali83 wrote: Hello Sven, actually it helps a bit, some error feedback messages related to the 2 input fields on which I set the value just after instantiation of FormTester disappered. Therefore, test fails again

Re: Locatable UnsupportedOperationException

2020-06-01 Thread Sven Meier
Model for component '{}", this.getPageRelativePath(), uox) Does anyone see a drawback ? Martin On Sat, May 30, 2020 at 11:42 PM Sven Meier wrote: Hi, just put a breakpoint on IModel#setObject(). Once your problem hits that breakpoint, you'll be able to derive the offending component/

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
Hi, you have to use a new FormTester instance after executing the Ajax event: ...     formTester = tester.newFormTester(path)     formTester.select("field1", ""); // required field     formTester.select("field2", ""); // required field     .    

Re: Locatable UnsupportedOperationException

2020-05-30 Thread Sven Meier
Hi, just put a breakpoint on IModel#setObject(). Once your problem hits that breakpoint, you'll be able to derive the offending component/model from the stacktrace/variables in your favorite IDE. Have fun Sven On 30.05.20 17:13, smallufo wrote: Is it possible to try {

Re: Wicket HttpSessionDataStore, InMemoryCacheSize and MaxSizePerSession

2020-05-24 Thread Sven Meier
Hi, both settings are unrelated: - inMemoryCacheSize is 0 by default anyway - maxSizePerSession is used by DiskDataStore (which you are replacing with HttpSessionDataStore) Have fun Sven On 25.05.20 03:51, ShengChe Hsiao wrote: Dear all I want to use HttpSessionDataStore as default page

Re: WebSocket concurrent modification

2020-05-20 Thread Sven Meier
Hi, I can reproduce the problem, but don't know yet what is causing this. What I can see is that the page is properly locked when being accessed via Ajax or via a web socket push. Thus a concurrent modification should not occur. I'll have to investigate further. Have fun Sven On 20.05.20

Re: Page deserialization problem after a network problem

2020-05-19 Thread Sven Meier
Hi, I don't understand how that exception ends up in your component hierarchy either. Do you use a custom exception mapper or listener? I don't see any place in Wicket where that exception is stored. Best regards Sven On 18.05.20 17:12, Calin Pavel wrote: Sometime our customers have

Re: ModalWindow alert popup that submits form

2020-05-15 Thread Sven Meier
Sorry, we seem to speak about different buttons. Could you create a quickstart? I've used validation in modal dialogs plenty of times and it works as expected. Have fun Sven On 14.05.20 19:14, Entropy wrote: The panel that launches the modal is not inside the form (it's part of a standard

Re: ModalWindow alert popup that submits form

2020-05-14 Thread Sven Meier
Hi, form processing should work as usual in the modal window, including validation of course. Does it make a difference when you let the AjaxButton find its form by itself? Have fun Sven Am 13. Mai 2020 22:29:59 MESZ schrieb Entropy : >We have a custom popup alert box launched from wicket.

Re: Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Sven Meier
Hi, you can use PageRequestHandlerTracker for that: https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java Have fun Sven On 02.05.20 18:41, Olivier Dutrieux wrote: Is there a possibility to access to initial

Re: The AutoCompleteTextField model callback setObject() not working

2020-04-28 Thread Sven Meier
Hi, you find an example page in wicket-examples org.apache.wicket.examples.ajax.builtin.AutoCompletePage that works fine. Could you try it and check the difference to your code please? Have fun Sven On 28.04.20 10:55, kyc wrote: Dear Martin, Thank you for your answer. I upgraded to

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

2020-04-24 Thread Sven Meier
ers. Nothing works after. -Igor. On 24. Apr 2020, at 15:07, Sven Meier mailto:s...@meiers.net>> wrote: Hi Igor, so the browser sends the request a second time via "get". That shouldn't be a problem, since in that case all FormComponents will read their parameters from the query

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

2020-04-24 Thread Sven Meier
baum.eu.invalid>>> 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 configuration or any http headers returned wil

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

2020-04-23 Thread Sven Meier
cise this code https://github.com/apache/wicket/commit/0c19cf8/#diff-51cf2faf6078497df77cc6d995dd1b98. Starting from Wicket 7.16 you distinguish between GET and POST in FormComponent#getInputAsArray() and for the form submit this will not work in case of redirect. -Igor. On 23. Apr 2020, a

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

2020-04-23 Thread Sven Meier
Hi, if the generated HTML contains method="post", the browser will send the form as post request. Without more detailed information, it's hard to find the error. Can you write a quickstart? Have fun Sven On 23.04.20 11:59, Igor Khvostenkov wrote: Hi *, I faced with the problem. When

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-15 Thread Sven Meier
Sun, Apr 12, 2020 at 6:57 PM Sven Meier wrote: Hi Thomas, I've did a little research on using SoftReferences for caches: https://stackoverflow.com/questions/264582/is-there-a-softhashmap-in-java http://jeremymanson.blogspot.com/2009/07/how-hotspot-decides-to-clear_07.html The experts s

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-12 Thread Sven Meier
That's good to hear! Please let me know when you have an implementation and I'll give it another go. Best regards, Thomas On Sat, Apr 11, 2020 at 11:01 PM Sven Meier wrote: Hi Thomas, actually not bad news at all (for Wicket 9 at least). The old page manager implementation had so many s

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-11 Thread Sven Meier
Wed, Apr 8, 2020 at 3:13 PM Sven Meier wrote: Many thanks Maxim! Sven On 08.04.20 14:29, Maxim Solodovnik wrote: Released :) On Wed, 8 Apr 2020 at 15:41, Maxim Solodovnik wrote: OK Will start new release process in couple of hours Please stop me if you will find any blocker :) On Wed,

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

2020-04-10 Thread Sven Meier
Hi Francesco, there was a slight difference in the mock setup, which should now be as in Wicket 8:     https://issues.apache.org/jira/browse/WICKET-6766 Many thanks for testing with Wicket 9! Sven On 09.04.20 16:42, Francesco Chicchiriccò wrote: On 2020/04/09 12:04:00, Sven Meier wrote

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

2020-04-09 Thread Sven Meier
Hi Francesco, I'll have to check what has changed here. I wouldn't expect any problems with MockPageStore, but perhaps it changed slightly. Can you write a testcase that runs in Wicket 8 but fails in 9? Have fun Sven On 09.04.20 12:20, Francesco Chicchiriccò wrote: Hi all, at Syncope we

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-08 Thread Sven Meier
elease later this week ... On Wed, 8 Apr 2020 at 00:48, Thomas Heigl wrote: Thanks Sven! Did your changes make it into the release? Or did they just miss it? Thomas On Tue, Apr 7, 2020 at 7:43 PM Sven Meier wrote: Hi Thomas, yes, you're right: wicketstuff data stores missed some adjus

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-07 Thread Sven Meier
PM Sven Meier wrote: Hi Thomas, your question comes at the right time. I was able to improve the implementation with a new CachingPageStore: https://github.com/apache/wicket/blob/8df3528dc44a08b7d375c20e764a3664cd6a5f30/wicket-core/src/main/java/org/apache/wicket

Re: How can a component know if it's being rendered as part of Ajax response?

2020-04-05 Thread Sven Meier
to be a frequent use case, wouldn't there be a good fit for some shorthand method? Like /getRequestCycle().onAjax(t-> {});/ boolean getRequestCycle().isAjax(); ? Vit On 4/4/20 11:51 PM, Sven Meier wrote: Hi, you can test for the appropriate request handler: getRequestCycle().f

Re: How can a component know if it's being rendered as part of Ajax response?

2020-04-04 Thread Sven Meier
Hi, you can test for the appropriate request handler: getRequestCycle().find(IPartialPageRequestHandler.class).ifPresent(target -> /* do things on partial page update */)); Have fun Sven On 04.04.20 23:43, Vilius Vaivada wrote: Hey guys, I'm pretty sure I'm missing something obvious

Re: Wizard vs WicketTester

2020-04-04 Thread Sven Meier
Hi Maxim, > lastRendered page === 'null' after submit > Maybe I'm doing something wrong? it seems so. Check the log output and/or provide a testcase please. Have fun Sven On 04.04.20 07:35, Maxim Solodovnik wrote: Hello All, I'm trying to to test Wizard with WicketTester Wizard is the

Re: Wicket.Ajax.Call.processEvaluation // how to not get reference errors in case one has to check for a var?

2020-04-02 Thread Sven Meier
Hi Korbinian, Wicket just evaluates your JS, if you get a ReferenceError then surely there's something wrong in your code. Are you sure you're looking on the correct source line? Have fun Sven On 02.04.20 15:57, Korbinian Bachl wrote: Hi, i've added some JS to be exectued after AJAX but

Re: ERROR org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse

2020-04-01 Thread Sven Meier
this redirect (e.g. page url changes after render). Maybe we could improve ComponentRender so it never redirects. Best regards Sven On 01.04.20 19:53, Thorsten Schöning wrote: Guten Tag Sven Meier, am Mittwoch, 1. April 2020 um 17:31 schrieben Sie: Without a quickstart it's hard to guess whether

Re: update DropDownList via AJAX

2020-04-01 Thread Sven Meier
Hi, if the DropDownList is updated via Ajax, the DOM element gets replaced and the closes, I don't see a way around that. You could try updating the select's inner (via some Ajax JS magic) only. I'm not aware of a pre-build Wicket solution that would do that though. Maybe Select2 or

Re: ERROR org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse

2020-04-01 Thread Sven Meier
Hi Thorsten, the log message seems to have served it's purpose: You reported the problem :P. Without a quickstart it's hard to guess whether this is an error actually or you did something wrong. Sven On 01.04.20 17:06, Thorsten Schöning wrote: Hi all I have a project in which I use

Re: FileUpload class still implements IClusterable

2020-03-30 Thread Sven Meier
This will be fixed with Wicket 9. Have fun Sven On 30.03.20 19:32, natefki wrote: FileUpload class despite everything actualizes IClusterable however it contains a field of type FileItem: which is never again Serializable, Drop IClusterable. -- Sent from:

Re: Is it safe to use ComponentRenderer with different apps in the same thread one after another?

2020-03-29 Thread Sven Meier
Hi Thorsten, > As well I really only need to render within one and the same thread > one after another, that should work. > is it safe to render recursively using ComponentRenderer within > one and the same thread? I assume you mean 'consecutively'? Yes, see above. Have fun Sven On

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-03-27 Thread Sven Meier
use InMemoryPageStore as a cache too. Have fun Sven On 27.03.20 09:34, Sven Meier wrote: Hi Thomas, I thought I covered that usecase, but I will have to take a look. Thanks for testing Wicket 9 Sven On 25.03.20 20:10, Thomas Heigl wrote: Maybe the same approach could be used

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-03-27 Thread Sven Meier
Hi Thomas, I thought I covered that usecase, but I will have to take a look. Thanks for testing Wicket 9 Sven On 25.03.20 20:10, Thomas Heigl wrote: Maybe the same approach could be used as for InSessionPageStore that can be used as cache and a store:

Re: Unexpected component-ID "2" for 1 child of repeating view.

2020-03-18 Thread Sven Meier
, Thorsten Schöning wrote: Guten Tag Sven Meier, am Mittwoch, 18. März 2020 um 10:04 schrieben Sie: what IItemReuseStrategy are you using? DefaultItemReuseStrategy creates new items on each render, which leads to new ids. I didn't care yet and can't find anything regarding that strategy, so I guess it's

Re: How to change the target of some form-action to some configured value?

2020-03-18 Thread Sven Meier
Hi Thorsten, have you tried overriding #getActionUrl()? Sven On 18.03.20 10:19, Thorsten Schöning wrote: Hi all, I'm rendering a web page for offline use, but am playing around with integration into the parent web site where that offline page comes from. The current approach is to simply

Re: Unexpected component-ID "2" for 1 child of repeating view.

2020-03-18 Thread Sven Meier
Hi Thorsten, what IItemReuseStrategy are you using? DefaultItemReuseStrategy creates new items on each render, which leads to new ids. Maybe testing your additional panels initiates additional pages renderings? Have fun Sven On 18.03.20 09:29, Thorsten Schöning wrote: Hi all, I have

Re: How to make Wicket prefer a custom resource finder always?

2020-03-04 Thread Sven Meier
Hi, have you tried removing the default finders? settings.getResourceFinders().clear(); Maybe the default classpath finder is kicking in and loads a template for a class that would otherwise inherit its markup from its superclass? Sven Am 3. März 2020 20:28:19 MEZ schrieb "Thorsten Schöning"

Re: PerSessionPageStore thread-safety

2020-02-26 Thread Sven Meier
Hi Thomas, Im wondering whether you're running into https://issues.apache.org/jira/browse/WICKET-6702 I've been working on a solution to that problem, which is caused by pages being asynchronously serialized while another request is already coming in. Or maybe it is something different. Could

Re: AjaxDownloadBehavior with resource reference does not trigger respond() method

2020-02-06 Thread Sven Meier
we'll have to improve the Javadoc for this. Have fun Sven On 06.02.20 16:03, Timo Schmidt wrote: Hi Sven, On Mi 05.02.2020 21:35, Sven Meier wrote: On 05.02.20 21:14, Timo Schmidt wrote: On Mi 05.02.2020 20:48, Timo Schmidt wrote: im currently trying to setup a download behavior for large

Re: AjaxDownloadBehavior with resource reference does not trigger respond() method

2020-02-05 Thread Sven Meier
Hi, have you tried the download in wicket-examples? The #respond notification is called there after download completed for any location. Have fun Sven On 05.02.20 21:14, Timo Schmidt wrote: On Mi 05.02.2020 20:48, Timo Schmidt wrote: im currently trying to setup a download behavior for

Re: Need an event later than 'done'

2020-01-23 Thread Sven Meier
Cool, thanks for the update! Sven On 23.01.20 20:19, Entropy wrote: Okay, nevermind. I solved that by using a MutationObserver in javascript to look for the thing Wicket makes visible or not and invoke my javascript as needed. -- Sent from:

Re: Need an event later than 'done'

2020-01-22 Thread Sven Meier
Hi, sorry, I thought you know that detail: If a behavior or any of the components in the hierarchy implements IAjaxIndicatorAware, it can specify the id of a markup to be shown during Ajax processing:

Re: Need an event later than 'done'

2020-01-22 Thread Sven Meier
You're right, the Ajax response isn't available in the done callback. Regretfully I can't remember how I solved the same issue in one of my last projects. But have you thought about utilizing the default Ajax indicator? You could set attrs.i in AJAX_CALL_BEFORE and let Wicket show that

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-21 Thread Sven Meier
hy() is >not working there). > >I attached the quickstart for those who want to experiment with it. > >-Rob > >On Mon, Jan 20, 2020 at 7:17 PM Sven Meier wrote: > >> Hi Rob, >> >> actually I wasn't able to reproduce the problem on a second try (not &g

Re: Need an event later than 'done'

2020-01-21 Thread Sven Meier
Hi Entropy, the trick is do keep the veil up whenever a redirect happens as the result of an Ajax request. Similar to what wicket-ajax-jquery.js is doing with it's Ajax indicator:                         if (attrs.i && context.isRedirecting !== true) {                            

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-20 Thread Sven Meier
Hi Rob, actually I wasn't able to reproduce the problem on a second try (not sure what I tested before). Can you create a a quickstart showing the problem? Sven On 20.01.20 13:18, Sven Meier wrote: Hi Rob, the 'correct' way to solve this? the component is explicitly added to the Ajax

Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-20 Thread Sven Meier
Hi Rob, the 'correct' way to solve this? the component is explicitly added to the Ajax request for an update, but decides to hide itself in onConfigure(). Perfectly valid usecase IMHO, but the head will be rendered nevertheless :/ Just tested with 7.x, 8.x and master, this seems to have

Re: Dealing with editing of nested objects in a multiple screens for a single entity

2020-01-17 Thread Sven Meier
Hi Bas, >set of custom models that remembers what was provided in “setObject” and can later replay this in my experience most attempts on putting to much logic into model implementations have failed. Long class names (ahem NestedPropertyChangeListenerModel) or deeply nested model

Re: OOM: Direct buffer memory

2020-01-17 Thread Sven Meier
- Orienteer(http://orienteer.org) - open source Business Application Platform On Thu, Jan 16, 2020 at 11:41 AM Sven Meier wrote: What was your previous version? Sven Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" : Hello, After upgrading to Wicke

Re: OOM: Direct buffer memory

2020-01-16 Thread Sven Meier
What was your previous version? Sven Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" : >Hello, > >After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in >logs like below. >I'm not 100% sure that it's due to Wicket, but we didn't change >containers parameters and etc - so at

Re: Converters for Date/Time

2020-01-13 Thread Sven Meier
messages etc.? ** Martin ma 13. tammik. 2020 klo 18.46 Sven Meier (s...@meiers.net) kirjoitti: Hi, adapting to the client timezone can be done in the component, a converter or a model. e.g. https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket

Re: Converters for Date/Time

2020-01-13 Thread Sven Meier
Hi, adapting to the client timezone can be done in the component, a converter or a model. e.g. https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/datetime/ZonedToLocalDateTimeModel.java Whatever fits your use-case. Maybe

Re: Cookie SameSite issue

2019-12-15 Thread Sven Meier
Hi, the Servlet spec doesn't support the "sameSite" attribute yet. You can explicitly set a cookie header instead. Or instruct Tomcat to add the attribute for you: https://stackoverflow.com/questions/57505939/how-to-set-samesite-cookie-in-tomcats-cookie-processor Have fun Sven Am 16.

Re: Feedback messages not showing on first request

2019-12-02 Thread Sven Meier
Hi, your isVisible() might be called to often or early. FeedbackMessagesModel caches the messages during request, so the call to #anyMessage() might result in a premature collection of messages. Try override #onConfigure() instead, this is preferred over overriding #isVisible():           

Re: Feedback messages not showing on first request

2019-11-28 Thread Sven Meier
Hi, hard to tell from your code snippet. Could you remove the irrelevant part (the request attribute) and show us the visibility control instead? A quickstart would help too. Have fun Sven On 26.11.19 16:53, Entropy wrote: We have a page where we are being required to have multiple

Re: Application # newSession # sessionUnbound - RuntimeException

2019-11-21 Thread Sven Meier
(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) François Le 21 nov. 2019 à 17:55, Sven Meier a écrit

Re: Application # newSession # sessionUnbound - RuntimeException

2019-11-21 Thread Sven Meier
Yes, I mean a non-web-request thread, i.e. when the session expires as you've written. Sven On 21.11.19 17:52, Martin Grigorov wrote: On Thu, Nov 21, 2019 at 6:30 PM Sven Meier wrote: Hi, actually #sessionUnbound() is called *on* the application instance, so the ExceptionMapper

Re: Opening a stateful page in a new window/tab with ajax

2019-11-21 Thread Sven Meier
Hi, that's a perfectly valid usage. Have fun Sven On 21.11.19 13:44, mscoon wrote: Hi all, We are using the following code inside an ajax callback to create a new page and open it in a new window. Are there any gotchas with respect to how we create MyPage and get the url for it? Is it

Re: Application # newSession # sessionUnbound - RuntimeException

2019-11-21 Thread Sven Meier
Hi, actually #sessionUnbound() is called *on* the application instance, so the ExceptionMapper is available. But ExceptionMapper maps an exception to a requestHandler, this doesn't make sense for an exception happening on a worker thread. Hope this helps Sven On 21.11.19 16:37, Martin

Re: DynamicModel within ListView That Refreshes on ModalWindow Close

2019-09-26 Thread Sven Meier
You'll have to show us some code (quickstart?), without it it is difficult to understand your problem. Have fun Sven Am 26. September 2019 16:41:47 MESZ schrieb dylanbozeman : >Thank you Ernesto. I will look into this. > >I didn't mean to be rude, I was thankful for the answer. I was just

Re: DynamicModel within ListView That Refreshes on ModalWindow Close

2019-09-25 Thread Sven Meier
Hi, of course you can use a PropertyModel within a Listview, e.g.: https://github.com/apache/wicket/blob/0a1c33574d08ad9afd2e36a24085d48cdf9efc3f/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java#L213 Or use a CompoundPropertyModel:

Re: DownloadLink ContentDisposition

2019-09-18 Thread Sven Meier
Hi, IMHO "download" sort of implies that the file is downloaded and not shown inline. But feel free to create a pull request to make that configurable. Have fun Sven On 18.09.19 17:09, e.spyro...@teamconcepts.gr wrote: Hi all, I have a quick question (I hope) I wanted to display a PDF

Re: Import Javascript through webjars as maven dependency.

2019-09-08 Thread Sven Meier
Hi, I don't know why, but WebJars doesn't seem to be able to determine the 'current' version of your dependency. Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. Hope this helps Sven Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir : >Hi, > >I am not able to import the

Re: Import Javascript through webjars as maven dependency.

2019-09-08 Thread Sven Meier
Hi, I don't know why, but WebJars doesn't seem to be able to determine the 'current' version of your dependency. Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. Hope this helps Sven Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir : >Hi, > >I am not able to import the

Re: Page Storage and serialization

2019-09-06 Thread Sven Meier
Great you've found it! Have fun Sven On 06.09.19 01:45, Lon Varscsak wrote: Thanks, I was getting hung up on page store and data stores. I switched to wicket 9 for this project and I'm using InSessionPageStore and that seems to do what I want. Thanks! On Wed, Sep 4, 2019 at 10:50 PM Sven

Re: Page Storage and serialization

2019-09-04 Thread Sven Meier
Hi, you can use a custom page store: https://stackoverflow.com/questions/14823293/how-can-i-disable-serialization-in-wicket-1-5 In Wicket 9 this becomes a little easier. Have fun Sven Am 4. September 2019 22:04:07 MESZ schrieb Lon Varscsak : >Hey there, > >I'm in a bit of a situation and

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Sven Meier
ng away from the page at all... > >Ben > >> On Aug 27, 2019, at 11:34 AM, Sven Meier wrote: >> >> Hi Benjamin, >> >> this just means that the browser closed the connection before the pdf >was fully loaded from the server, e.g. if the user switches to a

Re: Streaming a PDF into an iFrame

2019-08-27 Thread Sven Meier
Hi Benjamin, this just means that the browser closed the connection before the pdf was fully loaded from the server, e.g. if the user switches to a different page before the iframe has finished loading. Nothing you need/can do about it. Have fun Sven On 27.08.19 02:13, Benjamin Chew

Re: Streaming a PDF into an iFrame

2019-08-23 Thread Sven Meier
Hi Ben, great that you've solved the issue already. Indeed, with that method you tell Wicket not to schedule an AjaxRequestHandler. Sven Am 23. August 2019 00:30:26 MESZ schrieb Benjamin Chew : >I solved this! I added this to the class and it worked: > >@Override >public boolean rendersPage()

Re: AttributeModifier values gets escaped

2019-08-18 Thread Sven Meier
Hi Korbinian, AttributeModifier always escapes its value, there's no way around that. Why aren't you starting with an escaped url in the first place? image.add(AttributeModifier.replace("src", imgUrl + "?a=1=2")); Have fun Sven On 18.08.19 13:13, Korbinian Bachl wrote: Hi, I try

Re: multiple AjaxFileDropBehaviour on single page

2019-08-14 Thread Sven Meier
.: jQuery.when() ) You mention the upload to a resource - how would this change it in that in could be parallel and could you point me an example? Best & Thanks for the answer so far, KB - Ursprüngliche Mail - Von: "Sven Meier" An: "users" Gesendet: Dienstag, 13. August 2

Re: multiple AjaxFileDropBehaviour on single page

2019-08-13 Thread Sven Meier
Hi, all Ajax behaviors' requests are queued in the browser. Even if you disable this (see AjaxRequestAttributes#channel), all access to the page is synchronized on the server anyway. You could to upload to a resource instead, AjaxFileDropBehaviour doesn't support this though. Have fun

Re: getPageClass locks the page

2019-08-13 Thread Sven Meier
Hi, PageAccessSynchronizer#detach() unlocks all pages. Is your request logger running after that? Have fun Sven On 13.08.19 07:46, Martin Grigorov wrote: 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.

Re: WG: AjaxEditableMultiLineLabel and shouldTrimInput

2019-08-07 Thread Sven Meier
Hi Patrick, Sorry, I have no access to jira. you should get it*, it's fun :P Have fun Sven * https://issues.apache.org/jira/browse/WICKET-6695 On 07.08.19 13:53, Patrick Schwarzer wrote: Hi Sven, thanks for your fast reply. This is how I fixed it now: @Override *protected

Re: AjaxEditableMultiLineLabel and shouldTrimInput

2019-08-07 Thread Sven Meier
Hi Patrick, seems overriding newEditor() is the only option for now. Please create a Jira issue so we can add a delegating shouldTrimInput() to AjaxEditableMultiLineLabel. A pull request would be nice too. Have fun Sven Am 7. August 2019 10:34:04 MESZ schrieb Patrick Schwarzer : >Dear Sir or

Re: WebSockets: page deserialisation on close (performance issue?)

2019-08-03 Thread Sven Meier
Hi Daniel, can you create a quickstart and attach it to a Jura issue please? Thanks Sven On 01.08.19 10:57, Daniel Stoch wrote: Correction to my previous message (I have debugged this more precisely): AbstractWebSocketProcessor.onClose method is called in both Jetty versions (not only in a

Re: Programmatic creation of messages with nested components

2019-07-28 Thread Sven Meier
Hi Thomas, WicketMessageResolver has a lot of magic and I find it hard to decide which of these could be extracted into a stand-alone component (e.g. resolving properties from the parents model. My question: Why don't you use a Panel instead, using different markup based on some condition?

Re: no-cache elements with ListItems (List of files to download them)

2019-07-22 Thread Sven Meier
ess about this can be a bug to handle the listview and refresh >ajax >components inside the real application. The POC should have proven that > >the download function works correctly. > >*sniff* So I have to check out and find the bug in the darkness of >components. > >Greet

Re: no-cache elements with ListItems (List of files to download them)

2019-07-22 Thread Sven Meier
Hi, your images didn't make it. Can you create a quickstart showing your problem? Have fun Sven On 22.07.19 17:02, Custodes Meus wrote: Hello all, Wicket 6.19.x I have a problem with cached elements for a FileList as Repeater inside used a DownloadLink to get a file over http. FileList

Re: DataTable and SelectAll checkbox

2019-07-17 Thread Sven Meier
Hi, have to taken a look at: https://github.com/apache/wicket/blob/wicket-8.x/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckGroupPage.java That's the trick. Have fun Sven On 17.07.19 20:15, Zbynek Vavros wrote: Hi, I know this is quite old but since I do migration

Re: Block AjaxEditableMultiLineLabel Edit Mode when selecting text

2019-07-16 Thread Sven Meier
Hi Patrick, overwrite AjaxEditableLabel#updateLabelAjaxAttributes() and use a precondition:             @Override             protected void updateLabelAjaxAttributes(AjaxRequestAttributes attributes)             {                 attributes.getAjaxCallListeners().add(new

Re: DropDownChoice - choices type vs model type

2019-07-01 Thread Sven Meier
Hi, preferably your dto would hold a batch instance instead of the name only. In your case you have to do the mapping somewhere, the renderer is a good place for that. Move it into its own class file so it won't hurt so much :P. Have fun Sven On 01.07.19 14:45, Zbynek Vavros wrote: Hi, I

Re: estimate time for 9.x release?

2019-06-23 Thread Sven Meier
Hi all, I haven't had time to work an wicket-ajax-no-jquery.js, and I agree that we as well might try that in Wicket 10. 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,

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

2019-06-21 Thread Sven Meier
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: When I send an email to users@wicket.apache.org I receive this automatic email from

Re: Possible memory leak with Tomcat?

2019-05-17 Thread Sven Meier
ar() Doesn't seem correct?? or am I missing something? On Fri, May 10, 2019 at 1:43 PM Wayne W wrote: Thanks Sven. On Thu, May 9, 2019 at 8:24 PM Sven Meier wrote: Hi, we've had two fixed related to page stores (WICKET-6457, WICKET-6564) so please upgrade to 7.13.0 first. Have fun S

Re: Radio button submits encoded value

2019-05-15 Thread Sven Meier
Hi, your Radio can override #getValue() and return a custom value, see its javadoc. Have fun Sven Am 15.05.19 um 21:29 schrieb Entropy: We have a general audit requirement to capture literally every request and log it and it's parameters. We are stripping these parameters from the

Re: Wicket 8 rendering of components

2019-05-13 Thread Sven Meier
Hi, in Wicket 8.x an Ajax response prepares all components beforehand and only then renders all components afterwards. Simplest fix would be overwriting #onRender() and let it call rendered() on your fake input instead. I'd suggest to skip that unnecessary input altogether -

Re: Wicket 8 rendering of components

2019-05-10 Thread Sven Meier
Hi, > how would I go about marking components as rendered? Wicket marks components as they are rendered, this isn't something you need/should do. Why aren't you just using a HiddenField? A quickstart would help to understand your problem, especially to compare it with Wicket 7.x. Regards

Re: Possible memory leak with Tomcat?

2019-05-09 Thread Sven Meier
Hi, we've had two fixed related to page stores (WICKET-6457, WICKET-6564) so please upgrade to 7.13.0 first. Have fun Sven Am 09.05.19 um 21:10 schrieb Wayne W: Hi, I've take a memory dump of one of our production instances and I'm seeing about 500MB of memory consumed just by the

Re: LambdaModel does not implements IPropertyReflectionAwareModel

2019-05-02 Thread Sven Meier
Hi, just a thought: for bean-validation with lamdamodels it might be easier to validate the bean as a whole and map the resulting errors to Wicket form components afterwards. Have fun Sven > > On 02.05.2019 at 23:03,wrote: > > > Sven, Thank you for

Re: Loadable Detachable Model not updating on re-render

2019-04-29 Thread Sven Meier
*); add(chart); chartAjaxBejavior = *new* > ChartAjaxBejavior(); add(chartAjaxBejavior); } It still doesn't update the > ChartPanel with the new model when onRenderAnnotations triggers. Do I have to > explicitly call detach()? On Mon, Apr 29, 2019 at 7:49 AM Sven Meier wrote: > &

Re: Loadable Detachable Model not updating on re-render

2019-04-28 Thread Sven Meier
Hi, your chartPanel should pass the chartModel to the super constructor. The panel takes care that the model is detached after the request. If you just hold chartModel as a member variable, no one will call detach() on it Have fun Sven > > On 28.04.2019 at

Re: Some Wicket components freeze app when URL rewrite

2019-04-26 Thread Sven Meier
Check your browser network console, what URL is redirected to and whether the following request succeeds. Sven > > On 26.04.2019 at 10:58,wrote: > > > That's right, but seems like this redirect doesn't arrive to browser, not > even sure it comes to IIS. I

  1   2   3   4   5   6   7   8   9   10   >