[Seaside] Fetching request parameters in Seaside component

Philippe Marschall philippe.marschall at gmail.com
Tue Oct 26 07:27:36 UTC 2010


2010/10/26 Thomas McCune <thomas.mccune at att.net>:
> I found a solution to my previous request on how to fetch the parameters in
> a call
> to a Seaside component. I found the solution by reading the FAQ at
> seaside.st.
> By overiding the method #initialRequest in my component I can get what I
> needed.
> My version of #initialRequest is as follows:
>
> initialRequest: aRequest
>
> super initialRequest: aRequest.
> time:=aRequest fields at: #time.
> Transcript cr; show: time
>
> There appears to be a lot more information that can be extracted from the
> "request"
> object. Other good examples can be found on the net.

Note that #initialRequest: will only be sent once when the session is
created, not on every request.

Cheers
Philippe


More information about the seaside mailing list