Re: Moving wicketstuff to github

2010-12-28 Thread Sebastian

Hi Martijn,

can we commit to wicketstuff again? If so, where: sf.net or github?

Regards,

Seb

On 23.12.2010 11:04, Martijn Dashorst wrote:

All,

Last week we (wicket+wicketstuff devs) had a discussion on dev@ and
decided to move all wicketstuff code to github.com. Reasons to move to
github are:

  - using git
  - social features for interacting with grander community (merging,
pull requests, forking)
  - integrated wiki, issue tracker (no more maintenance for confluence/jira)

The import is currently running (albeit slowly) and as a consequence
we have disabled write access to the SVN repository at sourceforge.

We'll let you know when we're up and running again.

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: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage 
generate stateless path, also not binded to session. What I need is 
cryptic path such as for Link-Component.


Best regards,

Anton
add(new ContextImage(icon, images/imageFileName.jpg)); 



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



Re: Simple way to show image on WebPage

2010-12-28 Thread Martin Grigorov
Hi Anton,

you need custom Resource or ResourceReference to load the image.
See
org.apache.wicket.markup.html.image.Image.Image(String, ResourceReference)
org.apache.wicket.markup.html.image.Image.Image(String, Resource)
and different implementations
of org.apache.wicket.markup.html.image.resource.DynamicImageResource

On Tue, Dec 28, 2010 at 7:16 PM, Anton Bessonov exe...@googlemail.comwrote:

 Hi Andrea,

 thanks for your reply, but this is'nt exactly what I want. ContextImage
 generate stateless path, also not binded to session. What I need is cryptic
 path such as for Link-Component.

 Best regards,

 Anton

  add(new ContextImage(icon, images/imageFileName.jpg));



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




new session

2010-12-28 Thread Peter Karich
 Hi,

when is a new session created?
If I am overwriting newSession I can see that wicket will call this
method twice for a fresh browser:

Restart completed at Tue Dec 28 20:22:57 CET 2010 // jetty log
2010-12-28 20:23:02,575 [3107...@qtp-7885469-4] INFO  created new session!
2010-12-28 20:23:02,593 [23004...@qtp-7885469-3] INFO  created new session!
...

Did I do something wrong?

Kind regards,
Peter.

 @Override
public Session newSession(Request request, Response response) {
MySession session = new MySession(request);
getGuiceInjector().inject(session);
logger.info(created new session!);
return session;
}

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



Re: new session

2010-12-28 Thread Martin Makundi
Hi!

First time you don't have cookie, second time maybe cookie created...

**
Martin

2010/12/28 Peter Karich peat...@yahoo.de:
  Hi,

 when is a new session created?
 If I am overwriting newSession I can see that wicket will call this
 method twice for a fresh browser:

 Restart completed at Tue Dec 28 20:22:57 CET 2010 // jetty log
 2010-12-28 20:23:02,575 [3107...@qtp-7885469-4] INFO  created new session!
 2010-12-28 20:23:02,593 [23004...@qtp-7885469-3] INFO  created new session!
 ...

 Did I do something wrong?

 Kind regards,
 Peter.

 �...@override
    public Session newSession(Request request, Response response) {
        MySession session = new MySession(request);
        getGuiceInjector().inject(session);
        logger.info(created new session!);
        return session;
    }

 -
 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: new session

2010-12-28 Thread Peter Karich
 forgot: this is done in one request.
Martin, is your answer still valid :-) ?

 Hi!

 First time you don't have cookie, second time maybe cookie created...

 **
 Martin

 2010/12/28 Peter Karich peat...@yahoo.de:
  Hi,

 when is a new session created?
 If I am overwriting newSession I can see that wicket will call this
 method twice for a fresh browser:

 Restart completed at Tue Dec 28 20:22:57 CET 2010 // jetty log
 2010-12-28 20:23:02,575 [3107...@qtp-7885469-4] INFO  created new session!
 2010-12-28 20:23:02,593 [23004...@qtp-7885469-3] INFO  created new session!
 ...

 Did I do something wrong?

 Kind regards,
 Peter.

  @Override
