Re: Issue with Component Parameter

2012-04-03 Thread ksrijith
Thanks I was able to fix the issue by rewriting the code and removing all the static references. No easy way around :) - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-Component-Parameter-tp5612950p5616931.html Sent from the Tapestry

Re: Issue with Component Parameter

2012-04-02 Thread Robert Zeigler
Presumably the collage model is initialized/loaded based on some constraint/other information. Either supply that information via onPassivate and then re-initialize in onActivate, or else provide that information to your action handlers so they can retrieve the information as required. Robert

Re: Issue with Component Parameter

2012-04-02 Thread ksrijith
You were right. I was using a persisted object for the CollageModel in the Page and passing the same to the Component. I understand that this is the reason that the object gets shared between windows/tabs. Though if I don't store the object as a persistent value when I try to access it again using

Re: Issue with Component Parameter

2012-04-02 Thread Thiago H. de Paula Figueiredo
On Mon, 02 Apr 2012 15:31:30 -0300, derkoe wrote: Robert asked if you have a @Persist on your CollageModel in the parent component or page. Parameters in Tapestry have a bi-directional binding. So, if you have a @Persist on the model it is shared in the session. Two browser tabs/windows a

Re: Issue with Component Parameter

2012-04-02 Thread derkoe
Robert asked if you have a @Persist on your CollageModel in the parent component or page. Parameters in Tapestry have a bi-directional binding. So, if you have a @Persist on the model it is shared in the session. Two browser tabs/windows also share the same session. If you want to have state per wi

Re: Issue with Component Parameter

2012-04-02 Thread Robert Zeigler
@Persist isn't part of @Parameter. They are mutually exclusive. But in your parent component (eg: the page where you're using Collage), is the list @Persist'ed? The reference to the collage list shouldn't be static; this is not a problem with Tapestry. I use components that take list paramete

Re: Issue with Component Parameter

2012-04-02 Thread ksrijith
I believe @Persist is part of the @Parameter annotation since if I Persist the property then it gives me the following error: Field model of class com.karamarie.web.store.components.Collage can not be claimed by @org.apache.tapestry5.annotations.Persist as it is already claimed by @org.apache.tape

Re: Issue with Component Parameter

2012-04-02 Thread Robert Zeigler
Are you @Persist'ing the list, eg, in the parent component? Robert On Apr 2, 2012, at 4/211:25 AM , ksrijith wrote: > Hi, > I'm using using Tapestry version 5.3. > I've created a collage component with is used to show a list of images. I'm > passing the image list as a parameter to the component