Seaside config for Comet (Seaside 2.9 A3)

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

Seaside config for Comet (Seaside 2.9 A3)

John Toohey
The comet.js file depends on Scriptaculous, so the Scriptaculous
libraries must be loaded first in your app. This is not a problem when
using WAAdmin to register the app, but if you use the Seaside Config
tool, then the libraries are ordered in alphabetical order, putting
the Comet library first in the list. Comet won't load this way.

The solution is to use WAAdmin, but it would be nice if it were
possible to change the order of the libraries with the Config tool.

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

Re: Seaside config for Comet (Seaside 2.9 A3)

Lukas Renggli
> The comet.js file depends on Scriptaculous, so the Scriptaculous
> libraries must be loaded first in your app. This is not a problem when
> using WAAdmin to register the app, but if you use the Seaside Config
> tool, then the libraries are ordered in alphabetical order, putting
> the Comet library first in the list. Comet won't load this way.

This is not the case since Comet-Core-lr.31 anymore. I rewrote the
Javascript support so that it can be used with Scriptaculous, JQuery,
or any other Javascript library as you please:

  Name: Comet-Core-lr.31
  Author: lr
  Time: 16 March 2009, 7:26:52 pm
  UUID: 93bcab26-d9f2-43b5-b075-024893a0ca5a
  Ancestors: Comet-Core-jf.30

  - comet does not depend on prototype.js anymore
  - rewrote the javascript side and fixed package dependencies

> The solution is to use WAAdmin, but it would be nice if it were
> possible to change the order of the libraries with the Config tool.

That's a known issue, see
<http://code.google.com/p/seaside/issues/detail?id=217>. We would
really appreciate help to make the configuration interface better, and
especially more user-friendly.

Lukas

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

Re: Seaside config for Comet (Seaside 2.9 A3)

John Toohey-2
Excellent, many thanks.

If the issue with the order of the libraries is just the UI, would it
be possible to add some JQuery Drag and Drop code to the pages?


On Thu, Apr 16, 2009 at 14:49, Lukas Renggli <[hidden email]> wrote:

>> The comet.js file depends on Scriptaculous, so the Scriptaculous
>> libraries must be loaded first in your app. This is not a problem when
>> using WAAdmin to register the app, but if you use the Seaside Config
>> tool, then the libraries are ordered in alphabetical order, putting
>> the Comet library first in the list. Comet won't load this way.
>
> This is not the case since Comet-Core-lr.31 anymore. I rewrote the
> Javascript support so that it can be used with Scriptaculous, JQuery,
> or any other Javascript library as you please:
>
>  Name: Comet-Core-lr.31
>  Author: lr
>  Time: 16 March 2009, 7:26:52 pm
>  UUID: 93bcab26-d9f2-43b5-b075-024893a0ca5a
>  Ancestors: Comet-Core-jf.30
>
>  - comet does not depend on prototype.js anymore
>  - rewrote the javascript side and fixed package dependencies
>
>> The solution is to use WAAdmin, but it would be nice if it were
>> possible to change the order of the libraries with the Config tool.
>
> That's a known issue, see
> <http://code.google.com/p/seaside/issues/detail?id=217>. We would
> really appreciate help to make the configuration interface better, and
> especially more user-friendly.
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



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

Re: Seaside config for Comet (Seaside 2.9 A3)

Lukas Renggli
> If the issue with the order of the libraries is just the UI, would it
> be possible to add some JQuery Drag and Drop code to the pages?

Exactly. Furthermore it would be cool if code for a given
configuration could be automatically generated.

The current configuration interface is really rigid and very much Web
1.0 style. It would be cool to make the configuration process much
more interactive. In Seaside 2.9 we currently have 2 packages that
provide an interface for the configuration, the traditional web based
one and an new OmniBrowser based one. It would be great for newcomers
to have a simple and visually appealing interface based on JQuery. We
would be glad for help.

Lukas

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

Re: Seaside config for Comet (Seaside 2.9 A3)

keith1y
Lukas Renggli wrote:

>> If the issue with the order of the libraries is just the UI, would it
>> be possible to add some JQuery Drag and Drop code to the pages?
>>    
>
> Exactly. Furthermore it would be cool if code for a given
> configuration could be automatically generated.
>
> The current configuration interface is really rigid and very much Web
> 1.0 style. It would be cool to make the configuration process much
> more interactive. In Seaside 2.9 we currently have 2 packages that
> provide an interface for the configuration, the traditional web based
> one and an new OmniBrowser based one. It would be great for newcomers
> to have a simple and visually appealing interface based on JQuery. We
> would be glad for help.
>
> Lukas
>  
Why not throw the whole configuration interface out. It is completely
unnecessary, and is a pain in the neck when it comes to deployment.

MySite-#libraries

    ^ #( SULibrary MyLibrary )

That says all you need as far as which libraries are needed and in which
order.

Keith

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

Re: Seaside config for Comet (Seaside 2.9 A3)

John Toohey-2
Keith,
Respectfully, I disagree. I just started a few months ago with
Seaside, and the configuration app helped me through some of the
tutorials, I found on the web. Even some of the sample apps, Google
charts for instance, require you to use the configuration app to get
it working. I agree that once you know how to configure you own
application, then doing it via a class method is the way to go.
Documentation aside, its not obvious what is required to add support
for the various libraries, and your own session objects etc.,
especially when you are writing your first application.

I also find it useful to be able to add the Seaside development
libraries for testing, and remove them as needed.

Just an opinion from someone starting with Seaside, :-)

I would be willing to try to update the UI, if people thought it useful.


