Jquery duvidas

3 respostas
paulojr83

olá pessoal, estou com uma duvida, estou colocando em minha aplicação mascara com jquery, mas nas tag , não rola, então eu coloquei em tag html mesmo, funcionou..., mas quando eu coloco "jsfc" a mascara para de funcionar....
alguem sabe me dizer o pq disso?????

<!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"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<head>
<title>UI Sortable: Layout Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="STYLESHEET" type="text/css" href="/css/rich-styles.css"
	media="screen" />
<f:loadBundle basename="messages" var="msg" />
<style type="text/css">
.rich-message-marker img {
	padding-right: 7px;
}

.rich-message-label {
	color: red;
}

.message-status {
	color: red;
	FONT-WEIGHT: bold;
	font-size: 12px
}
</style>

</head>

<body>
<a4j:form id="formCadastroClinica">
	<center><rich:panel>
		<a4j:status startStyleClass="message-status" id="commonstatus"
			startText="INCLUINDO..." stopText="" />
		<br />
		<rich:messages id="erroCadastroClinica" styleClass="message-status"
			globalOnly="true">
			<f:facet name="errorMarker">
				<h:graphicImage value="/img/error.gif" />
			</f:facet>
		</rich:messages>
	</rich:panel></center>
	<rich:panel>
		<f:facet name="header">
			<h:outputText value="Cadastro de Clínicas"
				styleClass="rich-text-header"></h:outputText>
		</f:facet>

		<h:panelGrid columns="3">
			<h:outputText value="Nome*:" />
			<h:inputText label="Nome" id="nome" required="true"
				value="#{clinicaHandler.clinica.nome}" size="50" maxlength="50">

			</h:inputText>
			<rich:message for="nome">
				<f:facet name="passedMarker">
					<h:graphicImage value="/img/passed.gif" />
				</f:facet>
				<f:facet name="errorMarker">
					<h:graphicImage value="/img/error.gif" />
				</f:facet>
			</rich:message>

			<h:outputText value="CNPJ*:" />
			<input type="text" id="cnpj" value="#{clinicaHandler.clinica.cnpj}"
				size="14" />
			<rich:message for="cnpj">
				<f:facet name="passedMarker">
					<h:graphicImage value="/img/passed.gif" />
				</f:facet>
				<f:facet name="errorMarker">
					<h:graphicImage value="/img/error.gif" />
				</f:facet>
			</rich:message>

			<h:outputText value="Telefone 1*:" />
			<input type="text" id="fone2" value="#{clinicaHandler.clinica.fone1}"
				size="11" />

			<rich:message for="telefone1">
				<f:facet name="passedMarker">
					<h:graphicImage value="/img/passed.gif" />
				</f:facet>
				<f:facet name="errorMarker">
					<h:graphicImage value="/img/error.gif" />
				</f:facet>
			</rich:message>

		
			<h:outputText value="Fax:" />
			<input type="text" id="fax" value="#{clinicaHandler.clinica.fax}"
				size="11" />
			<rich:message for="fax">
				<f:facet name="passedMarker">
					<h:graphicImage value="/img/passed.gif" />
				</f:facet>
				<f:facet name="errorMarker">
					<h:graphicImage value="/img/error.gif" />
				</f:facet>
			</rich:message>

		
			<h:outputText value="CEP*:" />
			<input type="text" id="cep" value="#{clinicaHandler.clinica.cep}"
				maxlength="8" size="8" />
			<rich:message for="cep">
				<f:facet name="passedMarker">
					<h:graphicImage value="/img/passed.gif" />
				</f:facet>
				<f:facet name="errorMarker">
					<h:graphicImage value="/img/error.gif" />
				</f:facet>
			</rich:message>

			</f:facet>

		</h:panelGrid>
	</rich:panel>

</a4j:form>

<script type="text/javascript" src="jquery/jquery-1.2.6.js"></script>

<script type="text/javascript" src="jquery/jquery.maskedinput.js"></script>
<script type="text/javascript" src="jquery/demo.js"></script>
</body>
</html>
]

3 Respostas

paulojr83

quando eu coloco tipo no camppo de fax…

<h:outputText value="Fax:" />
			<input jsfc="h:inputText" required="true" type="text" id="fax" value="#{clinicaHandler.clinica.fax}"
				size="11" />

da pau nem faz mais a mascara…
alguem sabe me dizer o pq disso???

paulojr83

help!!!

S

poxa tbm queria sabe…

acontece a msm coisa cmg =/

Criado 10 de junho de 2008
Ultima resposta 2 de set. de 2008
Respostas 3
Participantes 2