Re: upgrading Wicket

2024-01-26 Thread Sven Meier
Hi Steven, I've send you a PM. Sven On 26.01.24 14:57, Nelligan, Steven M wrote: Help, I am new to Wicket...and have taken over a project with wicket version 1.4.18, which is way out of date. According to a consulting firm, this would be a multi-year project to update all of our projects

Re: RangeValidator and BigDecimal

2023-12-20 Thread Sven Meier
Hi Eric, you can read in the javadoc, why your first solution is 'unpredictable': https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/math/BigDecimal.html#%3Cinit%3E(double) Sven On 20.12.23 15:18, Eric Hamel wrote: Hi Bas, Thanks for the response. I discovered

Re: Ajax - component not rendered.

2022-11-03 Thread Sven Meier
request in the Browser network tab. Sven On 03.11.22 08:11, Laurent Duparchy wrote: You need more than

Re: Ajax - component not rendered.

2022-11-02 Thread Sven Meier
Show us the relevant markup please. Sven On 02.11.22 15:13, Laurent Duparchy wrote: Hi, Yes, *devicesGroup *is initially visible. Everything seems fine in terms of Ajax request/response. When I add only the *feedbackpanel*, it is correctly added and painted with the correct feedback

Re: Ajax - component not rendered.

2022-10-28 Thread Sven Meier
Hi, please check the Ajax response in your browser's network tab, do you see the "devicesGroup" in the response XML? Maybe that "devicesGroup" bound to a tag? Have fun Sven On 28.10.22 09:43, Laurent Duparchy wrote: Hi, Sorry for the basic question If this is th

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-28 Thread Sven Meier
+1 Sven On 28.06.22 18:54, Andrea Del Bene wrote: I think we have enough work done for 9.11.0, so you shouldn't have to wait too much to get it On Tue, Jun 28, 2022 at 5:00 PM Wayne W wrote: Hi Sven, So far so good. It seems to have fixed all issues. Will there be a release

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-22 Thread Sven Meier
Hi Wayne, I pushed a fix to Wicket 9.x and 10.x. Would be great if you could give this a test, your test application works fine now. Many thanks Sven On 20.06.22 18:19, Wayne W wrote: Hello Sven, Many thanks for looking into this. It's greatly appreciated that you understand what

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-19 Thread Sven Meier
() being called, signalling PersistentPageStore to drop all store pages. I'll perpare a fix tomorrow. Thanks for your report. Sven On 18.06.22 15:24, Sven Meier wrote: Hi, I've stripped all pageManager related settings from your application. Now the bug only appears with Tomcat's

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-18 Thread Sven Meier
? Regards Sven On 13.06.22 12:30, Wayne W wrote: Hi Sven, Ok here is a quickstart demonstrating the issue. https://customerservices.glasscubes.com/share/s/1usch8t0hpjc4s5l3219he7s8f To reproduce, open localhost:8080 and you will now also see a list of 4 links. If you right click each link and open

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-09 Thread Sven Meier
Hi Wayne, no idea on my side. Please compare without InSessionPageStore and with different max pages. If the problem persists, please provide a quickstart. Thanks Sven On 08.06.22 18:51, Wayne W wrote: Hi Sven, I'm having a new issue with this wicket version - I've yet had time to dig

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-06-08 Thread Sven Meier
Thanks Wayne! The fix will be part of the next 9.x release. Best regards Sven On 07.06.22 12:22, Wayne W wrote: Hi Sven, I can confirm your fix is working . I suppose it will be a while before this reaches an official release? Thanks for your help - really appreciated. Wayne On Sun, May

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-05-29 Thread Sven Meier
Session works fine here with my fix on 9.x BTW the workaround with HubInSessionCache subclassing InSessionPageStore (to use a separate MetaDataKey) is no longer needed. Regards Sven On 26.05.22 19:19, Wayne W wrote: Hello Sven, So this particular issue I've been investigating might be a l

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-05-25 Thread Sven Meier
Hi Wayne, I've pushed a fix to https://github.com/apache/wicket/tree/WICKET-6981-session-attributes-not-set Are you able to test this on your setup? Regards Sven On 24.05.22 10:43, Wayne W wrote: Hello Sven, Any update on this? Many thanks On Mon, May 16, 2022 at 11:40 AM Sven Meier

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-05-16 Thread Sven Meier
Hi Wayne, not, because InSessionPageStore#canBeAsynchronous returns false, thereby preventing asynchronous adds. Regards Sven On 16.05.22 09:37, Wayne W wrote: Ah that's great Sven. Just a question - is it necessary for me to call getStoreSettings().setAsynchronous(false); when wanting

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-05-15 Thread Sven Meier
Hi Wayne, I've create an issue for this bug: https://issues.apache.org/jira/browse/WICKET-6981 I think I have a fix ready, but have to give it some more tests. Thanks for reporting the issue. Sven On 10.05.22 23:25, Sven Meier wrote: Hi Wayne, >Is this a bug? could be, do we have a J

