Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Martin Grigorov
Wicket Bootstrap 0.10.18 has been released!

On Mon, Dec 3, 2018 at 3:33 PM Francesco Chicchiriccò 
wrote:

> On 2018/12/03 13:29:37, Martin Grigorov  wrote:
> > Yes,
> >
> > I will do it later today!
>
> Great, thank you.
>
> > On Mon, Dec 3, 2018 at 3:25 PM Francesco Chicchiriccò <
> ilgro...@apache.org>
> > wrote:
> >
> > > On 2018/12/03 13:08:26, Martin Grigorov  wrote:
> > > > Check whether there is only one version of Wicket in your classpath,
> > > maybe
> > > > some dependency (like Wicket-Bootstrap) brings something else than
> 7.11.0
> > > > in the classpath.
> > >
> > > Nice catch Martin, that was it.
> > >
> > > For the moment, I'll exclude as follows:
> > >
> > >   
> > > de.agilecoders.wicket
> > > wicket-bootstrap-core
> > > ${wicket-bootstrap.version}
> > > 
> > >   
> > > org.apache.wicket
> > > wicket-request
> > >   
> > >   
> > > org.apache.wicket
> > > wicket-util
> > >   
> > > 
> > >   
> > >
> > > Is there any wicket-bootstrap release planned anytime soon, which
> depends
> > > on Wicket 7.11.0? Thanks.
> > >
> > > > On Mon, Dec 3, 2018 at 3:06 PM Francesco Chicchiriccò <
> > > ilgro...@apache.org>
> > > > wrote:
> > > >
> > > > > On 2018/12/03 12:57:00, Maxim Solodovnik 
> wrote:
> > > > > > The method is here
> > > > > >
> > > > >
> > >
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> > > > > > In all branches ...
> > > > >
> > > > > ..so my JDK must be lying? :-)
> > > > >
> > > > > > On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò <
> > > ilgro...@apache.org
> > > > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Hi all,
> > > > > > > after upgrading from 7.10.0 to 7.11.0, I receive the following
> > > > > exception
> > > > > > > when executing tests via Wicket Tester:
> > > > > > >
> > > > > > > java.lang.NoSuchMethodError:
> > > > > > > org.apache.wicket.request.Url.setContextRelative(Z)V
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> > > > > > >
> > > > > > > Any clue?
> > > > > > >
> > > > > > > TIA
> > > > > > > Regards.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket and Jersey Integration

2018-12-03 Thread Илья Нарыжный
Martin,

Thank you - we were considering this library previously, but it's not
JAX-RS compatible and don't have cool features for security/marshaling/etc.
And that's why we used Jersey.
But this time needed integration is so deep, so we can't keep 2 these
components separately.

Ernesto,

Yes - I think that mounting and embedding should help here a lot.

Btw, here is first working version:
https://github.com/OrienteerBAP/wicket-jersey. So it's possible to mount
JAX-RS applications and use them from Wicket. You can check tests and mock
jax-rs resources.

Have related question:
IRequestMapper has getCompatibilityScore() to find proper mapper for a
request. But is there some good way to go ahead with next IRequestMapper if
first one after scoring do return 404?

Thanks,
Ilia

