You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by JavaTraveler <me...@gmail.com> on 2018/05/25 09:30:24 UTC

Basket in session

Hello !

I have been trying to make a basket for an e-commerce application.

But I don't understand how to use the session's system in wicket.

Anyone have a good source I could read ?

Right now, I'm trying a class with "@SessionScoped" like in JSF. But, I had
no results so far.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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


Re: Basket in session

Posted by Andrea Del Bene <an...@gmail.com>.
In Guide we trust :-)

http://wicket.apache.org/learn/#guide

On Fri, May 25, 2018 at 11:30 AM, JavaTraveler <me...@gmail.com>
wrote:

> Hello !
>
> I have been trying to make a basket for an e-commerce application.
>
> But I don't understand how to use the session's system in wicket.
>
> Anyone have a good source I could read ?
>
> Right now, I'm trying a class with "@SessionScoped" like in JSF. But, I had
> no results so far.
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Basket in session

Posted by JavaTraveler <me...@gmail.com>.
I made it !
I was using Panier pan = WebSession.get();
instead of
Panier pan = Panier.get();
!

Thank you anyway, you're the bests ! :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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


Re: Basket in session

Posted by JavaTraveler <me...@gmail.com>.
myproject.7z
<http://apache-wicket.1842946.n4.nabble.com/file/t375839/myproject.7z>  
Like this ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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


Re: Basket in session

Posted by Maxim Solodovnik <so...@gmail.com>.
Yes, small wicket app demonstrating the issue
You can create the base for such project using maven

WBR, Maxim
(from mobile, sorry for the typos)

On Mon, May 28, 2018, 18:56 JavaTraveler <me...@gmail.com> wrote:

> I'd be glad to. But what do you mean by quickstart ?
>
> That ? https://wicket.apache.org/start/quickstart.html
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Basket in session

Posted by JavaTraveler <me...@gmail.com>.
I'd be glad to. But what do you mean by quickstart ?

That ? https://wicket.apache.org/start/quickstart.html

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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


Re: Basket in session

Posted by Maxim Solodovnik <so...@gmail.com>.
In most cases WebSession is available via: WebSession.get()
Can you provide quickstart application?

On Mon, May 28, 2018 at 6:41 PM, JavaTraveler <me...@gmail.com> wrote:
> Thanks for the advice, I subscribed.
>
>
> I'm sorry to be a bother, but I don't get it.
>
> I already was using the wicket guide.
> And yet, I don't get how to use the session class.
>
> I have made a class extending Session (I have also tried WebSession).
> Then I try to access it on another class.
>         HttpSession pan = ((ServletWebRequest)RequestCycle.get().
>                         getRequest()).getContainerRequest().getSession();
>
> But it doesn't work I get a null exception.
>
> I missing something, but I can't see what.
> Any idea ?
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
WBR
Maxim aka solomax

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


Re: Basket in session

Posted by JavaTraveler <me...@gmail.com>.
Thanks for the advice, I subscribed.


I'm sorry to be a bother, but I don't get it. 

I already was using the wicket guide.
And yet, I don't get how to use the session class.

I have made a class extending Session (I have also tried WebSession).
Then I try to access it on another class. 
	HttpSession pan = ((ServletWebRequest)RequestCycle.get().
			getRequest()).getContainerRequest().getSession();

But it doesn't work I get a null exception.

I missing something, but I can't see what.
Any idea ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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


Re: Basket in session

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I'd recommend you to read Wicket documentation.
The Session class is explained at
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_session_class

P.S. You may also want to subscribe to the mailing list (
https://wicket.apache.org/help/email.html#user) so that your messages are
not moderated.

On Fri, May 25, 2018 at 12:30 PM, JavaTraveler <me...@gmail.com>
wrote:

> Hello !
>
> I have been trying to make a basket for an e-commerce application.
>
> But I don't understand how to use the session's system in wicket.
>
> Anyone have a good source I could read ?
>
> Right now, I'm trying a class with "@SessionScoped" like in JSF. But, I had
> no results so far.
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>