[Seaside] [ANN] New Seaside tutorial

Miguel Cobá m.coba.m at gmail.com
Thu Oct 25 14:53:53 UTC 2007


On 10/25/07, Philippe Marschall <philippe.marschall at gmail.com> wrote:
> 2007/10/25, Miguel Enrique Cobá Martínez <m.coba.m at gmail.com>:
> > Michael Perscheid wrote:
> > > Dear list,
> > >
> > > We proudly present a new Seaside tutorial (for Squeak 3.10 and Seaside
2.8).
> > > This tutorial was produced by the Software Architecture Group at the
> > > Hasso-Plattner-Institute (University of Potsdam). In ten chapters we
> > > describe step by step the development of a ToDo-application and
thereby
> > > demonstrate the main parts of the sophisticated web framework Seaside.
> > > Since this is the first version we hope that you can help to improve
the
> > > quality by providing feedback.
> > >
> > > Have a look at: http://www.swa.hpi.uni-potsdam.de/seaside/tutorial
> >
> > Hi, excellent tutorial.
> >
> > I have a problem though.
> > I have added the method
> >
> > charSet
> >      ^ 'iso-8859-1'
> >
> > to StSession in order to correctly display characters in spanish (á, é,
> > etc).
> >
> > I had 4 task in my todo list but the accented characters showed as a
> > weird symbol with a question mark in it (�). So I added the said method.
> >   The text displayed correctly after that.
> > Then I added the 5 task and instead of my todo list all I got was a page
> > full of  weird question marks characters:
> >
> > <���!���D���O���C���T���Y���P���E��� ���h���t���m���l���
> > ���P���U���B���L���I���C���
> > ���"���-���/���/���W���3���C���/���/���D���T���D���
> > ���X���H���T���M���L��� ���1���.���0���
> > ���S���t���r���i���c���t���/���/���E���N���"���...
> >
> > Thinking this had something to do with the charSet method, I removed it.
> > Nothing. The same page full of weird characters.
> >
> > Questions:
> > Has someone had a problem like this? Is there a solution?
> >
> > How can I input accented characters in a form and have Seaside manage
> > them correctly?
> >
> > Seaside generate a default charset of utf8, but my seaside session
> > outputs á as � unless I manually change the encoding to iso-8859-1 in
> > the View -> char encoding menu of firefox. Is this the intended
> > behavior? My debian environment is all in utf8 encoding.
>
> How did you install Seaisde? With the installer or Universes? Do you
> have spanish characters in the source code as well?

Sorry for not providing that information.

I have squeak 3.9.8-2 installed using aptitude from

deb     http://ftp.squeak.org/debian/ stable main

the image from squeak is version 3.9.7067.1

Later I downloaded the squeak-web image from Damien Cassou
sq3.10-7137web07.08.1.zip and that is the image I use for seaside learning.
The version of seaside in the squeak-web image is Seaside2.8a1-1r.428

This is a snipet of my code with characters in spanish:
From StLoginComponent>>renderContentOn:

renderContentOn: html

    html div
        class: 'generic';
        with:[
            html heading: StToDoLibrary applicationName.
            html render: self messageComponent.
            html text: 'Ingrese con su email y contraseña (no use la
contraseña de su email real):'.
            html form:[
                html textInput
                    on: #email of: self;
                    value: ''.
                html space.
                html passwordInput
                    callback:[:value | self password: (MD5 hashMessage:
value) asInteger asString];
                    value: ''.
                html submitButton
                    callback:[self validateLogin];
                    text: 'Login'.
                html paragraph
                    with:[    html anchor
                                callback:[self registerUser];
                                with: [html text: 'Registrarse para ',
StToDoLibrary applicationName.]]]].

Where I use the character ñ (&ntilde; in html) and it is displayed, before I
added the charSet message, as �.

Miguel Cobá




> Cheers
> Philippe
>
> > Again, good job.
> > Regards,
> > Miguel Cobá
> >
> >
> > >
> > > Regards
> > > Michael Perscheid
> > >
> > >
> > > _______________________________________________
> > > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20071025/be7b254f/attachment.htm


More information about the seaside mailing list