How do I find a REST request in a URL?

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

How do I find a REST request in a URL?

Long Haired David
Hi there. I want to start a Seaside page from a standard web page. 
I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.

How would I do that in mySeasidePage please?
David


Message sent using Winmail Mail Server

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

Re: How do I find a REST request in a URL?

NorbertHartl
Have a look at

WAPresenter>>#initialRequest: aRequest
        "When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

        A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

        You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

        See WABrowser for examples.
        You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington <[hidden email]>:
>
> Hi there. I want to start a Seaside page from a standard web page.
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
>
> How would I do that in mySeasidePage please?
> David
>
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

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

Re: How do I find a REST request in a URL?

Long Haired David
In reply to this post by Long Haired David
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.


David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" <[hidden email]>
To: "David Pennington" <[hidden email]>, "Seaside - general discussion" <[hidden email]>
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server

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

Re: How do I find a REST request in a URL?

jtuchel
David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1


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

Re: How do I find a REST request in a URL?

Long Haired David
In reply to this post by Long Haired David
Thank you Joachim. I have been using Smalltalk since 1990 but I am very unsure of the hierarchies in Seaside.

That worked perfectly.

David


--------- Original Message ---------
From: "[hidden email]" <[hidden email]>
To: "David Pennington" <[hidden email]>, "Seaside - general discussion" <[hidden email]>
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server

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

Re: How do I find a REST request in a URL?

jtuchel
David,

glad I could help - and don't worry, I've been using Seaside for almost ten years and still find areas I've never touched before and that are miraculous to me ;-)

Joachim


Am 10.02.17 um 13:33 schrieb David Pennington:
Thank you Joachim. I have been using Smalltalk since 1990 but I am very unsure of the hierarchies in Seaside.

That worked perfectly.

David


