XForms Tutorial > I-6.2.3. The secret Element
이 폼 컨트롤은 HTML의 <input type=”password”>와 유사한 유저인터페이스를 제공한다. 사용자의 입력 정보를 Cryptic Character 로 출력하고자 할 때 사용되는 컨트롤로서 일반적으로 비밀번호 같은 입력등에서 많이 사용된다.
Common Attributes
- Common, UI Common, Single Node Binding
- inputmode, incremental
- Identical to input
- [Level-A] A KeystrPasses not echoed in xforms:secret
- Level-A] A Ensure that a cryptic character is echoed as user enters value into secret : 입력된 키 데이터를 그대로 출력하지 않고 비밀을 보장할 수 있는 특정 문자, 예를 들어 ‘*” 와 같은 문자로 출력을 해야 한다는 의미이다.
…(생략)... <xforms:model id="mymodel"> <xforms:instance id="request_01"> <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <node1>1234</node1> </root> </xforms:instance> <xforms:instance id="response_01"> <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></root> </xforms:instance> </xforms:model> <body> <xforms:secret class="iDigit" model="mymodel" ref="instance('request_01')/node1" maxlength="10" style="position:absolute; top:34px; left:29px; height:24px; width:120px; "></xforms:secret> </body> ...(생략)...
- ref attribute를 통해 instance('request_01')/node1의 데이터를 Single-node Binding
- secret element에 '****' 가 출력된다
댓글 없음:
댓글 쓰기