available code in mercurial repository here
sirin
PageableListView authorsTable = new PageableListView("authors", auths,10){
@Override
protected void populateItem(ListItem item) {
Author author = (Author) item.getModelObject();
item.add(new Label("authId", Integer.toString(author.getAuthorId())));
Link authorlink = new Link("authorlink", item.getModel()) {
@Override
public void onClick() {
setResponsePage(new AuthorPage());
}
};
authorlink.add(new Label("authName", author.getAuthorName()));
item.add(authorlink);
}
};
sirin
No comments:
Post a Comment