ola pessoal
eu tenho a seguinte pagina
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>teste faces</title>
<link href="../css/css_azul.css" rel="stylesheet" type="text/css">
<link href="../css/css_azul_form.css" rel="stylesheet" type="text/css">
<link href="../css/css_azul_tbl.css" rel="stylesheet" type="text/css">
</head>
<body>
<h:form id="form">
<div class="ContainerForm">
<fieldset>
<input type="hidden" id="Confirmacao" name="Confirmacao">
<span style="width:35px"> <label for="PessNome">Nome</label></span>
<span style="width:270px"> <h:inputText value="#{pess.nome}" id="nome" maxlength="50" size="50" required="true"><f:validateLength maximum="50" minimum="5"/></h:inputText></span>
<span style="width:40px"> <label for="pessoaTipoID">Pessoa</label></span>
<span style="width:65px"> <h:selectOneMenu id="pessoaTipoID">
<f:selectItem itemValue="1" itemLabel="Fisica"/>
<f:selectItem itemValue="2" itemLabel="Juridica"/>
</h:selectOneMenu>
</span>
<span style="width:60px"> <label for="PessDoc">CPF/CNPJ</label></span>
<span style="width:260px"> <input name="PessDoc" type="text" class="FormCampo" id="PessDoc" size="21" maxlength="20">
</span>
</fieldset>
<span style="width:730px"><div id="Erro"></div></span>
</div>
</h:form>
</body>
</html>
</f:view>
qdo a pagina é gerada, os campos ficam “form:nome” por exemplo
tentei deixar o id="" porem, me gera erro e se eu nao colocar o ID pra ele, ele gera sozinho.
oq queria saber é,
1-existe um meio de deixar apenas o nome do campo?
2-usar o nome do form e do campo, porem, nao aparecer esse “:”?
3-usar uma constanta para dar nome ao form
4-fazer alguma referencia no campo ao nome do form
eu preciso usar algumas funcoes em JS, porem, estou tendo um pouco de dificuldade com isso
obs, eu nao trabalho com
document.form.nome.value
eu uso
document.getID("nome").value
abs
T+