--------- Original Message ---------
From: [hidden email] [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1


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

Re: How do I find a REST request in a URL?

Long Haired David
In reply to this post by Long Haired David
OK so moving on, I want to put an image on the screen with the text to the right of it. The following code works but had a border to the table.

html table: [
    html tableRow: [
            html tableData: [html image url: anImageURL'].
            html tableData:  [html text: pictureBlurb]]]

I need t put html table frame: 'void'. somewhere to remove the border but I can't seem to work how to do this.

Can anyone tell me the hidden secret?
David

--------- Original Message ---------
From: "[hidden email]" <[hidden email]>
To: "David Pennington" <[hidden email]>, "Seaside - general discussion" <[hidden email]>
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server

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

Re: How do I find a REST request in a URL?

jtuchel
David,


welcome to the web ;-)

You need style information for the table. The easiest and best maintainable thing is a WAFileLibrary with CSS files that define your table's visuel appearance.

You can use the #style: method of your WATableTag as a start, however.

something along the lines of:

html table
    style: 'border-width: 0':
    with: [
        html tableData: ....

(Untested)

HTH

Joachim




Am 10.02.17 um 16:08 schrieb David Pennington:
OK so moving on, I want to put an image on the screen with the text to the right of it. The following code works but had a border to the table.

html table: [
    html tableRow: [
            html tableData: [html image url: anImageURL'].
            html tableData:  [html text: pictureBlurb]]]

I need t put html table frame: 'void'. somewhere to remove the border but I can't seem to work how to do this.

Can anyone tell me the hidden secret?
David

--------- Original Message ---------
From: [hidden email] [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1


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

Re: How do I find a REST request in a URL?

Long Haired David
In reply to this post by Long Haired David
I even had the table defined in my stylesheet method! Thanks. I am getting stupider and stupider with old age :-).

Come back WebConnection all is forgiven :-)
David


--------- Original Message ---------
From: "[hidden email]" <[hidden email]>
To: "David Pennington" <[hidden email]>, "Seaside - general discussion" <[hidden email]>
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 15:19:40 (Fri)

David,


welcome to the web ;-)

You need style information for the table. The easiest and best maintainable thing is a WAFileLibrary with CSS files that define your table's visuel appearance.

You can use the #style: method of your WATableTag as a start, however.

something along the lines of:

html table
    style: 'border-width: 0':
    with: [
        html tableData: ....

(Untested)

HTH

Joachim




Am 10.02.17 um 16:08 schrieb David Pennington:
OK so moving on, I want to put an image on the screen with the text to the right of it. The following code works but had a border to the table.

html table: [
    html tableRow: [
            html tableData: [html image url: anImageURL'].
            html tableData:  [html text: pictureBlurb]]]

I need t put html table frame: 'void'. somewhere to remove the border but I can't seem to work how to do this.

Can anyone tell me the hidden secret?
David

--------- Original Message ---------
From: [hidden email] [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl" [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server

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

Re: How do I find a REST request in a URL?

jtuchel
David,

don't give up. Web Connection is a pain compared to Seaside.
Once you've learned all that web stuff, that is. ;-)

Joachim



Am 10.02.17 um 16:47 schrieb David Pennington:
I even had the table defined in my stylesheet method! Thanks. I am getting stupider and stupider with old age :-).

Come back WebConnection all is forgiven :-)
David


--------- Original Message ---------
From: [hidden email] [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 15:19:40 (Fri)

David,


welcome to the web ;-)

You need style information for the table. The easiest and best maintainable thing is a WAFileLibrary with CSS files that define your table's visuel appearance.

You can use the #style: method of your WATableTag as a start, however.

something along the lines of:

html table
    style: 'border-width: 0':
    with: [
        html tableData: ....

(Untested)

HTH

Joachim




Am 10.02.17 um 16:08 schrieb David Pennington:
OK so moving on, I want to put an image on the screen with the text to the right of it. The following code works but had a border to the table.

html table: [
    html tableRow: [
            html tableData: [html image url: anImageURL'].
            html tableData:  [html text: pictureBlurb]]]

I need t put html table frame: 'void'. somewhere to remove the border but I can't seem to work how to do this.

Can anyone tell me the hidden secret?
David

--------- Original Message ---------
From: [hidden email] [hidden email]
To: "David Pennington" [hidden email], "Seaside - general discussion" [hidden email]
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 12:21:47 (Fri)

David,

you override initialRequest: in your WACompnent subclass which was registered as your entry point.
Don't forget to delegate to super.

Joachim


Am 10.02.17 um 13:04 schrieb David Pennington:
WAPresenter>>#initialRequest: aRequest worked for me although I would like to make a call in my code rather than having to alter the base code. Any thought on how I would do that? At the moment I am just copying the uri out to one of my instance variables in that method, which isn't very nice.
David
FYI, I don't have a class WABrowser in my VisualAge implementation so that line was no good to me.

--------- Original Message ---------
From: "Norbert Hartl"
To: "David Pennington" , "Seaside - general discussion"
Subject: Re: [Seaside] How do I find a REST request in a URL?
Date: 02/10/2017 10:51:45 (Fri)

Have a look at 

WAPresenter>>#initialRequest: aRequest
	"When a new session is started, all visible presenters (components or tasks) receive this message with the request as argument.

	A common usage for this is to initialize their state depending on the URL of the request. This is one building block for bookmarkable URL. The other is updateUrl: where you can manipulate the anchor urls generated by Seaside.

	You can not use #call: in here. Consider using a WATask instead and sending #call: in #go.

	See WABrowser for examples.
	You may want to access the WAPathConsumer (self requestContext consumer) to get a hold of the unconsumed path."


Norbert

> Am 10.02.2017 um 11:39 schrieb David Pennington :
> 
> Hi there. I want to start a Seaside page from a standard web page. 
> I want to use a standard REST format such as http://www.myseasideweb.com:8080/mySeasidePage?oneSpecialImage.
> in mySpecialPage, I want to recover the 'oneSpecialImage' to display a chose image on the page.
> 
> How would I do that in mySeasidePage please?
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Message sent using Winmail Mail Server


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1



Message sent using Winmail Mail Server


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          [hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside