coloquei os forms e mesmo assim esse erro continua…
erro : 'The button/link/text component needs to have a Form in its ancestry. Please add <h:form>. ’
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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>
<link rel="stylesheet" type="text/css" href="Css/css_layout.css"/>
<title>SGR</title>
</h:head>
<f:view>
<h:form>
<h:body>
<div align="center">
<h:form>
<p:menubar autoDisplay="false">
<p:menuitem value="Home" style="font-size: small"
url="http://localhost:8084/SGR/faces/home.xhtml"/>
<p:submenu label="Cadastro" style="font-size: small">
<p:menuitem value="Cadastro de Clientes" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastroDeClientes.xhtml"/>
<p:menuitem value="Cadastro de Marca" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastrodeMarca.xhtml"/>
<p:menuitem value="Cadastro de Modelo" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastroDeModelo.xhtml"/>
<p:menuitem value="Cadastro de Departamento" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastroDepartamento.xhtml"/>
<p:menuitem value="Cadastro de Produto" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastroDeProduto.xhtml"/>
<p:menuitem value="Cadastro de Pesagem" style="font-size: x-small"/>
<p:menuitem value="Cadastro de Funcionario" style="font-size: x-small"
url="http://localhost:8084/SGR/faces/cadastroDeFuncionario.xhtml"/>
<p:menuitem value="Cadastro de Insumos" style="font-size: x-small"/>
<p:menuitem value="Cadastro de Perfil" style="font-size: x-small"/>
</p:submenu>
<p:submenu label="Ordem de Serviço" style="font-size: small">
<p:menuitem value="Fechamento de O.S." style="font-size: x-small"/>
<p:menuitem value="Abertura de O.S." style="font-size: x-small"/>
</p:submenu>
<p:menuitem value="Insumos" style="font-size: small"/>
</p:menubar>
</h:form>
</div>
<div>
<h:form>
<p:tabView id="tabView" styleClass="centerPainel">
<p:tab id="tab1" title="Cadastro de Marcas">
<h:panelGrid columns="2" cellpadding="5">
<h:outputLabel value="Pesquisar" />
<p:inputText/>
<h:outputLabel value="Numero OS" />
<p:inputText/>
<h:outputLabel value="Cliente" />
<p:inputText/>
<h:outputText value="Status " />
<p:selectOneRadio id="options" value="">
<f:selectItem itemLabel="Aberta" itemValue="1" />
<f:selectItem itemLabel="Fechada" itemValue="2" />
</p:selectOneRadio>
<br/><br/>
<p:commandButton value="Salvar"/>
</h:panelGrid>
</p:tab>
</p:tabView>
</h:form>
</div>
</h:body>
</h:form>
</f:view>
</html>