-
Orienteer(http://orienteer.org) - open source Business Application Platform

On Sun, Dec 2, 2018 at 11:45 PM Martin Grigorov 
wrote:

> You can also take a look at
>
> https://github.com/wicketstuff/core/tree/master/wicketstuff-restannotations-parent
> It provides an implementation of JAX-RS based on Wicket IResource
>
> On Mon, Dec 3, 2018 at 9:29 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Ilia,
> >
> > Ok. Them "mounting" JERSEY as a wicket "resource" might be a solution?
> >
> > On Mon, Dec 3, 2018 at 7:22 AM Илья Нарыжный  wrote:
> >
> > > Ernesto,
> > >
> > > WicketSessionFilter is cool workaround for most of cases, but in our
> case
> > > we need deeper integration. For example to have the same security model
> > for
> > > wicket pages and rests.
> > > Apparently, Jersey is not complex to integrate with. I already have
> more
> > or
> > > less working implementation of working Jersey under Wicket.
> > >
> > > Thanks,
> > > Ilia
> > >
> > > -
> > > Orienteer(http://orienteer.org) - open source Business Application
> > > Platform
> > >
> > > On Sun, Dec 2, 2018 at 10:16 PM Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Hi Ilia,
> > > >
> > > > If WicketSessionFilter not enough for your needs? It is a filter you
> > can
> > > > put in front of JERSEY and you will have some wicket related things.
> > > >
> > > > On Sun, Dec 2, 2018 at 6:50 PM Илья Нарыжный  wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > I know that story of wicket and different jax-rs containers is
> pretty
> > > > long.
> > > > > Currently we are using Jersey as a servlet under wicket filter, but
> > we
> > > > > don't like that in this case REST end-points have nothing about
> > Wicket:
> > > > no
> > > > > wicket session available, no wicket request cycle listeners
> executed
> > > and
> > > > > etc.
> > > > > There is an idea to implement IRequestHandler which will handle as
> > > Jersey
> > > > > Container. So it will be executed under wicket umbrella.
> > > > >
> > > > > Questions:
> > > > > 1) What do you think about this?
> > > > > 2) Is there some existing implementation of what I'm talking about?
> > > > >
> > > > > Please reply also even in a case if you interested in this library.
> > It
> > > > will
> > > > > help me to understand: does it worst to make this integration as a
> > > > separate
> > > > > library or we can embed into our code within Orienteer.
> > > > >
> > > > > Thanks,
> > > > > Ilia
> > > > >
> > > > > -
> > > > > Orienteer(http://orienteer.org) - open source Business Application
> > > > > Platform
> > > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread Tobias Soloschenko
Please have a look at the javascript console of the browser (if there are any 
errors) and if the CSS files / JS files are present on your site. There were no 
recent changes and the files are within the code base of wicket bootstrap as I 
remember correctly.

kind regards

Tobias

> Am 03.12.2018 um 23:01 schrieb dylanbozeman :
> 
> I meant on my own site. I've got summernote and Wicket bootstrap but for some
> reason the WYSIWYG isn't displaying. Just the TextArea is showing up. 
> 
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread dylanbozeman
I meant on my own site. I've got summernote and Wicket bootstrap but for some
reason the WYSIWYG isn't displaying. Just the TextArea is showing up. 

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread Tobias Soloschenko
Hello,

for me it is showing up:

https://wb7.teliclab.info/summernote

You have to use Wicket bootstrap and summernote.

kind regards

Tobias

> Am 03.12.2018 um 19:28 schrieb dylanbozeman :
> 
> Any idea why when I implement the code you provided there I don't get the
> summernote Editor displaying?
> 
> Page loads find, TextArea component is showing up, but the summernote Editor
> just isn't there...
> 
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread dylanbozeman
Any idea why when I implement the code you provided there I don't get the
summernote Editor displaying?

Page loads find, TextArea component is showing up, but the summernote Editor
just isn't there...

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread dylanbozeman
Thank you. I'll look into these.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using the summernote rich text editor with Wicket

2018-12-03 Thread Francois Meillet
Hi Dylan,

Have a look at 
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/wicket-7.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SummernotePage.java
 

and 
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/wicket-7.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SummernotePage.html
 


François



> Le 3 déc. 2018 à 16:43, dylanbozeman  a écrit :
> 
> I am fairly new to Wicket and attempting to integrate summernote from
> bootstrap seen here:
> 
> http://coding.teliclab.info/wicket-7.x/summernote
> 
> I can't find anywhere on this page where an example java code and html
> markup are shown. I'm pretty much in the dark as far as configuring it. Does
> anyone know where I can find code that demonstrates how to add the
> component?
> 
> Here's what I've got so far but it's not displaying properly:
>final SummernoteEditor summernoteEditor = new
> SummernoteEditor("summernoteEditor", new PropertyModel(this,
> "articleContent"), summernoteConfig);form.add(summernoteEditor);
> 
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



Using the summernote rich text editor with Wicket

2018-12-03 Thread dylanbozeman
I am fairly new to Wicket and attempting to integrate summernote from
bootstrap seen here:

http://coding.teliclab.info/wicket-7.x/summernote

I can't find anywhere on this page where an example java code and html
markup are shown. I'm pretty much in the dark as far as configuring it. Does
anyone know where I can find code that demonstrates how to add the
component?

Here's what I've got so far but it's not displaying properly:
final SummernoteEditor summernoteEditor = new
SummernoteEditor("summernoteEditor", new PropertyModel(this,
"articleContent"), summernoteConfig);form.add(summernoteEditor);

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Francesco Chicchiriccò
On 2018/12/03 13:29:37, Martin Grigorov  wrote: 
> Yes,
> 
> I will do it later today!

Great, thank you.

> On Mon, Dec 3, 2018 at 3:25 PM Francesco Chicchiriccò 
> wrote:
> 
> > On 2018/12/03 13:08:26, Martin Grigorov  wrote:
> > > Check whether there is only one version of Wicket in your classpath,
> > maybe
> > > some dependency (like Wicket-Bootstrap) brings something else than 7.11.0
> > > in the classpath.
> >
> > Nice catch Martin, that was it.
> >
> > For the moment, I'll exclude as follows:
> >
> >   
> > de.agilecoders.wicket
> > wicket-bootstrap-core
> > ${wicket-bootstrap.version}
> > 
> >   
> > org.apache.wicket
> > wicket-request
> >   
> >   
> > org.apache.wicket
> > wicket-util
> >   
> > 
> >   
> >
> > Is there any wicket-bootstrap release planned anytime soon, which depends
> > on Wicket 7.11.0? Thanks.
> >
> > > On Mon, Dec 3, 2018 at 3:06 PM Francesco Chicchiriccò <
> > ilgro...@apache.org>
> > > wrote:
> > >
> > > > On 2018/12/03 12:57:00, Maxim Solodovnik  wrote:
> > > > > The method is here
> > > > >
> > > >
> > https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> > > > > In all branches ...
> > > >
> > > > ..so my JDK must be lying? :-)
> > > >
> > > > > On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò <
> > ilgro...@apache.org
> > > > >
> > > > > wrote:
> > > > >
> > > > > > Hi all,
> > > > > > after upgrading from 7.10.0 to 7.11.0, I receive the following
> > > > exception
> > > > > > when executing tests via Wicket Tester:
> > > > > >
> > > > > > java.lang.NoSuchMethodError:
> > > > > > org.apache.wicket.request.Url.setContextRelative(Z)V
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > > > > > at
> > > > > >
> > > >
> > org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> > > > > >
> > > > > > Any clue?
> > > > > >
> > > > > > TIA
> > > > > > Regards.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Martin Grigorov
Yes,

