Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-30 Thread Martin Grigorov
Hi Maxim,

I'll try to reproduce it.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jan 30, 2017 at 6:16 PM, Maxim Solodovnik 
wrote:

> Forgot versions:
>
> Tomcat 8.5.9
> Wicket 7.6.0
> Chrome latest
> Ubuntu 16.10 latest
>
>
> On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik 
> wrote:
> > Hello All,
> >
> > I'm observing weird behavior:
> > I'm displaying wicket page in iframe
> > For some unknown reason I'm getting NPE in [1] if page is being
> > reloaded both F5 and Shift+F5
> > Every second time I got NPE
> >
> > The method is being called from [2], every second time
> > (HttpSession) userProperties.get("session") == NULL
> >
> > maybe you know what can be done here?
> >
> > [1] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
> native-websocket/wicket-native-websocket-core/src/
> main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.
> java#L104
> > [2] https://github.com/apache/wicket/blob/wicket-7.x/wicket-
> native-websocket/wicket-native-websocket-javax/src/
> main/java/org/apache/wicket/protocol/ws/javax/
> JavaxUpgradeHttpRequest.java#L74
> >
> > --
> > WBR
> > Maxim aka solomax
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-01-30 Thread Martin Grigorov
Hi,

I use @SpringBean in my applications.
The only reason one to switch to @Inject is if your application may use
Guice in the future. Using @Inject will make it easier to migrate.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jan 31, 2017 at 4:36 AM, James Selvakumar 
wrote:

> Hi all,
>
> I've always used @SpringBean annotation to inject Spring beans in my Wicket
> components.
> We found that we could also use the standard @Inject annotation in Wicket
> components.
> Is it advisable to use @Inject instead of @SpringBean?
> Or should we continue to use @SpringBean?
>
> --
> Thanks & regards
> James
>


Re: How it Feels to Learn Javascript in 2016

2017-01-30 Thread fzb
Andrea Del Bene-3 wrote
> Go straight to slide 26 of my presentation :-D
> 
> http://events.linuxfoundation.org/sites/events/files/slides/Wicket_The_story_so_far_and_beyond.pdf

Yes, I went to that link via ur slides .. I forgot that to mention.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-it-Feels-to-Learn-Javascript-in-2016-tp4676883p4676918.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



Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-01-30 Thread James Selvakumar
Hi all,

I've always used @SpringBean annotation to inject Spring beans in my Wicket
components.
We found that we could also use the standard @Inject annotation in Wicket
components.
Is it advisable to use @Inject instead of @SpringBean?
Or should we continue to use @SpringBean?

-- 
Thanks & regards
James


Re: NPE in constructor of AbstractWebSocketProcessor

2017-01-30 Thread Maxim Solodovnik
Forgot versions:

Tomcat 8.5.9
Wicket 7.6.0
Chrome latest
Ubuntu 16.10 latest


On Tue, Jan 31, 2017 at 12:06 AM, Maxim Solodovnik  wrote:
> Hello All,
>
> I'm observing weird behavior:
> I'm displaying wicket page in iframe
> For some unknown reason I'm getting NPE in [1] if page is being
> reloaded both F5 and Shift+F5
> Every second time I got NPE
>
> The method is being called from [2], every second time
> (HttpSession) userProperties.get("session") == NULL
>
> maybe you know what can be done here?
>
> [1] 
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java#L104
> [2] 
> https://github.com/apache/wicket/blob/wicket-7.x/wicket-native-websocket/wicket-native-websocket-javax/src/main/java/org/apache/wicket/protocol/ws/javax/JavaxUpgradeHttpRequest.java#L74
>
> --
> WBR
> Maxim aka solomax



-- 
WBR
Maxim aka solomax

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



Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Jan Lühr
Hello,


Am 01/30/2017 um 05:50 PM schrieb Jan Lühr:
> Hello,
> 
> Am 01/30/2017 um 04:16 PM schrieb Martin Grigorov:
>> On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
>> wrote:
> 
> well... using 7.5 - since 7.6 has a reference issue, the profile does
> not exist.
> 
> Do you have any ideas?

