- support for suppressing labels
- support for Jetty
- bug fixes; and
- more unit tests
Your continued feedback is invaluable to us. Please download it and let us know what you think.
Say we decide the Address and Communications labels under Contact Details are unnecessary. To remove them, we simply specify a blank label:
This can be particularly useful within JTabbedPanes, collapsing this...
To hide the label without collapsing the left hand column, use a ResourceBundle to localize the label name to a blank space.
To tell Metawidget's Inspectors we don't want a label on a field, ideally we'd like to do...
@UiLabel( "" )
...or...
<property name="foo" label="">
Unfortunately, according to the DOM Element.getAttribute specification, it does not distinguish between 'an attribute having no value (eg. foo="")' and 'an attribute not existing'. In both cases getAttribute returns an empty String.
So to be able to specify an empty String without it just being ignored as a non-existant attribute, we need to put a String with a space...
@UiLabel( " " )
...or...
<property name="foo" label=" ">
...which is a bit sucky I know.
Suggested improvements welcome :)
Update: After playing around with label="null" for a bit, I noticed DOM supplies an Element.hasAttribute method for this purpose, so you can differentiate after all.


As before, 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.
