Felix Dorner | 20 Jul 01:42
Picon

Problem with Checkboxes

Hey,

first, I am a Squeak/Smalltalk newcomer, so please forgive me if I make 
an obvious error. I also give as much detail as I can and would greatly 
appreciate general comments.

I am trying to write a small survey application, for that I created a 
class WASurvey:

WAComponent subclass: #WASurvey
    instanceVariableNames: 'survey questionsPerPage currentPage'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'questionaire'

survey is a list of questions, questionsPerPage/currentPage should be 
obvious.

The component is rendered like that:

renderContentOn: html
    | first last |
    first := currentPage - 1 * questionsPerPage + 1.
    last := first + questionsPerPage - 1.
    html heading: survey title.
    html text: currentPage; text: '/'; text: self pageCount.
    html form: [
        survey questions from:first to:last do: [ :question | question 
renderContentOn: html ].
        html submitButton text: 'Previous Page';
(Continue reading)

Matthias Berth | 18 Jul 17:34

Help wanted with a small Seaside e-commerce application

Hello,

I am looking for a consultant (or a student wanting a nice summer job)
to help me get a small e-commerce application from the current
prototype stage to launch. The application is based on Seaside and
Pier, major missing features are:

- credit card processing (should be done via an external provider)
- customer billing information
- persistence (something like SandstoneDB should be enough)
- invitations (users inviting other users)
- recording of transactions (sending an email and putting an entry
into a log when someone buys something)
- various deployment issues (squeak on linux), like backup at regular
intervals, communicating via http with another process.

The system currently has around 60 classes of which 16 are unit tests
or Albatross tests. The system will be launched in stages, e.g.
invitations won't be there initially.

I am willing to let you publish non-proprietary parts of this as open
source. For example, a good packaged solution for credit card
processing (maybe based on code from Ramon's image) would be nice to
have for Seaside newcomers.

If you have proven Seaside skills and an attitude to produce
well-tested and refactored code, please apply with a sample of your
work. If you cannot show code, please apply anyway, but be prepared to
complete a (paid) trial task.

(Continue reading)

John Thornborrow | 18 Jul 13:05
Picon

Processing callbacks on scriptaculous forms

Hello,

I'm getting the "Component not found whilst processing callbacks" error 
for a form that is rendered via scriptaculous. Am I missing something?

Root>>initialize
  super initialize.
  editor := Editor new "Editor just renders a form"

Root>>children
  ^Array with: editor

Root>>renderContentOn: html
  html unorderedList: [
    self items do: [:each |
      html listItem: [
        html anchor
          onClick: (html updater
            id: #editor;
            callback: [:ren | ren render: (editor item: each)]);
            with: 'Edit ', item description]]].

  html div id: #editor

Thanks,
John.

******************************************************************************************************************************************
This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the
email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the
(Continue reading)

Karsten | 17 Jul 17:32
Picon
Favicon

Draggables and triggerPassenger:

Hi list,

I just tried to use triggerPassenger: in an onDrag event. The problem is 
that Firebug sais that argument[0].id is undefined and thus stops 
executing the script.
Is that a bug or did I miss something?

The code that I tried is:

(html div)
    passenger:5;
    script: (html draggable onDrag:
            (html evaluator triggerPassenger:[:obj | obj halt]));
    style:'width:50px;height:50px;background-color:red'.

Kind Regards
Karsten

--

-- 
Karsten Kusche - Dipl.Inf. - karsten <at> heeg.de
Tel: +49 3496 21 43 29
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812
Freeman Mayberry | 17 Jul 17:06
Picon

WAButtonTest

I was going through the Functional Seaside Test Suite (package name: Seaside-Tests-Functional) and I came across the Button test.  At first everything seemed fine but apparently the reset button is not supposed to do anything.  Or maybe it is, and mine is just not working for some reason.
 
I was wondering if there was a simple way to make the reset button do what it is supposed to do.  I looked up the beReset method and it just sets the type to reset, but then I got lost in the code.
 
renderResetOn: html
 html heading level2 with: 'Reset'.
 html paragraph: 'Clicking the button should not submit the form reset the value in "Input"'. (confusedly worded)
 html button beReset; with: 'Reset'
 
Please note that I am an extreme newbie to Seaside and I guess I am new to programming in general.

--
Freeman
_______________________________________________
seaside mailing list
seaside <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Freeman Mayberry | 17 Jul 17:06
Picon

WAButtonTest

I was going through the Functional Seaside Test Suite (package name: Seaside-Tests-Functional) and I came across the Button test.  At first everything seemed fine but apparently the reset button is not supposed to do anything.  Or maybe it is, and mine is just not working for some reason.
 
I was wondering if there was a simple way to make the reset button do what it is supposed to do.  I looked up the beReset method and it just sets the type to reset, but then I got lost in the code.
 
renderResetOn: html
 html heading level2 with: 'Reset'.
 html paragraph: 'Clicking the button should not submit the form reset the value in "Input"'. (confusedly worded)
 html button beReset; with: 'Reset'
 
Please note that I am an extreme newbie to Seaside and I guess I am new to programming in general.

--
Freeman
_______________________________________________
seaside mailing list
seaside <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Squeaker | 16 Jul 23:54
Picon

rebuild children - when to do it

Greetings,

In my renderContentOn: method I am making a call to my method 
rebuildChildren which reconstructs my children on the fly. This is done 
as the first thing in renderContentOn:

The code appears to work.

My question: Is it ok to rebuild my children at rendering time?

Thanks,
Frank
Kyle Dawkins | 16 Jul 23:45
Favicon

OSCON "contest"

Hey Seasiders

The RoR folks are running this at OSCON:

http://pdxfoscon.org/competition

Probably a good opportunity to show-off what Seaside can do.  I can't  
attend so I can't volunteer but presumably since they mention Seaside  
and Gemstone, there are some people already signed up in the Seaside  
camp?  Yes, yes, it's a silly contest (and proves very little), but  
could result in a few heads turned in our direction, no?

I'd love to watch this... hopefully someone will provide a screencast  
at some point?!

Cheers

Kyle
kyle <at> idealist.org
Marcin Tustin | 15 Jul 03:17

Re: About Seaside 3.0

My instinct is that if you can get the html into xhtml a "simple" xslt or other xml manipulator would be able to do this easily. You should try doing this on your own, if you have any free time at all.

On 7/14/08, Randal L. Schwartz <merlyn <at> stonehenge.com> wrote:
>>>>> "Sean" == Sean Allen <sean <at> monkeysnatchbanana.com> writes:

Sean> What I would like to see, is the ability to take html and generate
Sean> smalltalk code to generate said html from it. Then I can have a designer
Sean> do their thing and take it and process it.

I was thinking about that too.  Perhaps something OMeta based for easy
extending and tweaking.  An HTMLToSeasideCode project, anyone?


--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
_______________________________________________

seaside mailing list
seaside <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
seaside <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Jared Hirsch | 14 Jul 19:08
Picon
Favicon

thoughts on Seaside 3.0

I've been lurking in the squeak/seaside lists for a while, and feel I should add to the discussion of new
features for a possible seaside 3.0.

The major obstacle that I see to further adoption and growth of seaside is widespread community ignorance
of the design side of web development. This has to do with templates, but it runs much, much deeper.

The html templates issue has two sides. From a design standpoint, burying html inside smalltalk leads to
opposite but equal maintainability problems and inelegant html code. 
  The reality of the web is that good graphic designers create XHTML by hand, and giving good designers
control only of the CSS (like in seaside 2.8) isn't nearly enough. I think everyone should spend an
afternoon reading articles on 'a list apart' to start to understand that there are intelligent people who
devote lots of time to hand-coding "beautiful html." And take a look at the design openings on 'authentic
jobs' to see that there are web design companies that pay lots of money for this specific skill.
  These people aren't stupid, just different; after all, if one can make a beautiful shoe, why not, in
principle, beautiful html? The significance of the word "beautiful" is that we've got a different but
legitimate alternative aesthetic perspective, a different community; and Seaside, in its current
form, is wholly incompatible with this design-oriented community.

Consider that RoR was written by a guy who works with graphic designers all day; he was aware of this
fundamental web dichotomy. I think that most smalltalkers come from a very different background
(traditional non-web programming), with a very different set of assumptions. I'm not attacking or
judging these differences, only pointing out that critically analyzing them is crucial if seaside is
going to be useful in commercial web development. Right now, it's not.

I also want to mention that one of the best things about the web is that it's a true crossover field, which
computer science ceased to be a generation ago: nobody gets a 'web sciences' degree (yet). Instead, there
are web designers with backgrounds in print design, print/TV advertising, copywriting, or graphic
design, and they're all learning to work with programmers of all stripes who have moved to web
programming. It's an exciting and still young (fast evolving) field.
  And just as the deeper aspects of design are only just starting to appear on the web--typography on the web is
in absolute primitive infancy, while in print it's been established for hundreds of years; grid-based
design is finally coming into the open as well--so the deeper aspects of programming
(patterns/reusability, XP/agile, true OOP) are in their web-infancy too. 
  The smalltalk community is one of those deep mines of knowledge that could enrich web culture with the
mature perspective that decades of experience bring--but it's going to take some flexibility from the
smalltalkers. To be honest, I don't see that flexibility in the community, and I think it's the
make-or-break question: if the good old way of programming isn't 100% appropriate on the web, is there
interest in exploring the new thing? Or is the interest in trying to force the new thing to fit the old way?
Right now, I think Seaside is much closer to the latter.

I sincerely hope that someone can enlighten me as to how seaside is, or is planning to become, accommodating
for designers who hand-code XHTML, and the web design agencies that employ them. This is only the first
hurdle, but it is I think the toughest, because it requires a fundamental change in perspective.
  I started studying smalltalk, and have kept at it, because it solves the problem of making sense of the
conceptually muddled third-hand OOP of PHP (which I use at work); smalltalk is a profound language,
constructed with powerful and simple metaphors, and nothing would make me happier than to do all my
programming in it. I want seaside to take me there. Right now, it can't--but it could. Without templating,
or some equivalent acknowledgment of the values and needs of the design field, it most certainly never
will. - Jared

----- Original Message ----
From: Julian Fitzell <jfitzell <at> gmail.com>
To: Seaside - general discussion <seaside <at> lists.squeakfoundation.org>
Sent: Sunday, July 13, 2008 9:46:43 AM
Subject: Re: [Seaside] About Seaside 3.0

Yes, I think this is the key point. I think there's a general
consensus among most Seaside developers at this point that we prefer
not having a template engine. I hesitate to make a blanket statement
such as "templates are bad", though, and as Colin said various
template systems have existed.

When we started writing Seaside 2 (and again during the first few
successive minor releases), we concentrated on ensuring a layered
architecture. The goal was to allow people to use many of the layers
independently of each other and for alternatives to some of the layers
to develop.

In the end, this hasn't really been exercised much but I'm sure the
boundaries are still defined enough for an interested party to easily
develop a template system (or resurrect Nori). If that layering has
become less defined somewhere and prevents doing so, I'm sure there
would be support for correcting that.

Julian

On Sun, Jul 13, 2008 at 10:47 AM, Marcin Tustin <mm3 <at> zepler.net> wrote:
> If seaside is truly capable of being integrated with external libraries (and
> I cast no doubt on this), then it should be possible for the enthusiasts for
> templates to resurrect the template system, or write their own.
>
> On 7/12/08, Ramon Leon <ramon.leon <at> allresnet.com> wrote:
>>
>> >
>> > I was talking about html templates, because, they are easier
>>
>> > to build, and read, with css, than the seaside concepts, I think.
>>
>>
>> Then I agree with Colin, templates are a step backwards, been there, done
>> that, glad we've moved beyond it.  Templates were never a good idea
>> because
>> they force you to mix in some kind of code in with them to do anything at
>> all interesting, even a simple grid full of data requires at a minimum a
>> loop construct and html is a horrible syntax for a programming
>> language.  If
>> Smalltalk code is capable of representing the exact same data structures
>> as
>> html is, then we don't need html, and the tools for dealing with code are
>> vastly superior to the tools for dealing with html.  Seaside's throwing
>> out
>> templates is one of its best and most bold features.
>>
>>
>> Ramon Leon
>> http://onsmalltalk.com
>>
>> _______________________________________________
>> seaside mailing list
>> seaside <at> lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> _______________________________________________
> seaside mailing list
> seaside <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
seaside <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Esteban Lorenzano | 14 Jul 18:46
Picon

#handleRequest: called twice?

Hi,
I'm doing some digging in Seaside code, and recently found that 
WAExpiringHandle>>handleRequest: is called twice each request I do... 
is that the way it is supposed to work or I'm doing something wrong?

Cheers,
Esteban

Gmane