Olá Pessoal,
Estou com um p:selectOneMenu que não renderiza o selected.
Quando abro o código-fonte do Schedule ele mostra lá o Select com o option selected.
Vou colocar o código aqui para caso alguêm possa dar uma ajuda:
[code]<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template=“template.xhtml”>
<ui:define name="header">
<title>#{bundle['titulo']}</title>
</ui:define>
<ui:define name="titulo">
<p:breadCrumb styleClass="breadcrumb" style="font-size: 10px">
<p:menuitem value="#{bundle['bc_home']}" url="/pages/home.jsf" />
</p:breadCrumb>
<br></br>
<br></br>
<div class="tituloPagina"><strong>#{bundle['titulo_agenda']}</strong></div>
<p:separator style="width: auto; height: 1px" />
</ui:define>
<ui:define name="body">
<p:schedule id="schedule" value="#{agendaBean.agenda}" widgetVar="myschedule" rightHeaderTemplate="" view="agendaWeek"
minTime="06:00" maxTime="21:00" draggable="false" resizable="false" >
<p:ajax event="dateSelect" listener="#{agendaBean.onDateSelect}" update="eventDetails" oncomplete="eventDialog.show()" />
<p:ajax event="eventSelect" listener="#{agendaBean.onEventSelect}" update="eventDetails" oncomplete="eventDialog.show()" />
</p:schedule>
<p:dialog widgetVar="eventDialog" header="Event Details" style="background-color:white;"
resizable="false">
<h:panelGrid id="eventDetails" border="0" columns="3">
<h:outputLabel for="idAgenda" value="" />
<h:inputHidden id="idAgenda" value="#{agendaBean.event.idAgenda}" />
<h:outputLabel value="" />
<h:outputLabel for="title" value="Title:" />
<p:inputText id="title" value="#{agendaBean.event.title}" />
<h:outputLabel value="" />
<p:outputLabel value="Visita:"/>
<p:selectOneMenu value="#{agendaBean.event.visit}" style="width:100%;" panelStyle="background-color:white" >
<f:selectItems value="#{agendaBean.listaSelectAgendaTipoVisita}" />
</p:selectOneMenu>
<h:outputLabel value="" />
<h:outputLabel for="from" value="From:" />
<p:inputMask id="from" value="#{agendaBean.event.startDate}" mask="99/99/9999 99:99">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="America/Sao_Paulo"/>
</p:inputMask>
<h:outputLabel value="" />
<h:outputLabel for="to" value="To:" />
<p:inputMask id="to" value="#{agendaBean.event.endDate}" mask="99/99/9999 99:99">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="America/Sao_Paulo"/>
</p:inputMask>
<h:outputLabel value="" />
<h:outputLabel for="allDay" value="All Day:" />
<h:selectBooleanCheckbox id="allDay" value="#{agendaBean.event.allDay}" />
<h:outputLabel value="" />
<p:commandButton type="reset" value="Reset" />
<h:panelGroup style="text-align:right">
<p:commandButton id="deleteButton" value="Excluir" actionListener="#{agendaBean.excluirVisita}" />
<p:commandButton id="addButton" value="Salvar" actionListener="#{agendaBean.addEvent}" oncomplete="PF('myschedule').update();" />
</h:panelGroup>
</h:panelGrid>
</p:dialog>
</ui:define>
</ui:composition>
[/code]Caso ajude estou postando o trecho do codigo-fonte onde mostra o selected só que o mesmo não exibe na tela selected
Fico no aguardo,
Obrigado.