- We design and build extraordinary applications for companies looking to make the next great idea a reality.
- learn more
MetaWidget - Convention over Configuration UI
I already know that I'm not going to do MetaWidget justice as I describe it. What the heck is it? According to the MetaWidget site, it is...
Metawidget takes your domain objects and automatically creates User Interface widgets for them, saving you handcoding your UIs and leaving you to concentrate on stitching together your application.
Think of a configurable form widget driven off of your beans through runtime inspection of properties, getters and setters, annotations, etc.
But wait, there's more. It automatically detects your backend at runtime and makes friends with Hibernate, Spring, Seam, Groovy, etc.
But that's not all you get. MetaWidget will work with JSF, Swing, GWT, Android, Struts, and on and on. I'm just scratching the surface here, including how it will work with IDE GUI Builders and such.
Definitely check out the MetaWidget tutorial.
Just a little taste of MetaWidget code from the tutorial:
public class Person { public String name; public int age; public boolean retired; } import javax.swing.*; import org.metawidget.inspector.propertytype.*; import org.metawidget.swing.*; public class Main { public static void main( String[] args ) { Person person = new Person(); SwingMetawidget metawidget = new SwingMetawidget(); metawidget.setInspector( new PropertyTypeInspector()); metawidget.setToInspect( person ); JFrame frame = new JFrame("Metawidget Tutorial"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(metawidget); frame.setSize(400, 220); frame.setVisible(true); } }
I have a couple of tedious GWT/Swing apps with lots of forms that are going to see and application of MetaWidget.
Topics: Android, GWT, JSF, MetaWidget, Struts
Comments: 1 so far
Leave a comment
About Pathfinder
Recent
- iPhone SDK: UIViewController Testing & TDD
- Icons are evil; so are menus - unless you do them right
- The Truth About Designing For Security
- GWT, Gadgets and OpenSocial, Part 2
- Has Many has_many: A Refactoring Story
- The Hidden Power of Canvas
- Review of fixture_replacement2 plugin
- Chess Game Viewer in GWT
- From JSP to Ruby on Rails: First thoughts on front-end coding conventions
- Helpers and Partials
Archives
- November 2008
- October 2008
- September 2008
- August 2008
- July 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


Dietrich,
Thanks for your blog entry, and your interest in Metawidget.
I’ll be very interested to hear how you go, and very willing to help/make changes to Metawidget to suit your needs.
User feedback like yours is critical as we move towards a 1.0 release!
Regards,
Richard.
Comment by Richard Kennard, Friday, July 18, 2008 @ 8:23 pm