logo
  • Jobs
  • About Me
  • Contact
  • Home
« An Effective ScrumMaster…
Akismet Milestone »

MonoRail and WebControls

Posted May 16th, 2007 by Matt Berther

I’ve been using Castle’s MonoRail for new websites that I’ve developed for the last couple years or so. I absolutely love the separation of concerns and the testability that this MVC framework brings to me. It’s been amazing to watch this project grow under Hammett’s leadership over this time. It seems that every time that I start to think about doing something, the framework already supports it. However, not everyone sees the advantages…

When I talk to traditional ASP.NET developers about MonoRail, the first thing I usually hear is something along the lines of: “WHAT?!?! You dont have WebControls? You mean I have to handcode the HTML for a DataGrid?”

Until recently, I had no way of really countering that. Some people think that being able to put together things in a drag-drop manner is much more important than the loose coupling that an MVC type of framework gives. Unfortunately, when that is the case, it’s very difficult to get the other side to see the error of their ways. :)

Until now… Recently, MonoRail has introduced the concept of ViewComponents, which are reusable pieces of functionality that you can introduce into your application. Some of my favorite are the DiggStylePagination component, which makes it absolutely dead simple to put paging on any sort of data table.

I also recently discovered a very nice set of use controls written in Javascript which allow you to build interactive web apps. The Yahoo! User Interface Library is an incredible suite of FREE controls.

The beauty of a control library like this is that as you become more and more familiar with it, you’re not locking yourself into a specific framework. The YUI Library will work with static HTML files, Ruby on Rails, ASP.NET and (you guessed it) MonoRail. Why wouldn’t you give this library a look?

5 Comments

This entry was posted on Wednesday, May 16th, 2007 at 12:27 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

joeyDotNet
May 16th, 2007

Yeah, I’ve been wanting to check out the Yahoo UI library. Sounds pretty cool.

BTW, I’m also doing a lot of MonoRail development these days and have a few blog posts about View Components specifically that may be of interest…

http://joeydotnet.com/blog/category/16.aspx

David
May 16th, 2007

When I talk to traditional ASP.NET developers about MonoRail, the first thing I usually hear is something along the lines of: “WHAT?!?! You dont have WebControls? You mean I have to handcode the HTML for a DataGrid?”

You know, I find that slightly amusing. When I first started doing ASP.NET applications, I often opted to use Repeaters over DataGrids — I didn’t like DataGrids because they didn’t allow me to write my own HTML, and I wanted to do certain things with the table headers that DataGrids weren’t flexible enough to do without writing a bunch of code to override the cell rendering.

What scared me was that there were a bunch of devs where I worked who preferred to mess around with the rendering rather than have to write their own HTML…

Marco
May 21st, 2007

You should also have a look at http://www.extjs.com.. it’s even better than YUI!

David Starr
May 21st, 2007

Does no one on this thread see the advantage of re-usable UI compnents? Certeinly the MVC frameworks are wonderful, no debate, and the productivity gains of UI components have saved even more time and effort over the years.

I am glad that these worlds are startign to come together a bit, but it seems a bit strong to make fun of people who insist that re-writing yet another sortable data table layout by hand is a waste of time. Count me among them.

Matt
May 21st, 2007

Yes, David… We *ALL* see the advantage of re-usable *UI components*. No one has stated anything different.

The post and ensuing discussion has been exactly about that… finding reusable UI components for MonoRail, which should help immensely with MonoRail adoption.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
-->

flag
Favorite Charity
wounded warrior project
Search
Social
  • mattberther on twitter
  • mattberther on linkedin
Syndication
Archives
  • January 2010
  • September 2009
  • July 2009
  • June 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
mattberther.com © 2003 - 2010