public Session newSession(Request request, Response response) {
MySession session = new MySession(request);
getGuiceInjector().inject(session);
logger.info(created new session!);
return session;
}


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



Re: new session

2010-12-28 Thread Martin Makundi
  forgot: this is done in one request.
 Martin, is your answer still valid :-) ?

Put a breakpoint to see if there is a redireect... ;)

**
Martin


 Hi!

 First time you don't have cookie, second time maybe cookie created...

 **
 Martin

 2010/12/28 Peter Karich peat...@yahoo.de:
  Hi,

 when is a new session created?
 If I am overwriting newSession I can see that wicket will call this
 method twice for a fresh browser:

 Restart completed at Tue Dec 28 20:22:57 CET 2010 // jetty log
 2010-12-28 20:23:02,575 [3107...@qtp-7885469-4] INFO  created new session!
 2010-12-28 20:23:02,593 [23004...@qtp-7885469-3] INFO  created new session!
 ...

 Did I do something wrong?

 Kind regards,
 Peter.

 �...@override
    public Session newSession(Request request, Response response) {
        MySession session = new MySession(request);
        getGuiceInjector().inject(session);
        logger.info(created new session!);
        return session;
    }


 -
 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: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Martin,

thanks! DynamicImageResource does this!

Best Regards,

Anton


Hi Anton,

you need custom Resource or ResourceReference to load the image.
See
org.apache.wicket.markup.html.image.Image.Image(String, ResourceReference)
org.apache.wicket.markup.html.image.Image.Image(String, Resource)
and different implementations
of org.apache.wicket.markup.html.image.resource.DynamicImageResource

On Tue, Dec 28, 2010 at 7:16 PM, Anton Bessonovexe...@googlemail.comwrote:


Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage
generate stateless path, also not binded to session. What I need is cryptic
path such as for Link-Component.

Best regards,

Anton

  add(new ContextImage(icon, images/imageFileName.jpg));

-
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



Question about the Page state

2010-12-28 Thread Dmitriy Neretin
Hello everybody,

The question isn't really simple :)
So, the official documentation says (
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html):

1) A page that does not yet exist in a user Session may be encoded as a URL
that references the not-yet-created page by class name.

/[Application]?bookmarkablePage=[classname][param]=[value] [...]

2) Stateful pages (that have already been requested by a user) will be
present in the user's Session and can be referenced securely with a
session-relative number:

/[Application]?wicket:interface=[pageMapName]:[pageId]:

...

Does it actually mean, that in the second situation the page isn't
bookmarkable?

But my question is: where is the state of the page stored? In the Session?
In the pageMap? Where is the pageMap stored and when is it created?

I hope somebody could help me :)

Thanks!


Re: Question about the Page state

2010-12-28 Thread Martin Grigorov
Hi Dmitri,

I suggest you to take a look at these two pages:
https://cwiki.apache.org/WICKET/page-maps.html
https://cwiki.apache.org/WICKET/page-maps.html
https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html

https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
martin-g

On Tue, Dec 28, 2010 at 9:27 PM, Dmitriy Neretin 
dmitriy.nere...@googlemail.com wrote:

 Hello everybody,

 The question isn't really simple :)
 So, the official documentation says (
 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html):

 1) A page that does not yet exist in a user Session may be encoded as a URL
 that references the not-yet-created page by class name.

 /[Application]?bookmarkablePage=[classname][param]=[value] [...]

 2) Stateful pages (that have already been requested by a user) will be
 present in the user's Session and can be referenced securely with a
 session-relative number:

 /[Application]?wicket:interface=[pageMapName]:[pageId]:

 ...

 Does it actually mean, that in the second situation the page isn't
 bookmarkable?

 But my question is: where is the state of the page stored? In the Session?
 In the pageMap? Where is the pageMap stored and when is it created?

 I hope somebody could help me :)

 Thanks!