Re: FlushSession never called on AjaxFormComponentUpdatingBehavior

2022-05-10 Thread Sven Meier
rds Sven On 10.05.22 18:47, Wayne W wrote: Hi, I am *still* trying to troubleshoot why migrating to 9.4 we have found that our app no longer supports session failover correctly. We use Redission to store the tomcat session in Redis. After a lot of debugging it appe

Re: how does DownloadLink lock the page?

2022-03-22 Thread Sven Meier
Hi Lucio, only the *page instance* containing the DownloadLink is locked by the download. Each user gets his own page instances, and these do not affect each other. Best regards Sven On 22.03.22 18:00, Lucio Crusca wrote: The API docs here https://nightlies.apache.org/wicket/apidocs/9.x

Re: Compoment.setVisible(IModel) ?

2022-03-09 Thread Sven Meier
Hi, Models are not support for visible/enabled state. The recommended pattern is overriding onConfigure() onConfigure() {   setVisible(/*... lazy evaluated ...*/) } Regards Sven On 10.03.22 00:31, smallufo wrote: Currently , component visible is defined by a eager evaluated boolean value

Re: How to use the JavaScriptDeferHeaderResponse correctly?

2022-02-01 Thread Sven Meier
nse;     }); Regards Sven On 01.02.22 17:16, Sven Meier wrote: Hi Bas, that seems to be broken since https://issues.apache.org/jira/browse/WICKET-6703 The JS is correctly collected by PartialPageUpdate, but then sent through the response decorators once again, thus being wrap

Re: How to use the JavaScriptDeferHeaderResponse correctly?

2022-02-01 Thread Sven Meier
Sven On 01.02.22 16:28, Sven Meier wrote: Hi Bas, your attachment didn't make it through the mailing list. Can you point me to where I can download it from? Thanks Sven On 31.01.22 14:51, Bas Gooren wrote: Hi, We are experimenting with the JavaScriptDeferHeaderResponse, but out of the box

Re: How to use the JavaScriptDeferHeaderResponse correctly?

2022-02-01 Thread Sven Meier
Hi Bas, your attachment didn't make it through the mailing list. Can you point me to where I can download it from? Thanks Sven On 31.01.22 14:51, Bas Gooren wrote: Hi, We are experimenting with the JavaScriptDeferHeaderResponse, but out of the box it doesn’t work correctly for us. We

Re: RequestLogger - Different Page Memory Addresses

2022-01-31 Thread Sven Meier
. This is expected when sessions are serialized/deserialized - usually when the container decides to do so. In your case it's a side effect of the request logger doing it. Have fun Sven On 31.01.22 19:41, Drummer, Matthias wrote: Hello all, I stumbled across the following issue

Re: initialializers documentation

2022-01-19 Thread Sven Meier
Hi Ernesto, yes, that is outdated, see     https://issues.apache.org/jira/browse/WICKET-5997 Sven On 19.01.22 16:10, Ernesto Reinaldo Barreiro wrote: Hi, A colleague pointed me to https://nightlies.apache.org/wicket/guide/9.x/single.html#_initializers and remarked that we are using them

