But using the Wicket session object (or a wikcet session sub clas object of youre own) can be used fine to share global information (like the logged in user)
sharing information between pages for page construction i would do through special page constructors.. Doesn't have the be PageParameters constructor! can be anything you want any kind of data object.
johan
Others have asked about sharing information between pages, and the answer has been to pass the shared information via page constructors. Since no one suggested using the WebApplication object, does that imply that this is a singleton shared by all clients?
It has been said that it is poor form to access the Session directly; one should pass page parameters instead. I imagine this is analogous to the programming language dictum of "loose coupling" – that one should use pass information in subroutine parameters rather than through shared global variables.
However, if you have many pages, and a piece of the model is shared by _all_ of them, would this be an exception to the rule? If so, what is the code for creating and accessing "global" session-scope objects?
/Frank
