문제

PrimeFaces has a <p:inputMask> component which forces an input to fit in a defined mask as input is being typed.

For example:

<h:outputText value="Date: " />
<p:inputMask value="#{maskController.date}" mask="99/99/9999"/>

Is there any equivalent in Trinidad?

도움이 되었습니까?

해결책

I solved my problem by adding javascript support with JQuery - masked input plugin : http://digitalbush.com/projects/masked-input-plugin/

Thanks

다른 팁

You could do it like this:

<tr:inputDate id="idDate" value="04/10/2013"
       autoSubmit="true"
       label="Label: ">
    <tr:convertDateTime pattern="MM/dd/yyyy"/>
</tr:inputDate>

See also: Trinidad Tag-Documentaion

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top