ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Few pages of this site are under construction and we are constantly trying to improve it. If you have any suggestions or ideas about how to improve the site, please Let us know.
JSF tag reference - h:inputSecret

« h:outputLabel JSF Tag Home h:outputText »

<h:inputSecret>

Contents
  1. Description
  2. Example
  3. Tag Attributes
  4. Code Generator


h:inputSecret Description

The inputSecret tag renders an <input type="password"> HTML tag. When the user types a string into this field, a row of asterisks is displayed instead of the text the user types.

  • Use <h:inputSecret> tag represents the password field.
  • Password fields mask the content of what the user is typing.
  • Setting redisplay = “true” allow the component to display its value when the page reloads. The default value of redisplay attribute is false.
  • Also see h:inputHidden.



h:inputSecret Example


Code Output
<h:outputLabel for="pass" value="Password: "/>
<h:inputText id="pass" redisplay="false" value="#{courseBean.password}"/>

h:inputSecret Attributes


Attribute Description Type
id
The unique identifier value for this component. The value must be unique within the closest naming container (e.g.,h:form or f:subview).This value must be a static value.
String
binding
The value-binding expression linking this component tag to a backing bean property.
String
rendered
A boolean value that indicates whether this component should be rendered.Default value: true.
String
value
The value attribute sets the current value for this component.
String
redisplay
Flag indicating that any existing value in this field should be rendered when the form is created. Because this is a potential security risk, password values are not displayed by default.
String
converter
Sets the converter instance to be registered for this component. It must match the converter-id value of a converter element defined in your Faces configuration file.
String
immediate
A boolean value that identifies the phase during which action events should fire. During normal event processing, action methods and action listener methods are fired during the "invoke application" phase of request processing. If this attribute is set to "true", these methods are fired instead at the end of the "apply request values" phase.
String
requiredThe required attribute is a boolean flag that indicates whether or not the user is required to provide a value for this field before the form can be submitted to the server.String
validatorA method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value. A validator method must be a public method that takes FacesContext, UIComponent, and Object parameters, with a return type of void.String
valueChangeListenerThe valueChangeListener attribute accepts a method-binding expression representing a value change listener method to be notified when a new value has been set for this input component. A value change listener method must be a public method that takes a ValueChangeEvent parameter, with a return type of void.String
accesskey
The accesskey attribute is a standard HTML attribute that sets the access key that transfers focus to this element when pressed.
String
alt
The alt attribute is a standard HTML attribute that sets the alternate textual description rendered by this component.
String
align
***
String
disabled
When true, this element cannot receive focus.
String
readonlyThe readonly attribute is a boolean flag that when set to true prohibits changes to this element by the user. The element will continue to receive focus unless you set the disabled attribute to true.  
tabindex
The tabindex attribute is a standard HTML attribute that sets the order in which this element receives focus when the user cycles through the elements using the TAB key. The value for this attribute must be an integer between 0 and 32767.
String
maxlength
Sets the maximum length in characters of the string accepted by this input component.
String
size
The size attribute sets the width in characters of this input field.
String
converterMessage
A ValueExpression enabled attribute that, if present, will be used as the text of the converter message, replacing any message that comes from the converter.
String
requiredMessage
A ValueExpression enabled attribute that, if present, will be used as the text of the validation message for the "required" facility, if the "required" facility is used.
String
validatorMessage
A ValueExpression enabled attribute that, if present, will be used as the text of the validator message, replacing any message that comes from the validator.
String
dir
The dir attribute is a standard HTML attribute that overrides the default text directionality for this component. The values accepted for this component are "LTR" (left-to-right) and "RTL" (right-to-left).
String
lang
Code describing the language used in the generated markup for this component
String
style
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
String
title
An advisory title for this element. Often used by the user agent as a tooltip.
String
styleClass
The styleClass attribute sets the CSS class to apply to this component when it is rendered.
String
onclick
Sets the JavaScript code to execute when the mouse pointer is clicked over this element.
String
ondblclick
Sets the JavaScript code to execute when the mouse pointer is double-clicked over this element.
String
onmousedown
Sets the JavaScript code to execute when the mouse pointer is pressed down over this element.
String
onmouseup
Sets the JavaScript code to execute when the mouse button is released over this element.
String
onmouseover
Sets the JavaScript code to execute when the mouse pointer is moved onto this element.
String
onmousemove
Sets the JavaScript code to execute when the mouse pointer is moved within this element.
String
onmouseout
Sets the JavaScript code to execute when the mouse pointer is moved away from this element.
String
onkeypress
Sets the Javascript code to execute when a key is pressed and released over this element.
String
onkeydown
Sets the Javascript code to execute when a key is pressed down over this element.
String
onkeyup
Sets the Javascript code to execute when a key is released over this element.
String
onblur
Sets the Javascript code to execute when this element loses focus.
String
onfocus
Sets the Javascript code to execute when this element receives focus.
String
onselect
Sets the Javascript code to execute when text within this element is selected by the user.
String
onchange
Sets the Javascript code to execute when this element loses focus and its value has been modified since gaining
More »» Code Generator
« h:outputLabel JSF Tag Home h:outputText »
Test

  ALSO SEE :

About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.