Glamour on Seaside - Steps

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

Glamour on Seaside - Steps

Andre Hora
Hi Tudor,

As we talked today, I would like to know the steps to get Glamour running on Seaside.
Thank you!

Regards,

--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour on Seaside - Steps

jfabry

+1 :-)

On 16 Dec 2010, at 15:32, Andre Hora wrote:

> Hi Tudor,
>
> As we talked today, I would like to know the steps to get Glamour running on Seaside.
> Thank you!
>
> Regards,
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour on Seaside - Steps

Andrei Chis
Hi,

First you have to load Glamour-Seaside. To do this execute the script bellow in Pharo 1.1 and then WAKom startOn: 8081(it should also work in Pharo 1.1.1 but not in Pharo 1.2).

Gofer new
       squeaksource: 'Glamour';
       package: 'ConfigurationOfGlamourSeaside';
       load.
((Smalltalk at: #ConfigurationOfGlamourSeaside) project version: '0.2') load.

It is best if you do it in an environment where you loaded Moose, as some of the examples will not work otherwise. If you want to skip this here is an image with Moose and Glamour-Seaside on Pharo 1.1.1: http://dl.transfer.ro/glamour-seaside-transfer_RO-15dec-4e1080.zip.

Once this is done in order to get a Glamour browser working in Seaside you have to subclass SGLComponent and implement SGLComponent>>browser and SGLComponent>>model. Also in the new class you have to implement and execute the class method initialize, in order to register the browser. For an example look at SGLTreeWithLeafTags, or any other class in Glamour-Seaside-Examples. Then just point you browser to the path you specified in the initialize method and you're done.

If you only want to rapidly test a browser, without creating a new class, execute:
    browser registerInSeasideOn: aModel.
You browser will be registered at the address 'http://127.0.0.1:8081/glamour/pluggable'. For example:
|browser|
browser :=  GLMTabulator new.
browser row: #aRow.
browser transmit to: #aRow; andShow: [:a | a list].
browser registerInSeasideOn: (1 to: 10).

The current version of Glamour-Seaside is still in development and work best on Firefox. It also "works" on Safari but the layout still has issues.
I hope this will help you. If not please let me know.

Cheers,
Andrei




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour on Seaside - Steps

Andre Hora
Thank you Andrei!

Cheers,

On Sat, Dec 18, 2010 at 1:29 AM, Andrei Vasile Chis <[hidden email]> wrote:
Hi,

First you have to load Glamour-Seaside. To do this execute the script bellow in Pharo 1.1 and then WAKom startOn: 8081(it should also work in Pharo 1.1.1 but not in Pharo 1.2).

Gofer new
       squeaksource: 'Glamour';
       package: 'ConfigurationOfGlamourSeaside';
       load.
((Smalltalk at: #ConfigurationOfGlamourSeaside) project version: '0.2') load.

It is best if you do it in an environment where you loaded Moose, as some of the examples will not work otherwise. If you want to skip this here is an image with Moose and Glamour-Seaside on Pharo 1.1.1: http://dl.transfer.ro/glamour-seaside-transfer_RO-15dec-4e1080.zip.

Once this is done in order to get a Glamour browser working in Seaside you have to subclass SGLComponent and implement SGLComponent>>browser and SGLComponent>>model. Also in the new class you have to implement and execute the class method initialize, in order to register the browser. For an example look at SGLTreeWithLeafTags, or any other class in Glamour-Seaside-Examples. Then just point you browser to the path you specified in the initialize method and you're done.

If you only want to rapidly test a browser, without creating a new class, execute:
    browser registerInSeasideOn: aModel.
You browser will be registered at the address 'http://127.0.0.1:8081/glamour/pluggable'. For example:
|browser|
browser :=  GLMTabulator new.
browser row: #aRow.
browser transmit to: #aRow; andShow: [:a | a list].
browser registerInSeasideOn: (1 to: 10).

The current version of Glamour-Seaside is still in development and work best on Firefox. It also "works" on Safari but the layout still has issues.
I hope this will help you. If not please let me know.

Cheers,
Andrei




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour on Seaside - Steps

Tudor Girba
Please just note that GlamourSeaside will load the default of Glamour which in its turn loads a Shout that only works in Pharo 1.2. If you want to load GlamourSeaside in 1.1.1, you also have to load back the right version of Shout:

(ConfigurationOfShout project version: '1.1.1') load

Andrei, you should update the 0.2-baseline to depend on Glamour 2.0-beta.6-baseline.

Cheers,
Doru


On 18 Dec 2010, at 02:04, Andre Hora wrote:

> Thank you Andrei!
>
> Cheers,
>
> On Sat, Dec 18, 2010 at 1:29 AM, Andrei Vasile Chis <[hidden email]> wrote:
> Hi,
>
> First you have to load Glamour-Seaside. To do this execute the script bellow in Pharo 1.1 and then WAKom startOn: 8081(it should also work in Pharo 1.1.1 but not in Pharo 1.2).
>
> Gofer new
>        squeaksource: 'Glamour';
>        package: 'ConfigurationOfGlamourSeaside';
>        load.
> ((Smalltalk at: #ConfigurationOfGlamourSeaside) project version: '0.2') load.
>
> It is best if you do it in an environment where you loaded Moose, as some of the examples will not work otherwise. If you want to skip this here is an image with Moose and Glamour-Seaside on Pharo 1.1.1: http://dl.transfer.ro/glamour-seaside-transfer_RO-15dec-4e1080.zip.
>
> Once this is done in order to get a Glamour browser working in Seaside you have to subclass SGLComponent and implement SGLComponent>>browser and SGLComponent>>model. Also in the new class you have to implement and execute the class method initialize, in order to register the browser. For an example look at SGLTreeWithLeafTags, or any other class in Glamour-Seaside-Examples. Then just point you browser to the path you specified in the initialize method and you're done.
>
> If you only want to rapidly test a browser, without creating a new class, execute:
>     browser registerInSeasideOn: aModel.
> You browser will be registered at the address 'http://127.0.0.1:8081/glamour/pluggable'. For example:
> |browser|
> browser :=  GLMTabulator new.
> browser row: #aRow.
> browser transmit to: #aRow; andShow: [:a | a list].
> browser registerInSeasideOn: (1 to: 10).
>
> The current version of Glamour-Seaside is still in development and work best on Firefox. It also "works" on Safari but the layout still has issues.
> I hope this will help you. If not please let me know.
>
> Cheers,
> Andrei
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"One cannot do more than one can do."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev