I\'m using a select one menu to do navigation to different parts of my site:
<
Use custom content with
with therein a
.
Bean:
private List pages;
@PostConstruct
public void init() {
pages = new ArrayList();
pages.add(new Page("Page 1", "/page1.xhtml"));
pages.add(new Page("Page 2", "/page2.xhtml"));
pages.add(new Page("Page 3", "/page3.xhtml"));
}
View:
Note that this doesn't work with List
nor individual
entries. You really need to provide a List
(wherein Entity
is Page
in the above example).
This generates a