- 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
- Making GWT JSON not Quite so Painful
- IDEA - preconference workshop 06 Oct 08
- HTML5, Ajax history management, and The Ajax Experience 2008 Boston
- A Look Back At Past Posts
- Flash Player on iPhone gossip
- Microsoft to Jump on Board EC2
- TAE Boston 2008: The Unsexy Presentations
- The Ajax Experience 2008: Hope to see you in Beantown
- TankEngine: New plugin for Rails iPhone Development
- Symphony of Ruby on Rails and Flex through RubyAMF
Archives
- 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