Re: [DISCUSSION] drop wicketstuff-jwicket-ui*

2022-01-11 Thread Sven Meier
+1 for dropping them Sven Am 12. Januar 2022 07:29:19 MEZ schrieb Martin Grigorov : >+1 to drop them ! > >On Wed, Jan 12, 2022 at 8:19 AM Maxim Solodovnik >wrote: > >> Hello All, >> >> I've just noticed: >> >> wicketstuff-jwicket-ui-datepicker

Re: exception in windows while using FilePageStore

2021-11-18 Thread Sven Meier
Hi Ernesto, I've tested FilePageStore without TRUNCATE_EXISTING - in that case the file will not shrink, when the page has reduced its size. Luckily this doesn't disturb Java's default deserialization, the excess is just ignored. But what if a project uses another serializer? Regards Sven

Re: exception in windows while using FilePageStore

2021-11-16 Thread Sven Meier
class is guaranteed to be consistent with other views of the same file provided by other instances in the same program." This sounds related though: https://stackoverflow.com/questions/45441249/why-does-java-filechannel-truncate-fail-predictably-on-windows-only Regards Sven On 16.11.21 19:5

Re: exception in windows while using FilePageStore

2021-11-16 Thread Sven Meier
Hi Ernesto, maybe an issue with concurrent file writes? I've tested the new FilePageStore on Linux only, and as it seems I didn't add any synchronization to it. Could you try out FilePageStoreTest? Regards Sven On 16.11.21 16:18, Ernesto Reinaldo Barreiro wrote: Hi, We are trying to use

Re: migration from wicket 8 to 9 -> PageManagerProvider

2021-11-11 Thread Sven Meier
Indeed, flush-before-detach (WICKET-6831) was a huge performance improvement. Sven On 11.11.21 08:55, Korbinian Bachl wrote: Hi Sven, thanks a lot! I've looked into that GaePageManagerProvider and adapted it myself. However, during test I somehow observed that the reason why I did use

Re: migration from wicket 8 to 9 -> PageManagerProvider

2021-11-10 Thread Sven Meier
ent/gae-initializer/src/main/java/org/wicketstuff/gae/GaePageManagerProvider.java InsessionPageStore has a maxBytes constructor too. Watch out for the override of the #getKey() method - I'm not happy with that, but your question triggers me to look into that once again. Have fun Sven On 10.11.21

Re: wicket clickable image with tooltips map

2021-11-03 Thread Sven Meier
in an instance variable (non-transient) - have an AjaxEventBehavior("load") on the image, which re-renders the refreshingView and updates the area with the kept ChartRenderingInfo Have fun Sven On 03.11.21 18:38, C.S. wrote: Dear wicket developers, i try to integrate wicket with jfreecha

Re: Possible bug / edge case found where page is not detached

2021-07-24 Thread Sven Meier
Hi Bas, that sounds like a bug. Your quickstart didn't make it through the mailing list, would you please attach it to a new Jira issue? Thanks Sven Am 23. Juli 2021 19:30:46 MESZ schrieb Bas Gooren : >Hi all, > >Today I spent the better part of my day investigating a bug report &

Re: ComponentNotFoundException during concurrent requests to the same page ?

2021-07-22 Thread Sven Meier
g ajax with non-ajax inside repeaters) it's better to use bookmarkable links inside the table - I assume these respond with some kind of detail page anyways. Hope this helps Sven Am 22. Juli 2021 11:15:51 MESZ schrieb Tobias Gierke : >Hi, > >I'm currently investigating

Re: RestartResponseException ajaxbutton

2021-07-21 Thread Sven Meier
why you are using UnVersionedUrlMapper or where it is coming from, so I cannot comment on it. Your usage of RestartResponseException seems correct. Best regards Sven On 20.07.21 14:35, Francois Meillet wrote: I have two pages (identical) called PageOne and PageTwo, each with a form,

Re: pass error in submit method

