Re: Replacement for IOnChangeListeer.INTERFACE

2018-09-29 Thread Sven Meier

Hi Manfred,

you probably already migrated from 
#wantOnSelectionChangedNotifications() to a FormComponentUpdatingBehavior.


So you have to use that behavior as a listener now:

tester.invokeListener(languageChoice.getBehaviors(FormComponentUpdatingBehavior.class).get(0));

Hope this helps
Sven

Am 29.09.2018 um 17:01 schrieb Manfred Bergmann:


Hi.

We’ve tested Ajax components by code like this in Wicket 7:

val languageChoice = 
tester.getComponentFromLastRenderedPage("languageChoice").asInstanceOf[DropDownChoice[Locale]]
tester.getRequest.getPostParameters.setParameterValue(languageChoice.getInputName, 
"0")
tester.invokeListener(languageChoice, IOnChangeListener.INTERFACE)
assert(testPage.getLocale == Locales.supportedLocales.head)


In Wicket 8, IOnChangeListener.INTERFACE is not available anymore.
What is the recommended equivalent for this test?



Regards,
Manfred





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



Re: WebSocket tests fail after migration to Wicket 8

2018-09-29 Thread Andrea Del Bene

Hi,

you probably found an issue with we recently fixed : 
https://issues.apache.org/jira/browse/WICKET-6588


Could you test your code using 8.2.0-SNAPSHOT version?

Thank you.


On 29/09/2018 16:58, Manfred Bergmann wrote:


Hi.

I’m using a WebSocket on a component of a page based on WebSocketBehavior.
It’s working fine when running the app.

But the tests of the Panel fail, in contrast to Wicket 7 with:

Caused by: java.lang.NullPointerException
at 
org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.getSessionId(BaseWebSocketBehavior.java:176)
 ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]
at 
org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.renderHead(BaseWebSocketBehavior.java:128)
 ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]

Is there something that must change for testing WebSocket behavior in Wicket 8?



Regards,
Manfred





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



Replacement for IOnChangeListeer.INTERFACE

2018-09-29 Thread Manfred Bergmann


Hi.

We’ve tested Ajax components by code like this in Wicket 7:

val languageChoice = 
tester.getComponentFromLastRenderedPage("languageChoice").asInstanceOf[DropDownChoice[Locale]]
tester.getRequest.getPostParameters.setParameterValue(languageChoice.getInputName,
 "0")
tester.invokeListener(languageChoice, IOnChangeListener.INTERFACE)
assert(testPage.getLocale == Locales.supportedLocales.head)


In Wicket 8, IOnChangeListener.INTERFACE is not available anymore.
What is the recommended equivalent for this test?



Regards,
Manfred



WebSocket tests fail after migration to Wicket 8

2018-09-29 Thread Manfred Bergmann


Hi.

I’m using a WebSocket on a component of a page based on WebSocketBehavior.
It’s working fine when running the app.

But the tests of the Panel fail, in contrast to Wicket 7 with:

Caused by: java.lang.NullPointerException
at 
org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.getSessionId(BaseWebSocketBehavior.java:176)
 ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]
at 
org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.renderHead(BaseWebSocketBehavior.java:128)
 ~[wicket-native-websocket-core-8.1.0.jar:8.1.0]

Is there something that must change for testing WebSocket behavior in Wicket 8?



Regards,
Manfred



Re: apache wicket 8.0 or 8.x

2018-09-29 Thread kyrindorx



@Maxim: Thx :)


Am 29.09.2018 um 14:13 schrieb Maxim Solodovnik:

To change jquery version being used you can call
getJavaScriptLibrarySettings().setJQueryReference(org.apache.wicket.resource.JQueryResourceReference.getV3());
inside you Application.init()

On Sat, 29 Sep 2018 at 18:35, kyrindorx  wrote:


Hey all,

I started with a new little webpage with Apache Wicket 8.0. I would use
Bootstrap 4.0 as html grid and jquery for it. But wicket use jquery
2.2.4 as distrib version in version 8.0.

So I have some questions about it:

- Can I use Bootstrap 4 or better go on with 3.3.7
- JQuery 2.2.4 is outdated EOL and will not get further updates.
- When will Apache Wicket shipping a new version of JQuery?

Greets
Kyrindor


-
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: apache wicket 8.0 or 8.x

2018-09-29 Thread Maxim Solodovnik
To change jquery version being used you can call
getJavaScriptLibrarySettings().setJQueryReference(org.apache.wicket.resource.JQueryResourceReference.getV3());
inside you Application.init()

On Sat, 29 Sep 2018 at 18:35, kyrindorx  wrote:

> Hey all,
>
> I started with a new little webpage with Apache Wicket 8.0. I would use
> Bootstrap 4.0 as html grid and jquery for it. But wicket use jquery
> 2.2.4 as distrib version in version 8.0.
>
> So I have some questions about it:
>
> - Can I use Bootstrap 4 or better go on with 3.3.7
> - JQuery 2.2.4 is outdated EOL and will not get further updates.
> - When will Apache Wicket shipping a new version of JQuery?
>
> Greets
> Kyrindor
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
WBR
Maxim aka solomax


apache wicket 8.0 or 8.x

2018-09-29 Thread kyrindorx

Hey all,

I started with a new little webpage with Apache Wicket 8.0. I would use 
Bootstrap 4.0 as html grid and jquery for it. But wicket use jquery 
2.2.4 as distrib version in version 8.0.


So I have some questions about it:

- Can I use Bootstrap 4 or better go on with 3.3.7
- JQuery 2.2.4 is outdated EOL and will not get further updates.
- When will Apache Wicket shipping a new version of JQuery?

Greets
Kyrindor


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