Ciao,
i have do some test with the PRDistribution register
It create a default pier entry Welcome to Pier!
It in appearance work fine but under where is the problem that i describe in these
e-mails.
The first time ( and when open a new session ) the anchor relative to the menu report
right href with the _s and _k parameter
for example the Home anchor report :
<a class=" active internal page" title="Welcome to Pier!"
href="/pier?_s=9K76T_OM34OI-n_d&_k=mZPHc-oUOnpyR1IQ&_n&1">Home</a>
For each next sequence display the menu anchor don't report any _s _k value.
Apparently it works fine, but in reality the system loses information and create a new
instance of the page at any click.
In my case, i lose the state of the component ( counter ) in the page and the error is
apparent.
Perhaps the problem is relative to the cookies where the system manage some information.
If in the pier dispatcher entry point i disable the cookies the _s _k href value
aren't manage even when the system create new session.
Someone has some suggestions indication on how to solve the problem?
For the pier entry is necessary - obligatory enabled the cookies ?
Thank,
Dario
Ciao,
i don't understund because but in my environment, when the pier rendering the
Menu based on:
(PRPage named: 'menu')
contents:
'- *Home>/*
- *Chi siamo>/chisiamo*
- *Missione>/missione*
- *Despina>/despina*
- *Catalogo>/catalogo*
- *Menu on-line>/menuonline*
- *Blog>/blog*
- *Riferimenti>/riferimenti*';
yourself ]
the relative anchor don't report any _K parameter.
Accordingly when i click on one menu item the filter can't address the request
and create a new instance whenever.
I update the menu page with the Pier interface but the error persist.
Yesterday i have a problem with the first menu item : Home
after the first display it lose the link to the home page.
I solved the problem adding to my PierDistribution root method the :
self rootPage enumerator
with;
all;
do:
[ :each |
each outgoingReferences
do: [ :link | (link isKindOf: PRInternalLink) ifTrue: [ link target: nil ] ].
each securityDecoration owner: self kernel users anyOne.
each securityDecoration group: self kernel groups anyOne ].
With this declaration the Home work fine, but i have the over problem
Thanks,
Dario
> Hi,
>
> my some other considerations:
>
>
>> Hi,
>>
>> i work with Pier 3.0.0
>>
>> I have a pier site with a menu to manage some pages.
>>
>> Some of this pages are configured to manage components.
>>
>>
>>
>>
>> For test i add some Counter seaside application instances.
>>
>> Now when display a specific page with some counter it work fine:
>>
>> i can change any specific counter instance in the page
>
> My Pier instance is based on PRDistribution where i declared
>
> counterwidget
>
> ^ counterwidget ifNil: [counterwidget := (PRComponent named: 'counter')
> componentClass: WACounter;
> title: 'Counter on-line';
> yourself
> ]
>
>
> The relative page is declared with:
>
> (PRPage named: 'counterpage')
> title: 'Embed';
> contents:
> '+/system/components/counter+'
>
> All works fine at the first display.
>
>>
>>
>> My problem is when i change the menu for display another page.
>>
>>
>> In this case when redisplay a page with the counters all instance are reset to
0.
>
> I remark the problem :
> when redisplay the counterpage the counter is reset to 0.
>
>
>
> I do some test in hold image based on Pier 2.0.6 and with it all works fine.
>
> ( i don't remember particular setting into Pier 2.0.6 Pharo image)
>
> The WACounter remember is state and is right rendered when i redisplay the relative
page.
>
> This is my objective.
>
> How i read in some Pier documents my goal is to embedded seaside application /
component into Pier.
>
>>
>>
>> Now my question is:
>>
>> what do i do for redisplay the counter at the last update ?
>
> I do some test adding the component directly in a page with Pier interface but the
problem remain into Pier 3.0
>
>
>>
>>
>> I need to configure something ?
>>
>>
>
> Renewal my thanks for any considerations
>
> Dario
> _______________________________________________
> Magritte, Pier and Related Tools ...
>
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki