Bean import filters
Pre-release
Pre-release
New features
- When importing a bean to the template model, you can define that some of the bean properties should be excluded from the model
- The same annotations are also supported on list setters, where they will apply to each item in the imported list.
public interface MyModel extends TemplateModel {
@Exclude("id", "password") // includes all other properties
public void setUser(User user);
@Include("firstName", "lastName") // excludes all other properties
public void setPerson(Person person)
}
- View instance creation is pluggable to enable integration with e.g. Spring or CDI
- Client side exception messages are shown as a floating overlay in the browser when production mode is not active
@Id
can now be used in template classes to injectElement
instances. Previously only component instances could be injected.
Fixes
- Eliminated memory leak caused by redeploying Hummingbird
- The
$server
variable is now properly populated inside*ngFor
@HtmlImport
dependencies are now always loaded before@JavaScript
- Atmosphere dependency updated to be compatible with Jetty 9.3
- Fixed browser version check so that the embedded browser in Eclipse on OS X is no longer considered outdated
- Renamed
Element
methods for increased clarity:getOwnTextContent
renamed togetText
setTextContent
renamed tosetText
getTextContent
renamed togetTextRecursively
Demos
- Address book demo updated to only import some parts of the bean and to support editing and saving through the form Java HTML
Tutorials
Using Beans with a Template Model
updated to show how to exclude propertiesAdding Components to a Template
updated to mention@Id
injection for elementsCreating A Simple Component Using the Element API
updated to mention the tag name constants in@Tag
.
All changes
https://github.com/vaadin/hummingbird/issues?q=milestone%3A0.0.11