2
The code below should show a simple screen divided between the names and input areas, but the panelGrid is not working, what’s wrong? When executing nothing appears.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head>
<title>Cadastro de Automoveis</title>
</h:head>
<h:body>
<h:form>
<h:outputLabel value="Marca:"/>
<h:inputText value="#{automovelBean.automovel.marca}"/><br/>
<h:outputLabel value="Modelo:"/>
<h:inputText value="#{automovelBean.automovel.modelo}"/>
<h:outputLabel value="Ano de Fabricação:"/>
<h:inputText value="#{automovelBean.automovel.anoFabricacao}"/>
<h:outputLabel value="Ano do Modelo:"/>
<h:inputText value="#{automovelBean.automovel.anoModelo}"/>
<h:outputLabel value="Observações:"/>
<h:inputTextarea value="#{automovelBean.automovel.observacoes}"/>
<h:commandButton value="Salvar" action="#{AutomovelBean.salva}"/>
</h:form>
</h:body>
</html>
Now nothing else appears on the screen. I have checked the libraries, it is all right but nothing appears.
– Edson F.
@Edsonferreira edit your question and post your new code after the suggestion.
– Roknauta