2021-07-02 Thread Sven Meier
Hi, sorry, IPageRequestHandler#getPage() is new in Wicket 9.x: https://github.com/apache/wicket/blob/0c747f494d0dacc0255a2162bee559c57719f0fb/wicket-core/src/main/java/org/apache/wicket/core/request/handler/IPageRequestHandler.java#L67 You can copy that method. Have fun Sven On 02.07.21 13

Re: pass error in submit method

2021-06-29 Thread Sven Meier
;        }         }); Hope this helps Sven On 29.06.21 18:41, vahid ghasemi wrote: thanks again for answering my questions. can you send me some examples of this concept? (IRequestCycleListener#onException()) just I want to know more about that. On Tue, Jun 29, 2021 at 8:32 PM Sven Meier wrote: Hi, you

Re: pass error in submit method

2021-06-29 Thread Sven Meier
Hi, you could use a FormValidator. Or let your onSubmit() (or any code it forwards to) throw exceptions and register an IRequestCycleListener#onException() to handle exceptions during form submit. Have fun Sven On 29.06.21 17:51, vahid ghasemi wrote: I want to add form data

Re: reset form

2021-06-29 Thread Sven Meier
Hi, you have to call #setDefaultFormProcessing(false). Have fun Sven On 29.06.21 09:46, vahid ghasemi wrote: Hello guys. I have a form that has two buttons (Submit, Reset) and my form is CompoundPropertiesModel. The type of these buttons are AjaxButtons. but Reset only works when the form

Re: Strange outcome - setRequired with OnChangeBehavior

2021-06-22 Thread Sven Meier
, you have to override #onError too. Best regards Sven On 22.06.21 16:25, Mihir Chhaya wrote: Hello Wicket Wizards, I am experiencing this strange behavior with the *CompoundPropertyModel form, a required text field, and the OnChangeBehavior added to the text field*. *Apache Wicket Versi

Re: CompoundPropertyModel - white space

2021-06-08 Thread Sven Meier
imInput if you want to keep the whitespace. Have fun Sven On 08.06.21 21:05, Mihir Chhaya wrote: Hello, Apache Wicket version used: 8.12.0 I need to show total characters entered into First, Middle and Last name text fields + one drop down for Suffix. The combined length of these four fields s

Re: using web sockets push to repaint parts of UI (wicket 9.3.0)

2021-05-19 Thread Sven Meier
Hi Ernesto, have you compared with Wicket's websocket example? Check what thread is locking your page - do you have ExceptionSettings#ThreadDumpStrategy set to THREAD_HOLDING_LOCK or ALL_THREADS? Regards Sven On 19.05.21 19:14, Ernesto Reinaldo Barreiro wrote: Hi, Context: we are trying

Re: Ajax debug window missing in Wicket 9

2021-04-07 Thread Sven Meier
Hi, that setting is still used - it controls whether Ajax log messages end up in the console at all. Have fun Sven Am 7. April 2021 18:29:19 MESZ schrieb Bergmann Manfred : >Yep, that’s OK. > >But shouldn’t the settings also be gone? > > > >Manfred > > >> Am

Re: Ajax debug window missing in Wicket 9

2021-04-07 Thread Sven Meier
Yes, it was deemed superfluous:     https://issues.apache.org/jira/browse/WICKET-6667 Use you favorite browser's JS console instead. Best regards Sven On 07.04.21 16:15, Ernesto Reinaldo Barreiro wrote: It is gone there AFAIK. On Wed, Apr 7, 2021 at 5:11 PM Bergmann Manfred wrote: Hi

Re: Replacement for HttpSessionDataStore

2021-04-01 Thread Sven Meier
= new SerializingPageStore(store) store = new CachingPageStore(store, new InMemoryPageStore("ui", 5)) store = new RequestPageStore(store) new PageManager(store) Hope this helps Sven On 01.04.21 16:44, Bergmann Manfred wrote: OK, got it. A sequence of this: var store: IPageS

Re: Replacement for HttpSessionDataStore

2021-04-01 Thread Sven Meier
Hi Manfred, yes, you should use InSessionPageStore as a replacement. >but that doesn’t seem to do the same as HttpSessionDataStore Please be more specific, in what way does it differ? Pages are kept in the session, there's not difference there. Regards Sven On 01.04.21 15:27, Bergm

Re: Extend session metadata with user-data-scope after login (spring question)

2021-03-07 Thread Sven Meier
= "userScopeFinder") private IUserScopeFinder userScopeFinder; Hope this helps Sven On 07.03.21 09:58, Per Newgro wrote: Hi, i would like to extend a session (metadata) with scope of user logged in. Something like "allowed countries", "allowed companies" and

