AW: [Seaside] Component confusion
jbjohns at libsource.com
Wed Aug 2 17:34:15 UTC 2006
Oh no, I didn't read the documentation. :( I appologize, I really
thought I had read through everything. I guess I'm trying to learn too
many things at once.
Anyway, thank you very much for your help on this. Now it works
beutiful. Exactly as I would expect.
I read through the docs more thouroughly this time but I still have a
question about something.
I did notice that Seaside seems to want all styles to be in the code.
How hard would it be to set it up so that a call to the style method
will return a URL? For example, if I have a site that is static on an
Apache server, that happens to redirect all requests for applications to
seaside, but I want to use site wide style sheets for it. The easiest
thing would be if I can just get seaside to give a full URL for where to
find the stylesheet.
Von: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] Im Auftrag von Boris
Gesendet: Mittwoch, 2. August 2006 18:23
An: seaside at lists.squeakfoundation.org
Betreff: RE: [Seaside] Component confusion
Welcome to the Light Side :) Check these links out for the explanation,
You must be doing render: component somewhere but that component is not
included in the #children method of the container component.
Hope this helps,
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
boris at deepcovelabs.com
This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Jason
Sent: Wednesday, August 02, 2006 9:14 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Component confusion
I have just started using seaside, and I must say I am very impressed.
I have been able to fix all the problems I have ran into so far but now
I tried to make a new component and there seems to be something wrong
with it. I am confused because it seems to me like any other component
(im using the Store example as a reference). The message I get is
"Error. Components not found while processing callbacks:#(a WANavBar)".
What my component is trying to do is be the main navagation component
for a site I will eventually build. It is a very simple class at the
moment. It inherits from WAComponent and it has two instance variables:
items (the list items) and activeItem. Here is the renderOn: method:
html divNamed: 'navcontainer' with: [
html cssId: 'navlist'; unorderedList: [
items do: [:item|
(item = activeItem)
ifTrue: [ html cssId: 'active'].
html listItem: [
anchorWithAction: [self activeItem: item ] text: item
As you can see, all I'm trying to do is make a CSS aware navagation so
that the designer can just do his thing with CSS without having to
figure out how it gets made. I want any part of the site to use this.
I tried it in another test application where it does:
navBar := WANavBar new.
navBar items: #('Item one' 'Item two').
navBar activeItem: 'Item one'.
When I click on either item I get the above error.
Thanks very much for your help,
Seaside mailing list
Seaside at lists.squeakfoundation.org
More information about the Seaside