[Seaside] Subcomponents, Multicounter example

Julian Fitzell julian at beta4.com
Sat Aug 16 11:40:09 CEST 2003


fiberTel wrote:
> Hello, my name is Mariano Matayoshi. I've been trying to use
> subcomponents but with little success by now.
> I have a little project and a part of this project is submitting a very
> long form (sometimes more than 200 fields)that I present in a table. What I intend to do is to have
> two horizontal frames. The upper frame for this potentially long form,
> and the lower frame for the submit button and other info, so this button is always
> available no matter in which row I am.

Are you actually talking about HTML frames?  If so how are you planning 
to submit from a button that isn't inside the <form> tag?  Well I guess 
you can do it with JavaScript - perhaps you've already thought about this.

Anyway, none of us ever use this kind of frames so I'm not sure exactly 
what kind of issues you might run into there.

What I would suggest is to split the form up into smaller chunks and 
present it as a wizard so the user can be guided through it - 200 fields 
is a lot to put on one page.

If there is some reason you need to have such a big form, you could 
maybe use an IFRAME to split it up but keep it on the same page.  I'm 
never quite sure which browsers support them though.

> I know there used to be a Multicounter example for Seaside 0.94
> Is there any example or pointers you can give me to deal with this
> form with Seaside 2.2 (I guess this is the version I'm using from the
> SqueakMap)?

Can you clarify a little more the problems you are having?  It isn't 
clear to me from your message exactly how you are approaching this or 
what the problem is.

Using a subcomponent should be as easy as doing:

self call: MySubComponent new.

in an action method if you're calling it, or:

aRenderer render: mySubComponent.

in a render method if you want to embed it.  But like I said, I'm not 
exactly sure where you're having problems.

Julian


-- 
julian at beta4.com
Beta4 Productions (http://www.beta4.com)



More information about the Seaside mailing list