public final class HtmlUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
ID_SELECTOR_PATTERN |
Modifier and Type | Method and Description |
---|---|
static String |
addToSize(String declaration,
String delta) |
static String |
concatClasses(Object... classes) |
static String |
concatStyles(Object... styles) |
static String |
escapeHtml(String html) |
static String |
expandIdSelector(String selector,
javax.faces.component.UIComponent component,
javax.faces.context.FacesContext context)
Expands ID selectors in given CSS selector from componentId to clientId.
|
static String |
idsToIdSelector(String ids) |
static boolean |
shouldWriteId(javax.faces.component.UIComponent component) |
public static final Pattern ID_SELECTOR_PATTERN
public static String expandIdSelector(String selector, javax.faces.component.UIComponent component, javax.faces.context.FacesContext context)
Expands ID selectors in given CSS selector from componentId to clientId.
e.g. #componentId
turns out into #form:componentId
For expansion, RendererUtils.findComponentFor(FacesContext, UIComponent, String)
is used.
selector
- the CSS selectorcomponent
- the root component for finding other components in treecontext
- the FacesContext
public static boolean shouldWriteId(javax.faces.component.UIComponent component)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.