The latest example of webby usage is called Buco and aims at showing how to manage business contacts and organizations, enabling sorting and filtering where needed and this time using no introspection but explicitly created descriptors to enable webby.
The name Buco is just the abbreviation of "BUsiness COntacts" ... please forgive my lack of creativity here.
Probably noteworthy details:
You can get the sources for Buco directly from the maven repository or browse it at the svn repository.
You can run it directly at r8fe.net.
If you want to run it yourself:
Just as webby, also Buco needs Java 1.5 to run. If you are reading this, you most likely know how to obtain it...
One option for Buco to run is to get the ready-made war archive and deploy it to your favorite servlet container. (You also need a database, which you can do by executing step 1 below.)
Now with maven making dealing with dependencies so much easier, you can also download the source and do a
mvn jetty6:run
to immediately run it on your machine locally -- no, wait, two pieces are missing in this case:
Check out the new buco example (called buco2). A description about what is new and why it exists can be found in the blog soon.
This example intends to show simple usage of webby: the orderbook example is a not-really-usable implementation of an orderbook application: You can create articles which are then available for orders: Orders have got order items which reference articles, and have got a quantity. Based on the selling price given in the articles, some simple calculations are built into the model and hence shown as (readonly) attributes in the lists and forms.
For the implementation we take a simple business model (package model) and use as little Java as possible to create a usable web UI.
Please be surprised that this example takes less than 600 lines of java code!
You can see the following concepts in action:
The example can be tried live at r8fe.net.
The source can be browsed in the subversion repository. See for example the following model classes:
See also the configurator:
This example aims at showing how to extends Webby's UI components.
Additionally an extra property panel is used (via an annotation on the business class) to edit and display text in textile format.
Try it here.