Boa Tarde Galera , muito obrigado desde ja , galera to tentando fazer um trabalho simples mas msm assim tenho alguns dificuldades por ser iniciantes , não estou conseguindo transforma um parte do codigo de interface jsf para o primefaces .
Não tenho bean , Somente um index e um Servlet .
O q quero fazer isso no primefaces sem usar um bean :
<input type="submit" value="Vender" name="btn" />
Meu codigo :
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<head>
<p:resources />
</head>
<body>
<h:form id="ServletVender" >
Cliente : <p:inputText type="text" id="cliente" />
Produto :<p:inputText type="text" id="produto" />
Quantidade : <p:inputText type="text" id="quantidade" />
ValorUni : <p:inputText type="text" id="valorUni" />
<p:commandButton type="reset" value="Limpar" />
<input type="submit" value="Vender" name="btn" />
</h:form>
</body>
</html>