Fetching request parameters in Seaside component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fetching request parameters in Seaside component

Thomas McCune
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.
 
Tom McCune

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Fetching request parameters in Seaside component

Philippe Marschall
2010/10/26 Thomas McCune <[hidden email]>:

> 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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside