You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Krieger <th...@trend-soft.de> on 2013/10/17 12:11:00 UTC

Shared data between sessions on forms, wanted behaviour?

Hi, i need some help to understand an wicket behaviour after i updated to 6.6
from 6.4.

We have a search form in a panel in our Shop System which contains an
attribute for the form data:

public class SearchForm extends Form<SearchParameter> 
{
...
	private SearchParameter   param;
...

In the constructor the input field is connected via a model to the param
object

text  = new TextField<String>("shop.search.input",new
PropertyModel<String>(param, "text"));

After the submit the input is given to the session object an the search
result page is opened.

While we were using wicket 6.4 everthing works fine. After the update to 6.6
i see a new behaviour. If i go on the desktop open the page and fill the
search textfield everything is ok. 
Now i open the same page on another PC with a complete new session and the
object of the form seems to be the same, because the search textfield on the
other computer is filled with the search from my first task.

In 6.4 the object was a new instance without any attribute data from other
requests. 

So between differnt sessions the same object cache is used. Is this
behaviour wanted or what is my mistake here. Appreciate your help.


Beste Regards

Thomas






--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-data-between-sessions-on-forms-wanted-behaviour-tp4661848.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Shared data between sessions on forms, wanted behaviour?

Posted by Thomas Krieger <th...@trend-soft.de>.
Thanks for your advice i will try to get a small reproducable app and post
it. with a bug report

Greetings 

Thomas



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-data-between-sessions-on-forms-wanted-behaviour-tp4661848p4661859.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Shared data between sessions on forms, wanted behaviour?

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

Sharing of data between sessions is not a feature of Wicket.
If you are able to reproduce the problem in a quickstart application with
Wicket 6.11 then please attach it to a ticket in JIRA.


On Thu, Oct 17, 2013 at 1:11 PM, Thomas Krieger <th...@trend-soft.de>wrote:

> Hi, i need some help to understand an wicket behaviour after i updated to
> 6.6
> from 6.4.
>
> We have a search form in a panel in our Shop System which contains an
> attribute for the form data:
>
> public class SearchForm extends Form<SearchParameter>
> {
> ...
>         private SearchParameter   param;
> ...
>
> In the constructor the input field is connected via a model to the param
> object
>
> text  = new TextField<String>("shop.search.input",new
> PropertyModel<String>(param, "text"));
>
> After the submit the input is given to the session object an the search
> result page is opened.
>
> While we were using wicket 6.4 everthing works fine. After the update to
> 6.6
> i see a new behaviour. If i go on the desktop open the page and fill the
> search textfield everything is ok.
> Now i open the same page on another PC with a complete new session and the
> object of the form seems to be the same, because the search textfield on
> the
> other computer is filled with the search from my first task.
>
> In 6.4 the object was a new instance without any attribute data from other
> requests.
>
> So between differnt sessions the same object cache is used. Is this
> behaviour wanted or what is my mistake here. Appreciate your help.
>
>
> Beste Regards
>
> Thomas
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Shared-data-between-sessions-on-forms-wanted-behaviour-tp4661848.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>