Re: Escaping Braces in StringResourceModel

2021-02-15 Thread Sven Meier
as you want to. I'd recommend you use standard Wicket properties instead, e.g. "{div} This is a ${day} day. {/div}' I've used markdown in labels for several of my projects: https://www.markdownguide.org/basic-syntax Best regards Sven On 15.02.21 08:37, Johannes Renoth wrote: Hello, Recen

Re: Checking preconditions/changes in models

2021-02-02 Thread Sven Meier
ent. Regretfully I don't have any code for that available any longer :( Have fun Sven On 29.01.21 14:55, Bas Gooren wrote: Hi Sven, Thank you for explaining in detail, it helps a lot :-) Part of your steps I have already implemented, but I never thought about marking optional components or rely

Re: Wicket 9 clustered sessions

2021-01-20 Thread Sven Meier
m/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/DefaultPageManagerProvider.java#L43 I'm not sure which concrete combination would be *the* most appropriate for clustering. Have fun Sven On 20.01.21 18:34, Greb Lindqvist wrote: Overriding #newPersistentStore() should be eno

Re: Checking preconditions/changes in models

2021-01-20 Thread Sven Meier
ect the stacktrace as last resort - re-render the page and show a feedback message Regards Sven On 20.01.21 09:18, Bas Gooren wrote: Hi Sven, Thank you for your reply. On catching failure “when it happens”: can you explain what that looks like for you? E.g. do you handle exceptions within the model its

Re: Wicket 9 clustered sessions

2021-01-19 Thread Sven Meier
ike below. Is that > a good replacement for my Wicket 8 code? Overriding #newPersistentStore() should be enough:   @Override protected IPageStore newPersistentStore() { return new InSessionPageStore(20); } >Wicket alive and well! I've been using it since 1.3 :) Thanks for reporting back

Re: Checking preconditions/changes in models

2021-01-14 Thread Sven Meier
), but maybe not a suitable approach for all kind of applications. Regards Sven On 12.01.21 14:37, Bas Gooren wrote: Hi all, First off: best wishes to everyone for 2021, and that we may all have fun this year building stuff in Wicket! I’m wondering how others implement the following requirement

Re: Issue overriding JSession cookie name - Wicket assumes overwritten name contains no uppercase characters

2020-12-09 Thread Sven Meier
Thanks! Sven Am 9. Dezember 2020 16:24:53 MEZ schrieb Martin Grigorov : >https://issues.apache.org/jira/browse/WICKET-6858 > >On Tue, Dec 8, 2020 at 11:19 AM Sven Meier wrote: > >> Hi Chris, >> >> that #toLowerCase() has been introduced with WICKET-4816. >

Re: Issue overriding JSession cookie name - Wicket assumes overwritten name contains no uppercase characters

2020-12-08 Thread Sven Meier
-2eff23be497b622b61b1181a1a97d8dcd70143cde2f14d644df573b3ecf7b5f5 So this has probably been just an unnecessary precaution. Please open an issue. Thanks Sven On 08.12.20 08:48, Chris Colman wrote: Tomcat, and presumably other JEE app containers, now allow the specification of the name of the JSESSIONID

Re: Under certain circumstances, prevent the replacement of markup after a successful Ajax response

2020-10-21 Thread Sven Meier
Hi, By inactivity, I could also only refresh only the info box without the form that's the correct solution. Updating a text component (or its parent) via Ajax while it has focus will lead to jumping cursors and/or lost user input. Have fun Sven On 21.10.20 09:35, Holzmueller wrote

