| com.icesoft.faces.component.NamespacingViewRoot
NamespacingViewRoot | public class NamespacingViewRoot extends UIViewRoot implements Serializable(Code) | | The Sun RI does not call encodeNamespace when it creates unique ID's whereas
MyFaces does. In order to support portlets, component ids must have the
appropriate namespace applied. This custom UIViewRoot class can be used by
our own custom ViewHandler. It simply overrides the createUniqueId method
and, if necessary, prepends the namespace to each component id.
|
NamespacingViewRoot | public NamespacingViewRoot(FacesContext context)(Code) | | |
createUniqueId | public String createUniqueId()(Code) | | Overrides the UIViewRoot.createUniqueId method. The parent method is
called and the resulting id has the namespace pre-pended if:
- a namespace has been made available (e.g. portlets)
- the namespace has not already been prepended (e.g. MyFaces)
a unique component id, potentially with a namespace prepended |
|
|