Hi Users@tapestry,

I'm trying to implement a generic "bread crumb" component in t5 (5.2.4). The 
component should render out a list of previously accessed page links like this:
Index > Page1 > Page2

For this I need the active page name (many sources for that, RequestGlobals 
i.e) and the the EventContext (which context parameters where given when the 
page was called). The only way I found to get these is via EventContext from 
PageRenderRequestParameters.getActivationContext(). 

The only way I found to get the PageRenderRequestParameters was be implementing 
a ComponentRequestFilter.

I would like to share a SessionStateObject (of a type I created) between the 
filter (that knows which pages where accessed and their activation contexts) 
and the component (that will render out the pagelinks). 

I did this the way the documentations says it should work:
____
@SessionState
private PageDataSessionState pageDataSessionState;
____

This declaration is in both filter and component. 

Unfortunately it seems that the SSO is not actually shared between filter and 
component (SSO is null in the component) ... why?
Actually, the filter will not even create the SSO properly. If I initialize it 
myself it works as expected in the filter (it keeps the SSO persistent) but 
still the SSO state is not visible to the component. 

It's really strange because I'm 100% sure that a RequestFilter does have access 
to the correct session and surely, a ComponentRequestFilter will be after the 
RequestFilter in the pipeline.


Kind Regards,
Wulf

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to