Sorry - my mistake. It exists in the source-code, only.
btw. some images cannot be embedded. There are errors like:

asciidoctor: WARNING: could not embed image:
/tmp/wicket/wicket-user-guide/src/main/asciidoc/img/inmethod-grid2.png;
PNG uses unsupported interlace method

Greetz, Jan

-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

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



NPE in constructor of AbstractWebSocketProcessor

2017-01-30 Thread Maxim Solodovnik
Hello All,

I'm observing weird behavior:
I'm displaying wicket page in iframe
For some unknown reason I'm getting NPE in [1] if page is being
reloaded both F5 and Shift+F5
Every second time I got NPE

The method is being called from [2], every second time
(HttpSession) userProperties.get("session") == NULL

maybe you know what can be done here?

[1] 
https://github.com/apache/wicket/blob/wicket-7.x/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java#L104
[2] 
https://github.com/apache/wicket/blob/wicket-7.x/wicket-native-websocket/wicket-native-websocket-javax/src/main/java/org/apache/wicket/protocol/ws/javax/JavaxUpgradeHttpRequest.java#L74

-- 
WBR
Maxim aka solomax

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



Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Jan Lühr
Hello,

Am 01/30/2017 um 04:16 PM schrieb Martin Grigorov:
> On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
> wrote:

well... using 7.5 - since 7.6 has a reference issue, the profile does
not exist.

Do you have any ideas?

Thanks,
Jan

$ mvn install -Pguide -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building quickstart 1.0-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
myproject ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
myproject ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ myproject ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
myproject ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myproject ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject ---
[INFO] Packaging webapp
[INFO] Assembling webapp [myproject] in
[/tmp/myproject/target/myproject-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/tmp/myproject/src/main/webapp]
[INFO] Webapp assembled in [48 msecs]
[INFO] Building war: /tmp/myproject/target/myproject-1.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @
myproject ---
[INFO] Installing /tmp/myproject/target/myproject-1.0-SNAPSHOT.war to
/home/jan/.m2/repository/com/mycompany/myproject/1.0-SNAPSHOT/myproject-1.0-SNAPSHOT.war
[INFO] Installing /tmp/myproject/pom.xml to
/home/jan/.m2/repository/com/mycompany/myproject/1.0-SNAPSHOT/myproject-1.0-SNAPSHOT.pom
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 1.367s
[INFO] Finished at: Mon Jan 30 17:49:00 CET 2017
[INFO] Final Memory: 12M/145M
[INFO]

[WARNING] The requested profile "guide" could not be activated because
it does not exist.


-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

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



Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Jan Lühr
Hello,

sorry - command is
mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=7.6.0 -DgroupId=com.mycompany -DartifactId=myproject
-DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false

But problem remains:

$ mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=7.6.0 -DgroupId=com.mycompany -DartifactId=myproject
-DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false
[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building Maven Stub Project (No POM) 1
[INFO]

[INFO]
[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) @
standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) @
standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @
standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype defined by properties
[INFO]

[INFO] Using following parameters for creating project from Archetype:
wicket-archetype-quickstart:7.6.0
[INFO]

