Friday, September 29, 2006

Roma Framework big refactoring

yesterday night a great idea light my mind... A new way to define desktop in View Aspect. It was too much simple to catch before...

Below a default desktop (I replaced open/close characted with []):

[area name="main" render="column"\]
[area name="top" /]
[area name="body" render="grid"/]
[area name="bottom" /]

By using XML to define the desktop assure cross View Aspect portability. The idea is very simple: to define, by area tags, a way to create containers ala Swing. Each area has a name that can be used as layout foreach POJO fields and actions. Furthermore area tag allow optionally the render to use. Available renders are:

- Null (Empty container)
- Row
- Column
- Grid
- Tab (TabbedPane)

I'm working for a XmlDesktop working with Echo2 implementation. Thanks to this feature users will be able to build complex and nice pages without effort!

Echo2 XML stylesheet will make the rest changing colors, images, fonts, spacing, etc.


No comments: