On 02/01/13 11:13 AM, dtrussardi(a)tiscali.it wrote:
You can display the blog page and do some
operations + - on one counter,
After if you click on any menu item ( Home or Blog itself )
you lose the state of the counter instances.
But i need to remember the state of the counters instance ( or any other my root
components ) so that when redisplay the page i display the
right last update value.
The setup method I was thinking of is:
WAComponent>>initializeOwner: aStructure link: anInternalLink
"Initialize the receiver with the settings from aStructure and
overriding parameters of anInternalLink."
Follow the code, for the exact syntax (see: PRLink
class>>parseParameters:with:), but I think the wiki syntax is something
like:
+mychild|param1=value1+
The problem you're having with losing the state, I think is due to the
links you're clicking - i.e. the links don't have the session
information. So you're getting a new component (i.e. losing the state)
with each new session. I've seen cases where clicking on the menu links
seems to start a new (Seaside) session. It has to do with how the menu
link is created.