quando tento criar a lista para a escolha de temas, além de ela não aparecer, o p:themeSwitcher do livro.xhtm fica desconfigurado. alguém tem ideia do que seja? template.xhtm:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head/>
<h:body>
<div id="cabecalho">
<h:graphicImage library="img" name="logo.png"/>
<h:form>
<p:themeSwitcher value="#{temaBean.tema}" style="position: absolute; right: 10px;">
<f:selectItems value="#{temaBeans.temas}"/>
<f:ajax/>
</p:themeSwitcher>
</h:form>
<h:form>
<p:menubar>
<p:submenu label="Cadastros">
<p:menuitem value="Autor" action="autor"/>
<p:separator/>
<p:menuitem value="Livro" action="livro"/>
</p:submenu>
</p:menubar>
</h:form>
<h1><ui:insert name="titulo"/></h1>
</div>
<div id="conteudo">
<ui:insert name="conteudo"/>
</div>
<div id="rodape">
copyright 2014 -
<ui:insert name="texto"/>
</div>
</h:body>
</html>
temaBean.java:
package br.com.caelum.livraria.bean;
import java.util.Arrays;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class TemaBean {
private String tema = "aristo";
public String getTema() {
return tema;
}
public void setTema(String tema) {
this.tema = tema;
}
public List<String> getTemas(){
return Arrays.asList("afterdark","afternoon","afterwork","aristo","black-tie","blitzer","bluesky","casablanca","cruze","cupertino",
"dark-hive", "delta","dot-luv","eggplant","excite-bike","flick","glass-x","home","hot-sneaks","humanity","le-frog","midnight",
"mint-choc","overcast","pepper-grinder","redmond","rocket","sam","smoothness","south-street","start","sunny","swanky-purse",
"trontastic","twitter bootstrap","ui-darkness", "ui-lightness","vader");
}
}