[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: myproject
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: packageInPathFormat, Value: com/mycompany
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: log4j.properties, Value: log4j2.xml
[INFO] Parameter: artifactId, Value: myproject
[INFO] project created from Archetype in dir: /tmp/myproject
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 0.782s
[INFO] Finished at: Mon Jan 30 17:43:47 CET 2017
[INFO] Final Memory: 14M/205M
[INFO]

jan@Daisy:/tmp$ cd myproject/
jan@Daisy:/tmp/myproject$ mvn install
[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building quickstart 1.0-SNAPSHOT
[INFO]

[WARNING] The POM for org.apache.wicket:wicket-core:jar:7.5.0-SNAPSHOT
is missing, no dependency information available
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 0.306s
[INFO] Finished at: Mon Jan 30 17:43:53 CET 2017
[INFO] Final Memory: 6M/115M
[INFO]

[ERROR] Failed to execute goal on project myproject: Could not resolve
dependencies for project com.mycompany:myproject:war:1.0-SNAPSHOT:
Failure to find org.apache.wicket:wicket-core:jar:7.5.0-SNAPSHOT in
https://repository.apache.org/content/repositories/snapshots/ was cached
in the local repository, resolution will not be reattempted until the
update interval of Apache Nexus has elapsed or updates are forced ->
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Am 01/30/2017 um 05:42 PM schrieb Jan Lühr:
> Hallo,
> 
> 
> Am 01/30/2017 um 05:32 PM schrieb Tobias Soloschenko:
>> Oh, I checked it twice, now. You are right Martin there seems something
>> wrong with the complete build.
>>
>> I compared master with wicket-7.x and the only thing which changes is
>> the artifactId.
>>
>> What I also noticed it that the 7.x folder is not created anymore at my
>> local build. Can you confirm this? (even with profile guide)
> 
> Well why is 7.5-SNAPSHOT referenced in the 7.6 archetype?
> 
> mvn archetype:generate -DarchetypeCatalog=http://wicket.apache.org
> 
> mvn package
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO]
> 
> [INFO] Building quickstart 1.0-SNAPSHOT
> [INFO]
> 
> [WARNING] The POM for org.apache.wicket:wicket-core:jar:7.5.0-SNAPSHOT
> is missing, no dependency information available
> [INFO]
> 

Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Jan Lühr
Hallo,


Am 01/30/2017 um 05:32 PM schrieb Tobias Soloschenko:
> Oh, I checked it twice, now. You are right Martin there seems something
> wrong with the complete build.
> 
> I compared master with wicket-7.x and the only thing which changes is
> the artifactId.
> 
> What I also noticed it that the 7.x folder is not created anymore at my
> local build. Can you confirm this? (even with profile guide)

Well why is 7.5-SNAPSHOT referenced in the 7.6 archetype?

mvn archetype:generate -DarchetypeCatalog=http://wicket.apache.org

mvn package
[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building quickstart 1.0-SNAPSHOT
[INFO]

[WARNING] The POM for org.apache.wicket:wicket-core:jar:7.5.0-SNAPSHOT
is missing, no dependency information available
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 0.335s
[INFO] Finished at: Mon Jan 30 17:42:21 CET 2017
[INFO] Final Memory: 6M/115M
[INFO]

[ERROR] Failed to execute goal on project myproject: Could not resolve
dependencies for project com.mycompany:myproject:war:1.0-SNAPSHOT:
Failure to find org.apache.wicket:wicket-core:jar:7.5.0-SNAPSHOT in
https://repository.apache.org/content/repositories/snapshots/ was cached
in the local repository, resolution will not be reattempted until the
update interval of Apache Nexus has elapsed or updates are forced ->
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

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



Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Tobias Soloschenko
Oh, I checked it twice, now. You are right Martin there seems something 
wrong with the complete build.


I compared master with wicket-7.x and the only thing which changes is 
the artifactId.


What I also noticed it that the 7.x folder is not created anymore at my 
local build. Can you confirm this? (even with profile guide)


kind regards

Tobias

Am 30.01.17 um 16:16 schrieb Martin Grigorov:

On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
wrote:


Hi,

On Mon, Jan 30, 2017 at 1:45 PM, Jan Lühr  wrote:


Hello folks,

I'm trying to access the Wicket 7 guide (PDF).

- https://ci.apache.org/projects/wicket/guide/7.x/guide/single.pdf
is http-404
- https://ci.apache.org/projects/wicket/guide/7.x/single.pdf claims to


Thanks for reporting this!

Looking at the CI config the latter should be the correct one.
I've reloaded the CI config and started a new build -
https://ci.apache.org/builders/wicket-branch-7.x/builds/357.
Hopefully this will fix it, otherwise we will have to investigate deeper!


It didn't help.
At the moment the only way I see is to build it locally: mvn install -Pguide





be the wicket 8 one.

Can you help me here?
Thanks, Jan

--
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

-
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 guide - PDF still available?

2017-01-30 Thread Tobias Soloschenko

Hi,

this seems an issue of the migration to adoc. It seems that the changes 
of master have been cherry picked to wicket-7.x.


We have to change the adoc in the wicket-7.x branch. The patch 
guide/single.pdf doesn't exist anymore, because of adoc.


There is only a single.html and a single.pdf in the main path.

kind regards

Tobias

Am 30.01.17 um 16:16 schrieb Martin Grigorov:

On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
wrote:


Hi,

On Mon, Jan 30, 2017 at 1:45 PM, Jan Lühr  wrote:


Hello folks,

I'm trying to access the Wicket 7 guide (PDF).

- https://ci.apache.org/projects/wicket/guide/7.x/guide/single.pdf
is http-404
- https://ci.apache.org/projects/wicket/guide/7.x/single.pdf claims to


Thanks for reporting this!

Looking at the CI config the latter should be the correct one.
I've reloaded the CI config and started a new build -
https://ci.apache.org/builders/wicket-branch-7.x/builds/357.
Hopefully this will fix it, otherwise we will have to investigate deeper!


It didn't help.
At the moment the only way I see is to build it locally: mvn install -Pguide





be the wicket 8 one.

Can you help me here?
Thanks, Jan

--
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

-
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 guide - PDF still available?

2017-01-30 Thread Martin Grigorov
On Mon, Jan 30, 2017 at 2:27 PM, Martin Grigorov 
wrote:

> Hi,
>
> On Mon, Jan 30, 2017 at 1:45 PM, Jan Lühr  wrote:
>
>> Hello folks,
>>
>> I'm trying to access the Wicket 7 guide (PDF).
>>
>> - https://ci.apache.org/projects/wicket/guide/7.x/guide/single.pdf
>> is http-404
>> - https://ci.apache.org/projects/wicket/guide/7.x/single.pdf claims to
>>
>
> Thanks for reporting this!
>
> Looking at the CI config the latter should be the correct one.
> I've reloaded the CI config and started a new build -
> https://ci.apache.org/builders/wicket-branch-7.x/builds/357.
> Hopefully this will fix it, otherwise we will have to investigate deeper!
>

It didn't help.
At the moment the only way I see is to build it locally: mvn install -Pguide


>
>
>> be the wicket 8 one.
>>
>> Can you help me here?
>> Thanks, Jan
>>
>> --
>> There's a ripped off cord
>> To my TV screen
>> With a note saying:
>> "Im not afraid to dream"
>> -- Donkey Boy, Crazy Something Normal
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Wicket 7 guide - PDF still available?

2017-01-30 Thread Martin Grigorov
Hi,

On Mon, Jan 30, 2017 at 1:45 PM, Jan Lühr  wrote:

> Hello folks,
>
> I'm trying to access the Wicket 7 guide (PDF).
>
> - https://ci.apache.org/projects/wicket/guide/7.x/guide/single.pdf
> is http-404
> - https://ci.apache.org/projects/wicket/guide/7.x/single.pdf claims to
>

Thanks for reporting this!

Looking at the CI config the latter should be the correct one.
I've reloaded the CI config and started a new build -
https://ci.apache.org/builders/wicket-branch-7.x/builds/357.
Hopefully this will fix it, otherwise we will have to investigate deeper!


> be the wicket 8 one.
>
> Can you help me here?
> Thanks, Jan
>
> --
> There's a ripped off cord
> To my TV screen
> With a note saying:
> "Im not afraid to dream"
> -- Donkey Boy, Crazy Something Normal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wicket 7 guide - PDF still available?

2017-01-30 Thread Jan Lühr
Hello folks,

I'm trying to access the Wicket 7 guide (PDF).

- https://ci.apache.org/projects/wicket/guide/7.x/guide/single.pdf
is http-404
- https://ci.apache.org/projects/wicket/guide/7.x/single.pdf claims to
be the wicket 8 one.

Can you help me here?
Thanks, Jan

-- 
There's a ripped off cord
To my TV screen
With a note saying:
"Im not afraid to dream"
-- Donkey Boy, Crazy Something Normal

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