I will do it later today!

On Mon, Dec 3, 2018 at 3:25 PM Francesco Chicchiriccò 
wrote:

> On 2018/12/03 13:08:26, Martin Grigorov  wrote:
> > Check whether there is only one version of Wicket in your classpath,
> maybe
> > some dependency (like Wicket-Bootstrap) brings something else than 7.11.0
> > in the classpath.
>
> Nice catch Martin, that was it.
>
> For the moment, I'll exclude as follows:
>
>   
> de.agilecoders.wicket
> wicket-bootstrap-core
> ${wicket-bootstrap.version}
> 
>   
> org.apache.wicket
> wicket-request
>   
>   
> org.apache.wicket
> wicket-util
>   
> 
>   
>
> Is there any wicket-bootstrap release planned anytime soon, which depends
> on Wicket 7.11.0? Thanks.
>
> > On Mon, Dec 3, 2018 at 3:06 PM Francesco Chicchiriccò <
> ilgro...@apache.org>
> > wrote:
> >
> > > On 2018/12/03 12:57:00, Maxim Solodovnik  wrote:
> > > > The method is here
> > > >
> > >
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> > > > In all branches ...
> > >
> > > ..so my JDK must be lying? :-)
> > >
> > > > On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò <
> ilgro...@apache.org
> > > >
> > > > wrote:
> > > >
> > > > > Hi all,
> > > > > after upgrading from 7.10.0 to 7.11.0, I receive the following
> > > exception
> > > > > when executing tests via Wicket Tester:
> > > > >
> > > > > java.lang.NoSuchMethodError:
> > > > > org.apache.wicket.request.Url.setContextRelative(Z)V
> > > > > at
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > > > > at
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > > > > at
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > > > > at
> > > > >
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > > > > at
> > > > >
> > >
> org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > > > > at
> > > > >
> > >
> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> > > > >
> > > > > Any clue?
> > > > >
> > > > > TIA
> > > > > Regards.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Francesco Chicchiriccò
On 2018/12/03 13:08:26, Martin Grigorov  wrote: 
> Check whether there is only one version of Wicket in your classpath, maybe
> some dependency (like Wicket-Bootstrap) brings something else than 7.11.0
> in the classpath.

