[Seaside] How to create checkboxes
philippe.marschall at gmail.com
Thu Jul 5 22:55:59 UTC 2007
2007/7/5, Kazuki Sanada <hartzzenen at gmail.com>:
> Well, what I'm trying to do is creating a table and put some checkboxes
> inside this table which set some properties. And I want to have a submit
> button. The difficulty I'm facing is that since the checkboxes require an
> enclosing form, I'm unable to put this submit button outside the table. I've
> tried putting the table inside the form, but that didn't work...the submit
> button shows up inside the table... :)
> How can I do this?
A form around the table is the way to go, your approach sounds right.
Sketched the code should look like this:
html form: [
html table: [ ... ].
html sumbitButtonXXX ]
> On 7/5/07, Philippe Marschall <philippe.marschall at gmail.com> wrote:
> > 2007/7/3, Kazuki Sanada <hartzzenen at gmail.com>:
> > > Thanks for the tips! They're really helpful!
> > >
> > > I think I found out why the 'id' attribute didn't work. I think it was
> > > because I was using WAHtmlRender as my RendererClass. Am I right?
> > Yepp, WAHtmlRender is deprecated and will be removed in future versions.
> > > Now that I noticed that I was using WAHtmlRenderer, I managed to create
> > > checkboxes using this:
> > >
> > > checkboxWithValue:callback:
> > >
> > > I also noticed that in this class, there is a method
> > > checkboxWithValue:callback:usingFormNamed: , or
> > > like that. How am I supposed to use that? It seems that you have to pass
> > > form name, but how can I do that?
> > html cssId: 'WAHtmlRenderIsUncool'.
> > html form: [
> > html
> > checkboxWithValue: self checked
> > callback: [ :value | self checked: value ]
> > usingFormNamed: 'WAHtmlRenderIsUncool' ]
> > Clicking on the checkbox will then submit the form.
> > > Can I associate a checkbox with a
> > > different form? (by different, I mean not the one enclosing the
> > I guess so, but then the checkbox callback will not be evaluated.
> > Cheers
> > Philippe
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside