Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces ACE components
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
It would be handy to have an h:inputSecret type component capability in ACE.
The path of least resistance seems to be to simply add a new "secret=true/false" attribute to the existing ace:textEntry component.
When secret="true" is specified, the component would render it's value inside an <input type="password"> HTML element, which renders entered characters as asterisks.
However, it in order to preserve the labelPosition="inField" behaviour, the component would need to be able to dynamically switch the "type='password'" attribute of the HTML element on the client, so that it would use a none-password value so long as the label was displayed "inField", and dynamically switch to a "type='password'" mode once the user started to enter a value.
In addition to the "secret" attribute, we should also add a new "redisplay" attribute which would control whether the component redisplays it's entered value after a submit.
The path of least resistance seems to be to simply add a new "secret=true/false" attribute to the existing ace:textEntry component.
When secret="true" is specified, the component would render it's value inside an <input type="password"> HTML element, which renders entered characters as asterisks.
However, it in order to preserve the labelPosition="inField" behaviour, the component would need to be able to dynamically switch the "type='password'" attribute of the HTML element on the client, so that it would use a none-password value so long as the label was displayed "inField", and dynamically switch to a "type='password'" mode once the user started to enter a value.
In addition to the "secret" attribute, we should also add a new "redisplay" attribute which would control whether the component redisplays it's entered value after a submit.
For reference: