Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Are component parameters shared between sessions?

$
0
0
Hi all,

I have a question and a problem that I was unable to find in tapestry
documentation.

I have a page that has a filter component. This components basically
accepts a filter and then displays is properties. A user can modify those
properties and when it presses a button this value is set back to the
components parameter. This in returns is then propagated (since parameters
are bi-directional) back to the page that is then able to filter for
correct data.

Now my problem is that since I have

@Persist
@Property
private Filter filter

on my page and once a value from component is is returned to this property
for the user1 it is also applied to the user2.

Is this something expected? I would expect that if the value is returned
for user1 then user2 can't see this, am i wrong?

In my FilterComponent I have

@Parameter
private Filter filter;

and then when a form is submitted I do something like

filter = new Filter(selectedSections())

Reading a tapestry documentation I get that page only has one instance, so
does this mean that once I place something in the component's parameter it
is unable to determine in which session it should be place?

Thanks and let me know if you need more code

Viewing all articles
Browse latest Browse all 5648

Trending Articles