Bany, Michel a écrit :
> 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.
In your component, you can use #fieldsAt: to get a value.
If you component has been rendered with :
http://localhost:8008/seaside/go/myApp?year=2001in your component, you can:
MyAppComponent>>renderContentOn: html
...
html paragraph: 'in the year', (self fieldsAt: 'year')
...
Bye
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside