The unsecure
attribute specifies a list of attributes whose values can be set on the client.
The values of attributes for Oracle ADF Faces components can ordinarily be set only on the server. However, a number of components allow the developer to define a list of attributes that can be set on the client. unsecure
attribute of these components can specify such a list.
Currently, the only attribute that can appear inside the unsecure
attribute is disabled
, and it allows the client to define which components are enabled and which ones are not. It is never a good idea to let the client control the values of attributes that should only be settable on the server.
Example: The following code demonstrates an inputText
component that collects password information from the user and uses the unsecure
attribute.
...
<af:inputText id="pwdBox"
label="#{resources.PWD}"
value=""#{userBean.password}
unsecure="disabled"
secret="true"
required="true"/>
...
[1] Oracle ADF Faces Tag Reference