Re: Wicket 7 SharedResourceReference

2015-07-30 Thread Sven Meier

Hi,

this is caused by the changes in WICKET-5909 - 
PackageResourceReference#getResource() expects a running request now. 
This is clearly not the case when you call the method from your 
application's #init().


Do you have your icons in the /webapp folder? Then just use a 
ContextRelativeResource instead:


getSharedResources().add("favicon", new 
ContextRelativeResource("logo.png"));


Otherwise please create a Jira issue.

Have fun
Sven


On 30.07.2015 17:05, expresso wrote:

Yes sure.

You can verify in changing wicket version in quickstart pom ;-)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-7-SharedResourceReference-tp4671710p4671717.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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: Wicket 7 SharedResourceReference

2015-07-30 Thread expresso
Yes sure.

You can verify in changing wicket version in quickstart pom ;-)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-7-SharedResourceReference-tp4671710p4671717.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 7 SharedResourceReference

2015-07-30 Thread Sven Meier

Hi,

you have logo.png in the webapp folder. To reference it from a package 
it has to be located besides your StyleResources class:


new PackageResourceReference(StyleResources.class, "logo.png");

Are you sure, this worked in Wicket 6?

Sven

On 30.07.2015 11:03, expresso wrote:

Hi !

I have a NullPointerException after migration from 6 to 7.

Caused by: java.lang.NullPointerException
at
org.apache.wicket.request.resource.PackageResourceReference.getResource(PackageResourceReference.java:126)
~[wicket-core-7.0.0.jar:7.0.0]
at
com.mycompany.myproject.WicketApplication.init(WicketApplication.java:34)
~[classes/:?]
at org.apache.wicket.Application.initApplication(Application.java:919)
~[wicket-core-7.0.0.jar:7.0.0]
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
~[wicket-core-7.0.0.jar:7.0.0]

wicket-quickstart.zip


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-7-SharedResourceReference-tp4671710.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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: Strange Java linkage error with wicketstuff HTML Validator 1.10

2015-07-30 Thread Martijn Dashorst
It appears that I have released 1.11 instead of 1.10... that makes
sense: pebkac...

Martijn

On Thu, Jul 30, 2015 at 3:19 PM, Martin Grigorov  wrote:
> javap it
> On Jul 30, 2015 3:17 PM, "Martijn Dashorst" 
> wrote:
>
>> True, but HtmlValidatingResponseFilter was compiled against wicket 7,
>> so the reference should've been updated.
>>
>> Martijn
>>
>>
>> On Thu, Jul 30, 2015 at 3:10 PM, Martin Grigorov 
>> wrote:
>> > s/LObject/LSerializable/
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Strange Java linkage error with wicketstuff HTML Validator 1.10

2015-07-30 Thread Martin Grigorov
javap it
On Jul 30, 2015 3:17 PM, "Martijn Dashorst" 
wrote:

> True, but HtmlValidatingResponseFilter was compiled against wicket 7,
> so the reference should've been updated.
>
> Martijn
>
>
> On Thu, Jul 30, 2015 at 3:10 PM, Martin Grigorov 
> wrote:
> > s/LObject/LSerializable/
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Strange Java linkage error with wicketstuff HTML Validator 1.10

2015-07-30 Thread Martijn Dashorst
True, but HtmlValidatingResponseFilter was compiled against wicket 7,
so the reference should've been updated.

Martijn


On Thu, Jul 30, 2015 at 3:10 PM, Martin Grigorov  wrote:
> s/LObject/LSerializable/



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Strange Java linkage error with wicketstuff HTML Validator 1.10

2015-07-30 Thread Martin Grigorov
s/LObject/LSerializable/


Strange Java linkage error with wicketstuff HTML Validator 1.10

2015-07-30 Thread Martijn Dashorst
I'm quite baffled by this problem:

https://gist.github.com/dashorst/e658eb5c2dc98eb7c44a

Anyone have an idea what is wrong here?

Martijn

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



Wicket 7 SharedResourceReference

2015-07-30 Thread expresso
Hi !

I have a NullPointerException after migration from 6 to 7.

Caused by: java.lang.NullPointerException
at
org.apache.wicket.request.resource.PackageResourceReference.getResource(PackageResourceReference.java:126)
~[wicket-core-7.0.0.jar:7.0.0]
at
com.mycompany.myproject.WicketApplication.init(WicketApplication.java:34)
~[classes/:?]
at org.apache.wicket.Application.initApplication(Application.java:919)
~[wicket-core-7.0.0.jar:7.0.0]
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
~[wicket-core-7.0.0.jar:7.0.0]

wicket-quickstart.zip

  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-7-SharedResourceReference-tp4671710.html
Sent from the Users forum mailing list archive at Nabble.com.

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