Some Seaside 3.0 questions?

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

Some Seaside 3.0 questions?

Conrad Taylor
Hi, I have the following questions regarding Seaside 3.0 API:

1)  Why doesn't Seaside have an explicit head tag factory selectors?  For example, I was expecting to see 
     something like this:

     SomeClass>>head

     Note:  This would be considered global within the entire Seaside application.  Also, I would be able to set both my CSS and
               Javascript here.

2)  How does one set standard and event attributes on body tag?  For example, I would like to be able to set the following 
     standard attributes:
     
     class, dir, id, lang, style, title, and xml:lang

     event attributes:

     onlick, ondbclick, and so on

3)  How does one set the appropriate attributes html tag?  For example, xmlns, dir, lang, and xml:lang. 

4)  When one is setting these attributes in (1), (2), and (3) will they be global to the component in question or will they be
     global to all components?

Thanks in advance,

-Conrad


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

Re: Some Seaside 3.0 questions?

Philippe Marschall
2009/11/28 Conrad Taylor <[hidden email]>:
> Hi, I have the following questions regarding Seaside 3.0 API:
> 1)  Why doesn't Seaside have an explicit head tag factory selectors?

They are automatically generated because they are always there.

> For
> example, I was expecting to see
>      something like this:
>      SomeClass>>head
>      Note:  This would be considered global within the entire Seaside
> application.  Also, I would be able to set both my CSS and
>                Javascript here.

You can do that in #updateRoot:. You can't do this in
#renderContentOn: because there you're already inside <body>

> 2)  How does one set standard and event attributes on body tag?  For
> example, I would like to be able to set the following
>      standard attributes:
>
>      class, dir, id, lang, style, title, and xml:lang
>      event attributes:
>      onlick, ondbclick, and so on

See WARenderLoopContinuation >> #updateRoot:. There are certainly some
convenience methods missing and we would welcome any patches in this
area.

> 3)  How does one set the appropriate attributes html tag?  For example,
> xmlns, dir, lang, and xml:lang.

See above.

> 4)  When one is setting these attributes in (1), (2), and (3) will they be
> global to the component in question or will they be
>      global to all components?

Global to the page that the component that implements #updateRoot: is on.

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

Re: Some Seaside 3.0 questions?

sebastianconcept@gmail.co
In reply to this post by Conrad Taylor
Hi Conrad,
unfortunately that is not that intuitive nor self explained as that. But if you make one root component, that I bet you need anyway, you can use the #updateRoot: of that root component. If that component is always parent of any of your web app components and use its #updateRoot: as if it were global to the app, then you achieve that actually in a better design than using anything global.
For the rest all that Phillipe told you is the way to go.
cheers
sebastian

----- Original Message -----
From: "Conrad Taylor" <[hidden email]>
To: "Seaside - general discussion" <[hidden email]>
Sent: Saturday, November 28, 2009 5:18:48 PM (GMT-0300) Auto-Detected
Subject: [Seaside] Some Seaside 3.0 questions?


Hi, I have the following questions regarding Seaside 3.0 API:


1) Why doesn't Seaside have an explicit head tag factory selectors? For example, I was expecting to see
something like this:


SomeClass>>head


Note: This would be considered global within the entire Seaside application. Also, I would be able to set both my CSS and
Javascript here.


2) How does one set standard and event attributes on body tag? For example, I would like to be able to set the following
standard attributes:

class, dir, id, lang, style, title, and xml:lang


event attributes:


onlick, ondbclick, and so on


3) How does one set the appropriate attributes html tag? For example, xmlns, dir, lang, and xml:lang.


4) When one is setting these attributes in (1), (2), and (3) will they be global to the component in question or will they be
global to all components?


Thanks in advance,



-Conrad


_______________________________________________
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