Re: ChainingModel warnings in Wicket 8

2018-06-08 Thread Maxim Solodovnik
Sounds like these 2 comments worth JIRA
Or Jira+PR ;))

On Thu, Jun 7, 2018 at 9:45 PM, Thomas Heigl  wrote:
> Also the warning is logged for `null` objects, which probably shouldn't
> happen.
>
> public ChainingModel(final Object modelObject)
>> {
>> if (modelObject instanceof Session)
>> {
>> LOG.warn("It is not a good idea to reference the .");
>> } else if (modelObject instanceof Serializable == false)
>> {
>> LOG.warn("It is not a good idea to reference a non-serializable
>> instance ");
>> }
>> target = modelObject;
>> }
>
>
> It should read something like:
>
> if (modelObject != null && modelObject instanceof Serializable == false)
>
>
> Best,
>
> Thomas
>
>
> On Thu, Jun 7, 2018 at 4:25 PM, Thomas Heigl  wrote:
>
>> Hi all,
>>
>> After porting our app to Wicket 8, I'm getting these warnings on my test
>> environment:
>>
>> WAR o.a.w.model.ChainingModel It is not a good idea to reference a
>>> non-serializable instance in models directly as it may lead to
>>> serialization problems
>>
>>
>> The warning is OK, but it gives me absolutely no hint where to look for
>> the issue. Could someone please add the (simple) class name of the model
>> object to the warning message?
>>
>> Currently, the only way for me to find these issues is with a breakpoint
>> in `ChainingModel` and clicking through my application until I hit the
>> warning.
>>
>> Best,
>>
>> Thomas
>>



-- 
WBR
Maxim aka solomax

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



RE: Good Texts for Wicket

2018-06-08 Thread Mike Koboldt
@ Martijn: 

Awesome! Thank you very much! This was the exact answer/explanation I was 
looking for!

Thanks again! 

Mike K.

-Original Message-
From: Martijn Dashorst  
Sent: Friday, June 8, 2018 11:43 AM
To: users@wicket.apache.org
Subject: Re: Good Texts for Wicket

On Fri, Jun 8, 2018 at 5:31 PM, Michael Koboldt  
wrote:
> Hello World!
>
> Hope this email finds you well!
>
> Outside of the API documentation and the examples on the net, I am in 
> search of some up-to-date textbooks for wicket 7.x and wicket 8.x. . 
> Would "Wicket in Action" still be worth picking up even though it was 
> written with Wicket 1.3 in mind? Also, if you know of any other texts 
> that you feel would be beneficial, it would be greatly appreciated.

The reference guide online is pretty up to date, but hasn't been professionally 
edited so can be a bit rough to read. You have no idea what a professional 
editor does to a text to make it readable.

Wicket in Action is getting old in the tooth, but many concepts would still be 
valid, although the code examples won't work.

The biggest change is the addition of generics to Wicket since 1.3.

Other caveats:
 - use onConfigure() & setVisibilityAllowed(...) rather than overriding 
isVisible()
- mounting for bookmarkable pages has been reworked
- resources (header items, etc) has been reworked

and probably much more. The details might be off, but if you read it for 
conceptual explanations (high overview) I think Wicket in Action still works.

> Started developing on Wicket recent coming from a Spring background, 
> where I am really enjoying it. So thank you for that!!

I'm glad you enjoy it!

Martijn

-
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: Good Texts for Wicket

2018-06-08 Thread Martijn Dashorst
On Fri, Jun 8, 2018 at 5:31 PM, Michael Koboldt
 wrote:
> Hello World!
>
> Hope this email finds you well!
>
> Outside of the API documentation and the examples on the net, I am in
> search of some up-to-date textbooks for wicket 7.x and wicket 8.x. . Would
> "Wicket in Action" still be worth picking up even though it was written
> with Wicket 1.3 in mind? Also, if you know of any other texts that you feel
> would be beneficial, it would be greatly appreciated.

The reference guide online is pretty up to date, but hasn't been
professionally edited so can be a bit rough to read. You have no idea
what a professional editor does to a text to make it readable.

Wicket in Action is getting old in the tooth, but many concepts would
still be valid, although the code examples won't work.

The biggest change is the addition of generics to Wicket since 1.3.

Other caveats:
 - use onConfigure() & setVisibilityAllowed(...) rather than
overriding isVisible()
- mounting for bookmarkable pages has been reworked
- resources (header items, etc) has been reworked

and probably much more. The details might be off, but if you read it
for conceptual explanations (high overview) I think Wicket in Action
still works.

> Started developing on Wicket recent coming from a Spring background, where
> I am really enjoying it. So thank you for that!!

I'm glad you enjoy it!

Martijn

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



Good Texts for Wicket

2018-06-08 Thread Michael Koboldt
Hello World!

Hope this email finds you well!

Outside of the API documentation and the examples on the net, I am in
search of some up-to-date textbooks for wicket 7.x and wicket 8.x. . Would
"Wicket in Action" still be worth picking up even though it was written
with Wicket 1.3 in mind? Also, if you know of any other texts that you feel
would be beneficial, it would be greatly appreciated.

Started developing on Wicket recent coming from a Spring background, where
I am really enjoying it. So thank you for that!!

Cheers,
-- 
*  Michael J. Koboldt*

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all devices.


Re: Release WiQuery for Wicket 8

2018-06-08 Thread Emond Papegaaij
On donderdag 7 juni 2018 17:10:16 CEST Martin Grigorov wrote:
> 8.0 is on its way to Maven Central!

Thanks for the help with the release Martin, and Thomas thanks for testing!

Emond



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