Re: Question about the Page state

2010-12-28 Thread Dmitriy Neretin
Thank you! I am quite happy with it :)

Bye

On 28 December 2010 21:34, Martin Grigorov mgrigo...@apache.org wrote:

 Hi Dmitri,

 I suggest you to take a look at these two pages:
 https://cwiki.apache.org/WICKET/page-maps.html
 https://cwiki.apache.org/WICKET/page-maps.html

 https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html

 
 https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
 
 martin-g

 On Tue, Dec 28, 2010 at 9:27 PM, Dmitriy Neretin 
 dmitriy.nere...@googlemail.com wrote:

  Hello everybody,
 
  The question isn't really simple :)
  So, the official documentation says (
  http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html
 ):
 
  1) A page that does not yet exist in a user Session may be encoded as a
 URL
  that references the not-yet-created page by class name.
 
  /[Application]?bookmarkablePage=[classname][param]=[value] [...]
 
  2) Stateful pages (that have already been requested by a user) will be
  present in the user's Session and can be referenced securely with a
  session-relative number:
 
  /[Application]?wicket:interface=[pageMapName]:[pageId]:
 
  ...
 
  Does it actually mean, that in the second situation the page isn't
  bookmarkable?
 
  But my question is: where is the state of the page stored? In the
 Session?
  In the pageMap? Where is the pageMap stored and when is it created?
 
  I hope somebody could help me :)
 
  Thanks!
 



Re: Question about the Page state

2010-12-28 Thread Cemal Bayramoglu
Dmitry, Martin,

Just be aware that when Dima (yes, another Dmitry), wrote that series
[1], we may have still been on 1.2.6 or maybe 1.3 as it must be at
least 2.5 years ago that he was working with us (and Wicket), so
unless they have been reviewed recently, I am not sure if these
sequence diagrams need to be updated, especially if you are planning
on learning at Wicket 1.5.

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com

[1] 
https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
https://cwiki.apache.org/WICKET/request-targets.html
and some of the other linked articles

On 28 December 2010 21:01, Dmitriy Neretin
dmitriy.nere...@googlemail.com wrote:

 Thank you! I am quite happy with it :)

 Bye

 On 28 December 2010 21:34, Martin Grigorov mgrigo...@apache.org wrote:

  Hi Dmitri,
 
  I suggest you to take a look at these two pages:
  https://cwiki.apache.org/WICKET/page-maps.html
  https://cwiki.apache.org/WICKET/page-maps.html
 
  https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
 
  
  https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
  
  martin-g
 
  On Tue, Dec 28, 2010 at 9:27 PM, Dmitriy Neretin 
  dmitriy.nere...@googlemail.com wrote:
 
   Hello everybody,
  
   The question isn't really simple :)
   So, the official documentation says (
   http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html
  ):
  
   1) A page that does not yet exist in a user Session may be encoded as a
  URL
   that references the not-yet-created page by class name.
  
   /[Application]?bookmarkablePage=[classname][param]=[value] [...]
  
   2) Stateful pages (that have already been requested by a user) will be
   present in the user's Session and can be referenced securely with a
   session-relative number:
  
   /[Application]?wicket:interface=[pageMapName]:[pageId]:
  
   ...
  
   Does it actually mean, that in the second situation the page isn't
   bookmarkable?
  
   But my question is: where is the state of the page stored? In the
  Session?
   In the pageMap? Where is the pageMap stored and when is it created?
  
   I hope somebody could help me :)
  
   Thanks!
  
 

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



Handling OnKeyPress event

2010-12-28 Thread Josh Kamau
Hi Team;

Is there a way of handling onKey.. events in wicket, where by i will know
which key was pressed. I specifically want to do some ajax update when
Return key is pressed.

Kind regards.
Josh.