667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 15 Messages: 15 Messages: 15 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Metawidget 0.6, runtime form generator, released

Posted by: Richard Kennard on October 27, 2008 DIGG
Metawidget 0.6 has been released. Metawidget is an Open Source 'smart UI widget' that populates itself at runtime with labels, textboxes, date pickers, etc. to match the underlying properties of a given business object.

The project comes with native versions for Android, GWT, JSF, JSP, Spring, Struts and Swing. Out of the box, it can discover properties from JavaBeans, GroovyBeans, Hibernate configuration files, Hibernate Validator annotations and JPA annotations. Metawidget doesn't try to 'own' the entire User Interface, it creates widgets for embedding into your existing UI - giving you the best of both worlds between automatic UI generation whilst still retaining flexibility over look and feel, choice of third-party components etc.

New to this release is support for generating buttons (as well as the existing textboxes, date pickers etc.) based on JBoss jBPM 'pageflow' files or Swing AppFramework @Action annotations (see http://kennardconsulting.blogspot.com/2008/10/metawidget-ready-set-action.html).

This can be further enhanced with JEXL expressions to declare conditional actions (see http://kennardconsulting.blogspot.com/2008/07/expression-language-el-for-swing.html).

Metawidget can be downloaded from http://www.metawidget.org. The best place to start is the Reference Documentation (http://metawidget.org/doc/reference/en/pdf/metawidget.pdf).

Your continued feedback is invaluable to us. Please download it and let us know what you think.

Threaded replies

·  Metawidget 0.6, runtime form generator, released by Richard Kennard on Mon Oct 27 04:24:55 EDT 2008
  ·  Looks impressive by Michael Klaene on Tue Oct 28 08:57:32 EDT 2008
  ·  Nice framework by i k on Tue Oct 28 10:16:35 EDT 2008
  ·  Very Nice by David Tinker on Tue Oct 28 10:41:21 EDT 2008
  ·  Interesting but... by Erik GOLLOT on Tue Oct 28 13:32:14 EDT 2008
    ·  Thanks! by Richard Kennard on Tue Oct 28 17:15:03 EDT 2008
      ·  Re: Thanks! by Javier Paniza on Wed Oct 29 04:51:19 EDT 2008
      ·  Re: Thanks! by Erik GOLLOT on Wed Oct 29 06:06:00 EDT 2008
        ·  Re: Thanks! by Michael Klaene on Wed Oct 29 09:04:23 EDT 2008
          ·  Room for everybody by Richard Kennard on Wed Oct 29 18:44:20 EDT 2008
            ·  Re: Room for everybody by Javier Paniza on Thu Oct 30 05:22:45 EDT 2008
              ·  The Dream by Richard Kennard on Thu Oct 30 18:11:21 EDT 2008
                ·  Re: The Dream by Javier Paniza on Mon Nov 03 04:58:40 EST 2008
                  ·  Metawidget support for OpenXava by Richard Kennard on Mon Nov 03 18:49:07 EST 2008
  ·  Re: Metawidget 0.6, runtime form generator, released by shashidhar ayachitam on Thu Oct 30 17:19:29 EDT 2008
  ·  Halloween Joke released by Alex Ander on Thu Oct 30 23:37:36 EDT 2008
  Message #272032 Post reply Post reply Post reply Go to top Go to top Go to top

Looks impressive

Posted by: Michael Klaene on October 28, 2008 in response to Message #271953
I took a couple of minutes this morning and walked through the tutorial on the site. It looks pretty impressive. The author of this library has evidently put some real thought into this.

I'm going to try it out...

  Message #272037 Post reply Post reply Post reply Go to top Go to top Go to top

Nice framework

Posted by: i k on October 28, 2008 in response to Message #271953
I spun up the Swing Metawidget, very impressive. Love the annotations, too. Thanks a lot for this API! I am going to try one of the web widgets next.

  Message #272038 Post reply Post reply Post reply Go to top Go to top Go to top

Very Nice

Posted by: David Tinker on October 28, 2008 in response to Message #271953
This is the coolest thing I have seen on TSS for a while now. We have a large GWT app it could certainly do with this for the forms. The documentation looks very good. I also really like the "don't take over the GUI" principle as we have our own "GWT portlet framework" already.

  Message #272043 Post reply Post reply Post reply Go to top Go to top Go to top

Interesting but...

Posted by: Erik GOLLOT on October 28, 2008 in response to Message #271953
Maybe I've missed something but...
Instead of providing so many technologies integration it could have been interesting (to my point of view) to go one step futher.
For example, it could have been cool to automatically create a UI for a sample like this :

Person {
String firstname;
String lastname;
List<Address> address;
}

Address {
String street;
String town;
}

If it is possible (without any dedicated code), sorry.

  Message #272050 Post reply Post reply Post reply Go to top Go to top Go to top

Thanks!

Posted by: Richard Kennard on October 28, 2008 in response to Message #272043
Thanks everyone for your kind words. I look forward to your feedback, it'll really help me grow the product.

Erik: there are several excellent solutions that do what you describe (see http://metawidget.org/doc/faq/comparison.html). One drawback with them, in my opinion, is there's not a lot to go on for generating a UI.

Given your Person/Address example, the generator has to 'guess' and impose a very general look and feel on the UI. This is rarely useful for real world projects (see http://kennardconsulting.blogspot.com/2008/04/useful-bounds-of-automatic-ui.html).

  Message #272067 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Thanks!

Posted by: Javier Paniza on October 29, 2008 in response to Message #272050
impose a very general look and feel on the UI. This is rarely useful for real world projects


I don't agree. Look at the java.net article:
Automatic User Interface with OpenXava: An Evolutionary Option for GUIs

Cheers

  Message #272074 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Thanks!

Posted by: Erik GOLLOT on October 29, 2008 in response to Message #272050
My purpose is not to create a real app but more to "simulate" a domain model. Sometimes, to "validate" a domain model with a business analyst, it can be a good thing to "play the model". Playing the model can be done with an automatically generated UI, no matter the choices are.

Thanks for the links...

  Message #272086 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Thanks!

Posted by: Michael Klaene on October 29, 2008 in response to Message #272074
My purpose is not to create a real app but more to "simulate" a domain model. Sometimes, to "validate" a domain model with a business analyst, it can be a good thing to "play the model". Playing the model can be done with an automatically generated UI, no matter the choices are.

Thanks for the links...


I agree that it would be useful, especially for simulations, if the tool would just be able to make some basic assumptions, without annotations, and generate a generic UI. This wouldn't change the fact that you'd still need the annotations once it got down to build something 'real'.

  Message #272125 Post reply Post reply Post reply Go to top Go to top Go to top

Room for everybody

Posted by: Richard Kennard on October 29, 2008 in response to Message #272086
Javier: OpenXava is an excellent piece of work, and I congratulate you on its success. I list it on my comparison page (http://metawidget.org/doc/faq/comparison.html) in what I hope is an accurate way.

We differ a little in our approach. Metawidget is more concerned with integrating with existing front-ends and back-ends. An important goal of Metawidget is that you can retrofit your existing application (http://kennardconsulting.blogspot.com/2008/04/using-metawidget-with-seam-facelets-jpa.html).

But overall our vision is the same: to reduce the amount of laborious, error-prone work necessary to create a UI. My dream is that several projects should compete in this space, establish it as a mainstream technology (just like ORM is) and maybe one day all come together under a JSR?

Erik: yes - for simulating a domain model, something like OpenXava (itself based on Naked Objects, which I mentioned earlier) would be a better fit for you.

Michael: of course I agree. In fact, to further your point, in something 'real' many of the necessary annotations would already be there (JPA ones, Hibernate Validator, jBPM configuration files etc) - you just have to extract them.

  Message #272152 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Room for everybody

Posted by: Javier Paniza on October 30, 2008 in response to Message #272125
Hi Richard,

My dream is that several projects should compete in this space, establish it as a mainstream technology (just like ORM is) and maybe one day all come together under a JSR?

I like your dream, and I'm willing to work for it. But, it's not an easy way. Look my propoposal to convert your dream in a reality, and also look at the answers.

- Synergy with OpenXava in trails forum
- Synergy with OpenXava in JMatter forum
- Synergy with OpenXava in Naked Object forum
- Synergy with OpenXava in Roma Framework forum

Seems that Naked Object and Roma concentrate and the differences not in the similarities. Maybe the philosophy behind NakedObject and Roma is not the same as OpenXava, but the shape of the projects is very alike.
About JMatter, Eitan has a very favorable attitude, but there are some technologic barriers.
The Trails case is better. Trails and OpenXava has a lot in common, and Alejandro has an open mind. But the project is just now in a critical moment toward its 2.0 version.

What do you think about all this?

Cheers

  Message #272186 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Metawidget 0.6, runtime form generator, released

Posted by: shashidhar ayachitam on October 30, 2008 in response to Message #271953
Sounds impressive. I was infact looking for such utility for a while and was planning to come up with my own to fit a specific requirement.

I hope this would fit and would like to give a try.

Thanks

Shashi Ayachitam

  Message #272190 Post reply Post reply Post reply Go to top Go to top Go to top

The Dream

Posted by: Richard Kennard on October 30, 2008 in response to Message #272152
Javier,

I applaud your efforts to unite the field. Clearly, this will be difficult as there are a lot of passionate project owners out there!

I think probably it is too early to try to unite, because the field is not well understood. If most real world applications were using some form of UI generation, and most real world developers agreed on the main features of a UI generator, we could attempt a JSR. For example, by the time the JPA JSR was proposed both Hibernate and TopLink had convincingly 'solved' the problem, and many many developers were using them.

So first we must all try to 'grow the field'. To pursue our own ideas and grow our user bases. Probably we will find we converge a bit (for example, Naked Objects 3.1 will include Facets which are similar to Metawidget's Inspectors). One day, when UI generation is mainstream, we can all look to develop a JSR.

However, this JSR will not be the same as, or necessarily compatible with, any of our individual projects: it will be a new project drawing on our collective experience of what our user bases told us worked well and what not so well. We must not be egotistical during this phase, clinging to our individual projects. It is a chance to start afresh. There is plenty of precedence for this. For example, the Web Beans JSR draws on the experience of Seam, Guice, Spring and many others, creating something new but unified.

How will we know when we are ready to do a JSR? The JCP will tell us! When we feel ready, we will propose a JSR. If the field is too immature, we will get knocked back.

Regards,

Richard.

P.S. In the meantime, OpenXava and Metawidget could pursue our own unification. This may be pretty easy because the scope of Metawidget is much smaller than OpenXava. For example, OpenXava could use Metawidget inside itself.

  Message #272209 Post reply Post reply Post reply Go to top Go to top Go to top

Halloween Joke released

Posted by: Alex Ander on October 30, 2008 in response to Message #271953
Start
Stop

  Message #272357 Post reply Post reply Post reply Go to top Go to top Go to top

Re: The Dream

Posted by: Javier Paniza on November 03, 2008 in response to Message #272190
So first we must all try to 'grow the field'. To pursue our own ideas and grow our user bases.

OK. Let's work.


In the meantime, OpenXava and Metawidget could pursue our own unification. This may be pretty easy because the scope of Metawidget is much smaller than OpenXava. For example, OpenXava could use Metawidget inside itself.

Yes. I think that is feasible. Though I see some overlapped areas, for example, you use some annotations as @UiComesAfter or @UISection for layout purposes. OpenXava has its own annotations for that:
http://openxava.wikispaces.com/view_en
Obviously, I like more the OX annotations ;)
Nevertheless, if metawidget becomes a mainstream framework, OX will support its annotations for layout.
What about to support OX view annotations by metawidget ?

Anyways, I continue looking at your framework, and with the mind open for collaboration if possible.

Cheers

  Message #272392 Post reply Post reply Post reply Go to top Go to top Go to top

Metawidget support for OpenXava

Posted by: Richard Kennard on November 03, 2008 in response to Message #272357
Javier,

Agreed: I would much rather Metawidget support OpenXava's annotations. Being able to use other people's annotations is a core strength of Metawidget.

You would need to write an OpenXavaInspector and plug it into the Inspector chain in inspector-config.xml. Writing your own Inspectors is generally trivial. See:

http://metawidget.svn.sourceforge.net/viewvc/metawidget/trunk/src/java/org/metawidget/inspector/hibernate/validator/HibernateValidatorInspector.java?revision=234&view=markup

If you get chance to try it, I'd be very excited to hear how you go!

Richard.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map