Porting from 2.6 to latest

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Porting from 2.6 to latest

Brett R. Taylor-2
Hi all,
I'm in the process of porting an old application from Seaside version
2.6 to the latest version of Seaside.  The first stop along the way is
to 2.7 to move from WAAbstractHtmlBuilder to WACanvas.   I used many
of the helper methods such as
WAAbstractHtmlBuilder>>tableRowWithLabel:column: to help with form
and table creation.   How would you recommend replacing these using
WACanvas?

Thanks,
Brett Taylor
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Porting from 2.6 to latest

Philippe Marschall
2009/7/5 Brett Taylor <[hidden email]>:
> Hi all,
> I'm in the process of porting an old application from Seaside version
> 2.6 to the latest version of Seaside.  The first stop along the way is
> to 2.7 to move from WAAbstractHtmlBuilder to WACanvas.   I used many
> of the helper methods such as
> WAAbstractHtmlBuilder>>tableRowWithLabel:column: to help with form
> and table creation.   How would you recommend replacing these using
> WACanvas?

You should get the exact same output with:

html tableRow: [
        html tableData class: 'label'; with: anObject.
        html tableData: aBlock ]

you might also want to consider:

html tableRow: [
        html tableHeading: anObject.
        html tableData: aBlock ]

and then adjust your CSS.

You can use rewrite rules [1] to automate the process.

If you have lots of forms you might want to check out Magritte to generate them.

 [1] http://leftshore.wordpress.com/2007/07/06/moving-from-27-to-28/

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside