The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Plugging Away in Web Velocity

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Plugging Away in Web Velocity Posted: Jul 2, 2009 7:37 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Plugging Away in Web Velocity
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

I've been doing some website/web app building in Web Velocity and Seaside today; it is so much easier than working with the server page/servlet model. Instead of a page and a servlet, I had this for a small form:


html form: 
		[html table: 
			[html tableRow: [self renderUserRowOn: html].
			html tableRow: [self renderPasswordRowOn: html].
			isLoggedIn ifTrue: [html tableRow: [self renderFileRowOn: html]].
			html tableRow: [self renderButtonRowOn: html]]]

And the code for handling the form is all in the #renderButtonRowOn: method - not sitting in two places (form and servlet). Then there's the whole component based assembly thing. I built the Media Search app, but that mostly used Web Velocity scaffolding - I didn't get into much Seaside level work. Here's the rendering of the main part of the app I was mucking with:


renderContentOn: html

	html div
		id: #wrapper;
		with: [self renderDetailsOn: html]

renderDetailsOn: html
	
	html render: WVHeader new.
	html render: WVMain new.
	html render: WVFooter new

I know other people have written about this before, but doing this kind of component based assembly in code, as opposed to with html include statements, just makes life simpler. Need to change something? Use the refactoring tools to make changes. Instead of moving back and forth between toolsets, everything is in one place. It's all very cool.

Technorati Tags: ,

Read: Plugging Away in Web Velocity

Topic: Getting weeknumbers in Google Calendar Previous Topic   Next Topic Topic: Stupidity Squared

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use