Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Preciso criar um sistema jsf + html5.

Bom dia, eu possuo um front end pronto, e preciso fazer o back em java, porém visualizei na internet que as pessoas utilizam as tags do xhtml quando desenvolvem sistemas em jsf, será que eu posso utilizar as tags normais do html que já está pronto? Por exemplo, abaixo temos um código xhtml, é possível ver as diferenças.

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
02 <html xmlns="http://www.w3.org/1999/xhtml"
03 xmlns:h="http://java.sun.com/jsf/html"
04 xmlns:f="http://java.sun.com/jsf/core"
05 xmlns:ui="http://java.sun.com/jsf/facelets">
06
07 <h:head>
08     <title>Valida CPF</title>
09 </h:head>
10 <h:body>
11     <h:form>
12         <h:inputText value="#{validadorMB.cpf}" />
13         <h:commandButton value="VALIDAR" actionListener="#{validadorMB.validar}" />
14         <h:message for="msgValidador" />
15     </h:form>
16 </h:body>
17 </html>

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
1 resposta
solução!

No geral sim, dá para usar as tags do HTML dentro de um xhtml:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Title of document</title>
</head>

<body>
  some content 
</body>

</html>