[Seaside] (newbee) Resizing items + a bit more.

Marcus Pedersén marcus.pedersen at comhem.se
Mon Oct 31 21:48:27 UTC 2005

Thanks for the answers!

It does not work with html attributes tough.
Here is my code part:
 html form: [
  html heading: title.
  html attributes
   at: 'row' put: [20];
   at: 'cols' put: [80].
  html textAreaWithValue: (time, content) callback: [:v| content := v].
  html break.
  html submitButtonWithAction: [] text: 'Spara'.
This does not change the textArea size.
Please help.
I have tried to make a message on class side called "initialize" and the
code in it is:
 (self registerAsApplication: 'webnote').
I wasn't able to find my page with URL:
until I had been in to config page.
I am probably doing something wrong please help!
----- Original Message ----- 
From: "Philippe Marschall" <philippe.marschall at gmail.com>
To: "The Squeak Enterprise Aubergines Server - general discussion."
<seaside at lists.squeakfoundation.org>
Sent: Monday, October 31, 2005 10:30 PM
Subject: Re: [Seaside] (newbee) Resizing items + a bit more.

> Hi!
> I am new to Seaside and has quite resently started of with a web-app.
> I have made a page with a textArea but I want the textArea to be larger.
> I have looked trough some code parts and found out that in WAHtmlRenderer
> the message (textAreaWithValue: callback:) specifies the size of the item.
> If I change that message, my textArea do change, but I just asume that
> then
> ALL textAreas changes in size. Right?
> So how do I just change my textArea in size?
They only get in #textAreaWithValue: callback: if they are not set before.
You can set them the same way you can set any attribute of an html element.

html attributes
at: 'rows' put: [ 5 ];
at: 'cols' put: [ 40 ].
html textArea....

> Second question: When I made my class ready the way I want it to show and
> interact, I have to log in at seaside/config and add my entry point to be
> able to see my page (a have also figured out about canBeRoot).
> How can I make this by code?
MyClass registerAsApplication: 'myclass'

> Third question: Is is possible to maka a class and make instances that
> becomes different pages? I am supposed to read in from a file what the
> header is supposed to be called aso.

There is no such thing as a page, just components. I don't see what
you want to do, but you probably are looking for #call:, perhaps in
conjunction with a WATask.
Seaside mailing list
Seaside at lists.squeakfoundation.org

More information about the Seaside mailing list