Obridado.
Code: Select all
<h:form id="principal" prependId="false">
<h:panelGrid columns="2">
<h:outputLabel value="#{bundle.CreateProjetoLabel_idProjeto}" for="idProjeto" />
<h:inputText id="idProjeto" value="#{projetoController.selected.nome}" title="#{bundle.CreateProjetoTitle_idProjeto}" required="true" requiredMessage="#{bundle.CreateProjetoRequiredMessage_idProjeto}"/>
<h:outputLabel value="#{bundle.CreateProjetoLabel_idTipo}" for="idTipo" />
<h:panelGroup>
<h:selectOneMenu id="idTipo" value="#{projetoController.selected.idTipo}" title="#{bundle.CreateProjetoTitle_idTipo}" >
<f:selectItems value="#{tipoProjetoController.itemsAvailableSelectOne}"/>
</h:selectOneMenu>
<h:commandLink immediate="true" onclick="novoTipoProjeto.show();" >
<h:graphicImage title="Listagem" url="../../images/toggle_blue.png"/>
</h:commandLink>
</h:panelGroup>
<h:outputLabel value="#{bundle.CreateProjetoLabel_idContaBancaria}" for="idContaBancaria" />
<h:selectOneMenu id="idContaBancaria" value="#{projetoController.selected.idContaBancaria}" title="#{bundle.CreateProjetoTitle_idContaBancaria}">
<f:selectItems value="#{ccBancoContaController.itemsAvailableSelectOne}"/>
</h:selectOneMenu>
<h:outputLabel value="#{bundle.CreateProjetoLabel_idFundacao}" for="idFundacao" />
<h:selectOneMenu id="idFundacao" value="#{projetoController.selected.idFundacao}" title="#{bundle.CreateProjetoTitle_idFundacao}" required="true" requiredMessage="#{bundle.CreateProjetoRequiredMessage_idFundacao}">
<f:selectItems value="#{fundacaoController.itemsAvailableSelectOne}"/>
</h:selectOneMenu>
<h:outputLabel value="Data Início" for="inicio" />
<p:inputMask id="inicio" value="#{projetoController.selected.dataInicio}" title="Data Início" mask="99/99/9999" required="true" requiredMessage="Preencha a data de início">
<f:convertDateTime pattern="dd/MM/yyyy" />
</p:inputMask>
<h:outputLabel value="Data Previsão Término" for="previsaoTermino" />
<p:inputMask id="previsaoTermino" value="#{projetoController.selected.dataPrevisaoTermino}" title="Data Previsão Término" mask="99/99/9999" required="true" requiredMessage="Preencha a data de previsão de término">
<f:convertDateTime pattern="dd/MM/yyyy" />
</p:inputMask>
</h:panelGrid>
<p:dialog widgetVar="novoTipoProjeto" underlay="shadow" >
<form>
<ui:include src="/atendentes/tipoProjeto/CreateParcial.xhtml"/>
</form>
</p:dialog>
<br />
<h:commandLink action="#{projetoController.create}">
<h:graphicImage url="../../icones_gran/Symbol-Check.png"/>
</h:commandLink>
<h:commandLink action="#{projetoController.prepareList}" immediate="true">
<h:graphicImage url="../../icones_gran/bt_listar.png"/>
</h:commandLink>
<h:commandLink action="#{cp.doVoltar}" immediate="true" >
<h:graphicImage url="../../icones_gran/bt_voltar.png"/>
</h:commandLink>
</h:form>