THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Freemarker is a logical choice when implementing serialization of an object or object tree into an HtmlElement.
- Generating an HtmlElement from Freemarker is simpler and more portable that doing the same via java code using HTML5 DTOs.
- Binding the resulting HtmlElement produced by evaluating Freemarker template(s) to the appropriate HTML5 DTO allows validation of the result vis-a-vis the HTML5 spec.
- Choice of how to present (View layer) an object tree should be entirely disconnected from implementation of the object class (Model layer)
...
User interaction and design
Code Block | ||||
---|---|---|---|---|
| ||||
/**
* When displaying just one Group, render a subset of attributes in a table.
*/
@RestMethod(
name="GET",
path="/{path}",
templates={
"Group: Group.table.ftl"
}
)
public Group viewGroup( RestRequest req,
@Path String path) {
}
/**
* When displaying a list of Groups, render a different subset of attributes per row.
*/
@RestMethod(
name="GET",
path="/",
templates={
"Group: Group.div.ftl"
}
)
public List<GroupHtml> listGroups() throws IOException {
}
|
Questions
Below is a list of questions to be addressed as a result of this requirements document:
...