|
|
tenta
<rich:jQuery selector=".mask" query="setMask({mask: '99,999.999.999',
type : 'reverse', defaultValue: '000'})" />
E ai no teu campo põe.
<h:inputText styleClass="mask" />
O jQuery vai procurar inserir a mascara correspondente ao styleClass
do componente.
2010/3/24 Rodrigo Lether <rodrigo.lether@xxxxxxxxx>:
> Olá Pessoal,
>
> Existe a possibilidade de criar uma unica mascara com o "rich:jQuery" para
> ser utilizando em varios campos ?
> Ex: mascara de moeda.
>
> Ao invez de criar varios:
> <rich:jQuery selector="#campo1" query="setMask({mask: '99,999.999.999', type
> : 'reverse', defaultValue: '000'})" />
> <rich:jQuery selector="#campo2" query="setMask({mask: '99,999.999.999', type
> : 'reverse', defaultValue: '000'})" />
> <rich:jQuery selector="#campo3" query="setMask({mask: '99,999.999.999', type
> : 'reverse', defaultValue: '000'})" />
> <rich:jQuery selector="#campo4" query="setMask({mask: '99,999.999.999', type
> : 'reverse', defaultValue: '000'})" />
>
> Criar apenas1 para os campos "campo1,campo2,campo3,campo4" ?
>
> Obrigado,
> Rodrigo
>
> --
> http://groups.google.com/group/javasf
>
> You received this message because you are subscribed to the Google
> Groups "javasf: JavaServer Faces Group" group.
> To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
>
> To unsubscribe from this group, send email to
> javasf+unsubscribegooglegroups.com or reply to this email with the words
> "REMOVE ME" as the subject.
>
--
Atenciosamente,
Assis júnior
SCJP 5.0 Certified
--
http://groups.google.com/group/javasf
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
javasf+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.
|
|