Re: Under certain circumstances, prevent the replacement of markup after a successful Ajax response

2020-10-20 Thread Sven Meier
could be changed during the delay between request and response. I don't see a solution how you could change .wr dynamically, since no event is published before handling of the Ajax response. What's your use-case? Have fun Sven On 20.10.20 17:57, Holzmueller wrote: Hi everyone, I've a question

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-19 Thread Sven Meier
+1 that's a good proposal Sven On 19.10.20 12:33, Maxim Solodovnik wrote: +1 On Mon, 19 Oct 2020 at 17:28, Martin Grigorov wrote: Hi Eric, You can implement it yourself: In #onUpdate(AjaxRequestTarget) start with: AjaxRequestAttributes attrs = getAttributes(); String desiredMethod

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-18 Thread Sven Meier
Hi, with AjaxFormComponentUpdatingBehavior only a single component is processed and not the complete Form. So method mismatches are not checked. Have fun Sven On 17.10.20 14:34, Eric Hamel wrote: Looking at our implementation, we are using an AjaxFormComponentUpdatingBehavior to trigger

Re: Does wicket 9 support reactive programming?

2020-09-18 Thread Sven Meier
That would be a nice addition to wicketstuff. Please keep us updated on how you solved it. Have fun Sven On 18.09.20 11:02, Emmanuel Sowah wrote: Hi Korbinian, Thanks for the quick response. I will look into the native websockets option and see if I can work something out. It would be nicer

Re: Component.getPage() and Exception Handling

2020-08-24 Thread Sven Meier
Hi, I didn't understand what's your problem. Sven On 24.08.20 16:56, Daniel Weiss wrote: Hello all, I don't like the exception handling of Component.getPage(). We are working on the integration to Wicket 8.4. We use panels or dialogs as anonymous classes / instances and this feature

Re: AbstractTransformerBehavior prevents further rendering.

2020-08-18 Thread Sven Meier
I haven't tried it, but using two of these seems not to work. I never seen the need for this though. Have fun Sven On 18.08.20 14:38, Thorsten Schöning wrote: Guten Tag Sven Meier, am Dienstag, 18. August 2020 um 08:50 schrieben Sie: sorry I missed that: on first sight it seems to w

Re: Sub: HSTS filter

2020-08-18 Thread Sven Meier
Hi, are these headers preserved on other dynamic content, e.g. a servlet or jsp? Or are they missing from Wicket generated content only? Have fun Sven On 18.08.20 08:27, sundar saba wrote: Hi all, I deploy wicket quick start application in tomcat and run in https. I enabled HSTS

Re: AbstractTransformerBehavior prevents further rendering.

2020-08-18 Thread Sven Meier
Hi, sorry I missed that: on first sight it seems to work with a single transformer only. Better you combined both your behaviors into one. Have fun Sven On 18.08.20 08:11, Thorsten Schöning wrote: Guten Tag Sven Meier, am Montag, 17. August 2020 um 20:34 schrieben Sie: please create

Re: AbstractTransformerBehavior prevents further rendering.

2020-08-17 Thread Sven Meier
Hi Thorsten, please create a quickstart, without debugging I cannot pinpoint the problem. Have fun Sven On 17.08.20 19:52, Thorsten Schöning wrote: Hi all, I'm using Wicket as a renderer for HTML-reports WITHOUT browser, web server or requests, only by using ComponentRenderer. There are two

Re: Wizard - showing Modal on "next" button

2020-07-16 Thread Sven Meier
nstead. Have fun Sven On 15.07.20 16:14, Leonardo D'Alimonte wrote: Hello, I'm writing a Wizard with some steps inside which the user must follow. I wonder if there's the chance to display a modal window with a warning message when the user clicks the "Next" button, in order to

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

Re: one pass render, mounted page back button

