Skip to content

Instantly share code, notes, and snippets.

@kevindoran
Created February 15, 2012 08:31
Show Gist options
  • Save kevindoran/1834449 to your computer and use it in GitHub Desktop.
Save kevindoran/1834449 to your computer and use it in GitHub Desktop.
BloggerBean2
@ManagedBean
@SessionScoped
public class BloggerBean {
private CategoryMenuModel menuModel = new CategoryMenuModel();
public BloggerBean() {
menuModel.setCategory(new Category("Computers"));
}
public CategoryMenuModel getMenuModel() {
return menuModel;
}
public void setMenuModel(CategoryMenuModel menuModel) {
this.menuModel = menuModel;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment