[Seaside] Sending parameters to a component through url parameters
Bany, Michel
mbany at cincom.com
Wed Nov 15 13:10:20 UTC 2006
Hi om,
> 1) Is it possible to send parameters to a component by adding
> parameters to it's entry point url?
>
> For exemple : http://localhost:8008/seaside/go/myApp?year=2001
> which would pass a 'year' parameter to myApp.
You will need to implement #initialRequest: in your component.
> 2) Can my component know by which entry point url he has been
> launched? (In the case I created multiple entry points for
> the same component).
You may want to play with
self session application basePath.
or
self session currentRequest url.
HTH
Michel.
More information about the Seaside
mailing list