Re: best way to get wysiwyg with wicket

2020-04-04 Thread Korbinian Bachl
Hello Maxim, thank you for the list. However, beside that tinymce3 + 4 are quite outdated isn't there anything non html-wysiwyg existing so far? My problem is that, after we use tinymce in another part of the project we made the experience that letting non-tech people write HTML (even in

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: Wizard vs WicketTester

2020-04-04 Thread Maxim Solodovnik
As usual everything works in test :( Going to check what is the difference Shall I commit basic test to master? On Sat, 4 Apr 2020 at 17:32, Sven Meier wrote: > Hi Maxim, > > > lastRendered page === 'null' after submit > > Maybe I'm doing something wrong? > > it seems so. Check the log

Re: Wizard vs WicketTester

2020-04-04 Thread Maxim Solodovnik
This is WebSocketAwareCsrfPreventionRequestCycleListener who is unhappy :( Thanks for the hint :)) On Sat, 4 Apr 2020 at 20:07, Maxim Solodovnik wrote: > As usual everything works in test :( > Going to check what is the difference > > Shall I commit basic test to master? > > On Sat, 4 Apr 2020

Re: best way to get wysiwyg with wicket

2020-04-04 Thread Maxim Solodovnik
Jquery-ui WYSIWYG editor do clean-up of html on server Custom js before submit is possible (the simpliest way is to store result of such function in hidden field onchange) On Sat, Apr 4, 2020, 16:00 Korbinian Bachl wrote: > Hello Maxim, > > thank you for the list. However, beside that tinymce3

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

2020-04-04 Thread Vilius Vaivada
Hey guys, I'm pretty sure I'm missing something obvious here, but I can't figure out a simple way for a component to contribute slightly different Javascript based on whether it's being rendered for a full page load or a partial Ajax response. Any clues? Thanks a lot!

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