2020-06-24 Thread Sven Meier
. Have fun Sven On 24.06.20 17:12, Rob Audenaerde wrote: Hi all, We switched our app to use the renderstategy ONE_PASS_RENDER for SEO reasons (reduce the number of redirects). However, this causes the back-button to behave differently. Before, when we update a part of the screen via ajax

Re: Stateless page with AjaxSelfUpdatingTimerBehavior

2020-06-23 Thread Sven Meier
component) {                 return true;             }         }); Note that you have to use a stable markup id for the component, otherwise it cannot be updated. Have fun Sven On 23.06.20 17:21, Zbynek Vavros wrote: Hi, We have a page with AjaxSelfUpdatingTimerBehavior and now one of our

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
+1 that should have no negative impact Sven On 01.06.20 11:22, Martin Grigorov wrote: 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

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
ath);     formTester.submit() ... Executing a request (e.g. via executeAjaxEvent) 'consumes' the current request and WicketTester sets up a new 'empty' request. A new FormTester will fill the parameters of that new request with the current state of your components. Hope this helps Sven

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 { setObjectObject

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 wic

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

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

2020-04-24 Thread Sven Meier
GET request with query parameters. Form inputs should be able to pick up the values from the query parameters. Maybe the problem is related to the cryptoMapper? Could you disable it for a test? Have fun Sven On 24.04.20 17:43, Igor Khvostenkov wrote: Hi Sven, Yes exactly, but in fact

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

2020-04-24 Thread Sven Meier
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 parameters. So what is your actual problem? Have fun Sven On 24.04.20 11:34, Igor Khvostenkov wrote:

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

2020-04-23 Thread Sven Meier
Hi Igor, so you think the "post" is redirected to a "get"? Why should that be the case? Who issues this redirect? Best regards Sven On 23.04.20 22:37, Igor Khvostenkov wrote: Hi Sven, Thank you for your reply. I did some deep investigation in the problem and t

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 pro

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-15 Thread Sven Meier
. Have fun Sven On 12.04.20 20:41, Thomas Heigl wrote: Hi Sven, I was thinking about this as well. SoftReferences worked well in my application. G1GC seems to start to evict them when -XX:InitiatingHeapOccupancyPercent is reached. In my case, when the heap is around 60% full. But as you said

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-12 Thread Sven Meier
     */     protected Map newMemoryMap()     {         return new ConcurrentHashMap<>();     } (Yes, it would be called from the constructor which is a bad practice by itself, but this is the simplest solution.) What do you think? Sven On 12.04.20 10:34, Thomas Heigl wrote: Hi Sven,

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-11 Thread Sven Meier
testing. Best regards Sven On 11.04.20 10:58, Thomas Heigl wrote: Hi all, Bad news. My application was caught in a GC loop after running for 8 hours. The old generation was exhausted. I couldn't get a heap dump at that time but restarted the application, took a heap dump after about an hour

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
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, 8 Apr 2020 at 14:36, Thomas Heigl wrote: Hi

Re: Equivalent for PerSessionPageStore in Wicket 9

2020-04-07 Thread Sven Meier
Hi Thomas, yes, you're right: wicketstuff data stores missed some adjustments to the latest updates in wicket-core. And SessionQuotaManagingDataStore$DelegatedPage must be serializable of course. I've pushed changes to wicketstuff master. Thanks Sven On 07.04.20 14:14, Thomas Heigl

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

2020-04-05 Thread Sven Meier
Hi, actually it's not that common, in wicket-core and -extensions this pattern is used 9 times only. When the RequestCycle API emerged, we decided against a specific method and chose a generic one with parameter instead. Have fun Sven On 05.04.20 08:47, Vit Rozkovec wrote: Hi, this seems

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 h

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

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

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
or similar can help you with that. Have fun Sven On 01.04.20 11:35, Sretan wrote: Hello, I have one TextField and one DropDownList. When i enter example '1' in the TextField and after that click on the DropDownList, DropDownList is opened and at the same time is updated from the server (because

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: http://apache-wicket.1842946.n4

  1   2   3   4   5   6   7   8   9   10   >