javax.faces.component
Interface UniqueIdVendor

All Known Implementing Classes:
HtmlDataTable, HtmlForm, UIData, UIForm, UINamingContainer, UIViewRoot

public interface UniqueIdVendor

UniqueIdVendor is an interface implemented by UIComponents that also implement NamingContainer 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
 java.lang.String createUniqueId(FacesContext context, java.lang.String seed)
          Generate an identifier for a component.
 

Method Detail

createUniqueId

java.lang.String createUniqueId(FacesContext context,
                                java.lang.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 - FacesContext
seed - 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


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41