I have a problem with the t:type="loop" component in my Menu Component Every link that is generated gets the id of the first Category. So the html source looks like this: <ul> <li> <a href="/mercado/start.layout.menu.category/1" id="category">CategoryA | 1</a> </li> </ul> <ul> <li> <a href="/mercado/start.layout.menu.category/1" id="category_0">CategoryB | 70</a> </li> </ul> <ul> <li> <a href="/mercado/start.layout.menu.category/1" id="category_1">CategoryC | 110</a> </li> </ul> Every categoryId is 1. (and it generates to much <ul> tags). When I click a category link the application thinks I always click the first category link. This is what is in Menu.html <ul t:type="loop" source="categories" value="category"> <li> <t:actionlink t:id="category" context="${category.id}">${category.name} | ${category.id}</t:actionlink> </li> </ul> And this is what is in Menu.java @Inject @Service("categoryService") private CategoryService categoryService; private Category category;
Object onActionFromCategory(Long categoryId) { System.out.println("Category " + categoryId + " has been clicked"); categoryDetail.setup(categoryId); return categoryDetail; } public Collection<Category> getCategories() { return categoryService.getRootCategories(); } public Category getCategory() { return category; } public void setCategory(Category category) { this.category = category; } _________________________________________________________________ Altijd al willen weten wat jouw naam betekent? http://search.live.com/results.aspx?q=betekenis+anna&mkt=nl-nl&FORM=LVCP