[Seaside] Beginner quest:: With seaside update one value.
Squeak Smalltalk
wallenberg at gmail.com
Wed Jun 20 06:42:16 UTC 2007
hi,
Thanks it helps. But now I do not know how to doit the seaside/smalltalk way ;)
I have
renderContentOn: html
| user currentvalue |
user := self session user userName.
currentvalue := Setting repositorysetting
at: user
ifAbsent: ['not set'].
html text: 'Password set'.
html text: currentvalue ppmpwd.
html break.
html anchor on: #edit of: self.
But how will my edit method be? I have try to call it without big success :(
//Walle.
P.S You can also comment on the code style :D
On 6/19/07, Boris Popov <boris at deepcovelabs.com> wrote:
> You can set the current value of the element with the #value: message
> send,
>
> (html textInput)
> setFocus;
> value: self username;
> callback: [:v | self username: v]
>
> Hope this helps,
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> boris at deepcovelabs.com
>
> CONFIDENTIALITY NOTICE
>
> 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
> attachments.
>
> Thank you.
>
> > -----Original Message-----
> > From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> > bounces at lists.squeakfoundation.org] On Behalf Of Squeak Smalltalk
> > Sent: Tuesday, June 19, 2007 2:41 PM
> > To: Seaside - general discussion
> > Subject: [Seaside] Beginner quest:: With seaside update one value.
> >
> > Hello,
> >
> > I created a form page for create some data.
> > I have now the data and need to change it.
> >
> > How can I create a form already populated with the old values.
> >
> > I'm using only seaside. Can someone help me ?
> >
> > //Walle
> > _______________________________________________
> > 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
>
More information about the Seaside
mailing list