Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Francesco Chicchiriccò
I have spent some time investigating this issue, and I have finally found that the actual problem lies at https://github.com/apache/syncope/blob/SYNCOPE-1323/client/console/src/main/java/org/apache/syncope/client/console/wizards/AjaxWizard.java#L198 e.g.

Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Martin Grigorov
I guess those two should really use Optional.ofNullable(): https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java#L886-L892 On Wed, Jun 13, 2018 at 2:33 PM Francesco Chicchiriccò wrote: > I have spent some time investigating this

Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Sven Meier
@Martin The result is garantueed to be non-null in these lines, how should ofNullable() make any difference? @Francesco FormTester submits via Ajax request only in case of an AjaxButton or AjaxSubmitLink, which ist not the case with AjaxButtonBar. As fallback the whole form is submitted

Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Sven Meier
Hi, minor correction: If no an AjaxButton or AjaxSubmitLink, FormTester submits the button via a non-Ajax request. Thus no AjaxRequestTarget can be  found. Have fun Sven Am 13.06.2018 um 18:58 schrieb Sven Meier: @Martin The result is garantueed to be non-null in these lines, how should

Paths not serializable

2018-06-13 Thread sorinev
I created a quickstart for this, but I imagine you're long since aware of it. But, what am I supposed to do about sun.nio.fs.UnixPath throwing a java.io.NotSerializableException (passed in to FileSystemResourceReference)? The page still works, but the server log gets really nasty, really quick,

Re: Paths not serializable

2018-06-13 Thread Sven Meier
Hi, create your FileSystemResourceReference without the path argument and override #getResource():     @Override     public IResource getResource()     {         return new FileSystemResource(/* --- create a path --- */);     } Have fun Sven Am 13.06.2018 um 21:48 schrieb sorinev: I

Re: Paths not serializable

2018-06-13 Thread sorinev
Perfect, that worked. What's the side effect of this vs the other way, if any? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Martin Grigorov
On Wed, Jun 13, 2018 at 7:59 PM Sven Meier wrote: > @Martin The result is garantueed to be non-null in these lines, how should > ofNullable() make any difference? > Right! Just checked that Class.isInstance(null) would return false. The problem is in AjaxFallbackButton methods.

Re: Paths not serializable

2018-06-13 Thread Martin Grigorov
With WICKET-6504 we improved FileSystemResource to use LoadableDetachableModel instead of just path. Maybe the same should be done for the ResourceReference too ? On Thu, Jun 14, 2018 at 4:24 AM Maxim Solodovnik wrote: > You can have String path (instead of Path path) > And it will works as

Re: FormTester, FinishButton and Wicket 8.0

2018-06-13 Thread Martin Grigorov
On Thu, Jun 14, 2018 at 8:40 AM Martin Grigorov wrote: > > > On Wed, Jun 13, 2018 at 7:59 PM Sven Meier wrote: > >> @Martin The result is garantueed to be non-null in these lines, how >> should ofNullable() make any difference? >> > > Right! Just checked that Class.isInstance(null) would return

Re: Paths not serializable

2018-06-13 Thread Maxim Solodovnik
You can have String path (instead of Path path) And it will works as expected :) WBR, Maxim (from mobile, sorry for the typos) On Thu, Jun 14, 2018, 04:23 sorinev wrote: > Perfect, that worked. What's the side effect of this vs the other way, if > any? > > -- > Sent from: >