}
return categorySelectItems;
}
public List<SelectItem> getBlogSelectItems() {
List<SelectItem> blogSelectItems = new LinkedList<SelectItem>();
Blog b = new Blog();
b.setBlogID(-1);
b.setTitle(MapacheUIUtils.getTranslation("pleaseSelect",null));
blogSelectItems.add(0,new SelectItem(b, b.getTitle(), String.valueOf(b.getBlogID())));
if(_blog==null){
_blog = b;
}
List<Blog> blogs;
try {
blogs = getBusinessController().loadAllBlogs();
for (Iterator it = blogs.iterator(); it.hasNext(); ){
Blog br = (Blog)it.next();
blogSelectItems.add(new SelectItem(br,br.getTitle(),String.valueOf(br.getBlogID())));
}
} catch (MapacheException e) {
// TODO log error message into file
e.printStackTrace();
}