Nice catch Martin, that was it.

For the moment, I'll exclude as follows:

  
de.agilecoders.wicket
wicket-bootstrap-core
${wicket-bootstrap.version}

  
org.apache.wicket
wicket-request
  
  
org.apache.wicket
wicket-util
  

  

Is there any wicket-bootstrap release planned anytime soon, which depends on 
Wicket 7.11.0? Thanks.

> On Mon, Dec 3, 2018 at 3:06 PM Francesco Chicchiriccò 
> wrote:
> 
> > On 2018/12/03 12:57:00, Maxim Solodovnik  wrote:
> > > The method is here
> > >
> > https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> > > In all branches ...
> >
> > ..so my JDK must be lying? :-)
> >
> > > On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò  > >
> > > wrote:
> > >
> > > > Hi all,
> > > > after upgrading from 7.10.0 to 7.11.0, I receive the following
> > exception
> > > > when executing tests via Wicket Tester:
> > > >
> > > > java.lang.NoSuchMethodError:
> > > > org.apache.wicket.request.Url.setContextRelative(Z)V
> > > > at
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > > > at
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > > > at
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > > > at
> > > >
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > > > at
> > > >
> > org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > > > at
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > > > at
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > > > at
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > > > at
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > > > at
> > > >
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > > > at
> > > >
> > org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> > > >
> > > > Any clue?
> > > >
> > > > TIA
> > > > Regards.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Martin Grigorov
Check whether there is only one version of Wicket in your classpath, maybe
some dependency (like Wicket-Bootstrap) brings something else than 7.11.0
in the classpath.

On Mon, Dec 3, 2018 at 3:06 PM Francesco Chicchiriccò 
wrote:

> On 2018/12/03 12:57:00, Maxim Solodovnik  wrote:
> > The method is here
> >
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> > In all branches ...
>
> ..so my JDK must be lying? :-)
>
> > On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò  >
> > wrote:
> >
> > > Hi all,
> > > after upgrading from 7.10.0 to 7.11.0, I receive the following
> exception
> > > when executing tests via Wicket Tester:
> > >
> > > java.lang.NoSuchMethodError:
> > > org.apache.wicket.request.Url.setContextRelative(Z)V
> > > at
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > > at
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > > at
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > > at
> > >
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > > at
> > >
> org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > > at
> > >
> org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > > at
> > >
> org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > > at
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > > at
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > > at
> > >
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > > at
> > >
> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> > >
> > > Any clue?
> > >
> > > TIA
> > > Regards.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Francesco Chicchiriccò
On 2018/12/03 12:57:00, Maxim Solodovnik  wrote: 
> The method is here
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
> In all branches ...

..so my JDK must be lying? :-)

> On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò 
> wrote:
> 
> > Hi all,
> > after upgrading from 7.10.0 to 7.11.0, I receive the following exception
> > when executing tests via Wicket Tester:
> >
> > java.lang.NoSuchMethodError:
> > org.apache.wicket.request.Url.setContextRelative(Z)V
> > at
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> > at
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> > at
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> > at
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> > at
> > org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> > at
> > org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> > at
> > org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> > at
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> > at
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> > at
> > org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> > at
> > org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
> >
> > Any clue?
> >
> > TIA
> > Regards.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: 7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Maxim Solodovnik
The method is here
https://github.com/apache/wicket/blob/wicket-7.x/wicket-request/src/main/java/org/apache/wicket/request/Url.java#L1123
In all branches ...

On Mon, 3 Dec 2018 at 19:50, Francesco Chicchiriccò 
wrote:

> Hi all,
> after upgrading from 7.10.0 to 7.11.0, I receive the following exception
> when executing tests via Wicket Tester:
>
> java.lang.NoSuchMethodError:
> org.apache.wicket.request.Url.setContextRelative(Z)V
> at
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
> at
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
> at
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
> at
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
> at
> org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
> at
> org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
> at
> org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
> at
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
> at
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
> at
> org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
> at
> org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)
>
> Any clue?
>
> TIA
> Regards.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
WBR
Maxim aka solomax


7.10.0 -> 7.11.0 error with WicketTester

2018-12-03 Thread Francesco Chicchiriccò
Hi all,
after upgrading from 7.10.0 to 7.11.0, I receive the following exception when 
executing tests via Wicket Tester:

java.lang.NoSuchMethodError: 
org.apache.wicket.request.Url.setContextRelative(Z)V
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.setParameters(ServletWebRequest.java:173)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:209)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:112)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.(ServletWebRequest.java:82)
at 
org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:560)
at 
org.apache.wicket.util.tester.BaseWicketTester.newServletWebRequest(BaseWicketTester.java:534)
at 
org.apache.wicket.util.tester.BaseWicketTester.setupNextRequestCycle(BaseWicketTester.java:474)
at 
org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:372)
at 
org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:267)
at 
org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:240)
at 
org.apache.wicket.util.tester.WicketTester.(WicketTester.java:203)

Any clue? 

TIA
Regards.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)

2018-12-03 Thread nino martinez wael
I've debugged a lot further. But still unable to pinpoint it.. For now I've
switched to rendering the full page instead, which of course works.

We are a couple of things in conjunction with TREE, like wicket jquery ui
draggable and droppable.. We also have a custom loading mechanism that pops
a veil if the request are too long to load.. And some custom form handling
aswell (auto show an marker for error'd form fields)..

PS writing this for other to see, if they hit  this challenge..

-Regards Nino


On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> currently unable to reproduce in examples, something must be wrong in my
> code..
>
> I'll comeback if it turns out otherwise..
>
> Thanks for helping :)
>
> On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> Yes I understand.. Let me see if it breaks in wicket examples, or I can
>> make it so.. Do you know another way to make a node/folder expand during
>> construction time? Feels like the expand method are meant for ajax calls
>> only.
>>
>> -regards Nino
>>
>> On Wed, Nov 28, 2018 at 4:16 PM sven  wrote:
>>
>>>
>>>
>>> Hi Nino,
>>>
>>>
>>>
>>> during rendering of components no additional components can be added to
>>> the ART any more.
>>>
>>> I surprised that your code worked in 6.x, can you build a quickstart
>>> demonstrating the problem?
>>>
>>>
>>>
>>> Have fun
>>>
>>> Sven
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >
>>> > On 28.11.2018 at 14:38,wrote:
>>> >
>>> >
>>> >  Hi In wicket 6 this worked, there are another input field (ajax
>>> activated) that triggers the update : ChildAwareNestedTree
>>> profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider,
>>> sharedExpansionState) { @Override protected Component
>>> newContentComponent(String id, IModel model) { TreeNode node =
>>> model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) {
>>> Partition partition = ((TreeNodeProvider.PartitionNode)
>>> node).getPartition(); if
>>> (getPartitionsWithProfiles().containsKey(partition.getId())) {*
>>> expand(node);* } } else if (node instanceof
>>> TreeNodeProvider.NoPartitionNode  &&  isNoPartitionProfilesPresent()) {*
>>> expand(node);* } } The triggering field: searchTerm.add(new
>>> AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void
>>> onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() !=
>>> null  &&  !searchTermModel.getObject().isEmpty()) {
>>> profilePartitionTree.rebuildExpandedPartitions(); } else {
>>> profilePartitionTree.getP
>>> artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);* }
>>> @Override protected void updateAjaxAttributes(AjaxRequestAttributes
>>> attributes) { super.updateAjaxAttributes(attributes);
>>> attributes.setThrottlingSettings(new
>>> ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400),
>>> true)); } }); But I get an this error message in wicket 8, my line below:
>>> 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper
>>> | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred
>>> org.apache.wicket.WicketRuntimeException: Error attaching this container
>>> for rendering: [Subtree [Component id = subtree]] at
>>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0]
>>> at org.apache.wicket.MarkupContai
>>> ner.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01]
>>> at
>>> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialPageUpdate.java:322)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:250)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:162)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:384)[136:org.apache.wicket.core:8.1.0]
>>> at
>>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)[136:org.apa
>>> che.wicket.core:8.1.0] at
>>> org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)[139:org.apache.wicket.request:8.1.0]
>>> at
>>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)[136:org.apache.wicket.