-
- All Known Implementing Classes:
- HtmlDataTable, HtmlForm, UIData, UIForm, UINamingContainer, UIViewRoot
public interface UniqueIdVendor
UniqueIdVendor is an interface implemented by
UIComponents
that also implementNamingContainer
so that they can provide unique ids based on their own clientId. This will reduce the amount of id generation variance between different renderings of the same view and is helpful for improved state saving.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description String
createUniqueId(FacesContext context, String seed)
Generate an identifier for a component.
-
-
-
Method Detail
-
createUniqueId
String createUniqueId(FacesContext context, String seed)
Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id.
- Parameters:
context
- FacesContextseed
- an optional seed value - e.g. based on the position of the component in the VDL-template- Returns:
- a unique-id in this component-container
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/component/uniqueidvendor.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.