On Fri, Apr 17, 2009 at 19:28, Keith Hodges <[hidden email]> wrote:

> Lukas Renggli wrote:
>>> If the issue with the order of the libraries is just the UI, would it
>>> be possible to add some JQuery Drag and Drop code to the pages?
>>>
>>
>> Exactly. Furthermore it would be cool if code for a given
>> configuration could be automatically generated.
>>
>> The current configuration interface is really rigid and very much Web
>> 1.0 style. It would be cool to make the configuration process much
>> more interactive. In Seaside 2.9 we currently have 2 packages that
>> provide an interface for the configuration, the traditional web based
>> one and an new OmniBrowser based one. It would be great for newcomers
>> to have a simple and visually appealing interface based on JQuery. We
>> would be glad for help.
>>
>> Lukas
>>
> Why not throw the whole configuration interface out. It is completely
> unnecessary, and is a pain in the neck when it comes to deployment.
>
> MySite-#libraries
>
>    ^ #( SULibrary MyLibrary )
>
> That says all you need as far as which libraries are needed and in which
> order.
>
> Keith
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



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

Re: Seaside config for Comet (Seaside 2.9 A3)

Lukas Renggli
> I would be willing to try to update the UI, if people thought it useful.

That would be great. We did not touch the Configuration UI in 2.9
much, there are many other things that requires our attention. However
as Seaside 2.9 is nicely packaged and different configurations can be
easily plugged in, we would really appreciate if people stepped in and
helped to build a great and easy to use AJAX based configuration
interface.

Cheers,
Lukas

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

Re: Seaside config for Comet (Seaside 2.9 A3)

keith1y
In reply to this post by John Toohey-2
John Toohey wrote:

> Keith,
> Respectfully, I disagree. I just started a few months ago with
> Seaside, and the configuration app helped me through some of the
> tutorials, I found on the web. Even some of the sample apps, Google
> charts for instance, require you to use the configuration app to get
> it working. I agree that once you know how to configure you own
> application, then doing it via a class method is the way to go.
> Documentation aside, its not obvious what is required to add support
> for the various libraries, and your own session objects etc.,
>  
Hello John,

lets give you a little hint of how this works in Beach (and Jetsam of old)

there is method

prefEnableCometHelper

^ false

Now if you change that to true, comet is enabled, and you don't need any
special session class.

If you want to use ShoreComponents there is a method

prefEableShoreHelper

^ false

If you change that to true, you dont need any special session classes,
you dont need to add any libraries, they are automatically added.

The interface to the server WAKom etc can be set up to look at
#prefEnableCometHelper, and it should know that a WAListener is required
for that helper to work.

You use code to write your whole application, and then when you move
your image to the deployed machine you have to switch to using a config
application in which half the settings need to be changed for
deployment. So why put that conceptual and actual discontinuity of tools
in there at all, its not as if these are even end user settings.

The advantage of code is that it can embody the knowledge needed to set
up the application. Dependencies between settings etc can be included.
It could also include documentation about the settings and options
available.

You can also provide already working setups which can be adjusted via
subclassing, why do you have to configure anything to use Google Charts?

Keith
>  


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

Re: Seaside config for Comet (Seaside 2.9 A3)

John Toohey-2
Keith,
Do you have a link to some documentation on Beach? I've tried to
install it in a fresh image but get some errors. Not sure if there is
a special order that I need to load the packages.

Thanks.

On Sat, Apr 18, 2009 at 21:20, Keith Hodges <[hidden email]> wrote:

> John Toohey wrote:
>> Keith,
>> Respectfully, I disagree. I just started a few months ago with
>> Seaside, and the configuration app helped me through some of the
>> tutorials, I found on the web. Even some of the sample apps, Google
>> charts for instance, require you to use the configuration app to get
>> it working. I agree that once you know how to configure you own
>> application, then doing it via a class method is the way to go.
>> Documentation aside, its not obvious what is required to add support
>> for the various libraries, and your own session objects etc.,
>>
> Hello John,
>
> lets give you a little hint of how this works in Beach (and Jetsam of old)
>
> there is method
>
> prefEnableCometHelper
>
> ^ false
>
> Now if you change that to true, comet is enabled, and you don't need any
> special session class.
>
> If you want to use ShoreComponents there is a method
>
> prefEableShoreHelper
>
> ^ false
>
> If you change that to true, you dont need any special session classes,
> you dont need to add any libraries, they are automatically added.
>
> The interface to the server WAKom etc can be set up to look at
> #prefEnableCometHelper, and it should know that a WAListener is required
> for that helper to work.
>
> You use code to write your whole application, and then when you move
> your image to the deployed machine you have to switch to using a config
> application in which half the settings need to be changed for
> deployment. So why put that conceptual and actual discontinuity of tools
> in there at all, its not as if these are even end user settings.
>
> The advantage of code is that it can embody the knowledge needed to set
> up the application. Dependencies between settings etc can be included.
> It could also include documentation about the settings and options
> available.
>
> You can also provide already working setups which can be adjusted via
> subclassing, why do you have to configure anything to use Google Charts?
>
> Keith
>>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



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

Re: Seaside config for Comet (Seaside 2.9 A3)

keith1y
Hello John,

The documentation you are looking for, such that exists is in
squeaksource/Beach Beach-Packages, which you dont have to load, but if
you do, requires Sake and Sake/Packages, available via Installer
install: 'Packages'.

This at least attempts to document dependencies, but althoug they are
written as executable package definitions, I have made not attempt to
test them, they are merely present to document what each package is and
what dependencies are known.

Beach is very very new, but my first project is due to go live in a
couple of weeks time.

Keith

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