public abstract class BaseMultiValueRenderer extends BaseRenderer
Modifier and Type | Field and Description |
---|---|
protected boolean |
highlightedRow |
protected static String |
MSG_ADD_TO_LIST_BUTTON |
protected static String |
MSG_REMOVE
I18N message strings
|
protected static String |
MSG_SELECT_BUTTON |
Constructor and Description |
---|
BaseMultiValueRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context,
UIComponent component) |
void |
encodeBegin(FacesContext context,
UIComponent component) |
void |
encodeEnd(FacesContext context,
UIComponent component) |
protected String |
generateFormSubmit(FacesContext context,
UIComponent component,
String action)
Generate FORM submit JavaScript for the specified action
|
protected String |
getHiddenFieldName(UIComponent component)
We use a hidden field per picker instance on the page.
|
protected void |
renderExistingItem(FacesContext context,
UIComponent component,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
int index,
Object value)
Renders an existing item with a remove button
|
protected abstract void |
renderPostWrappedComponent(FacesContext context,
ResponseWriter out,
UIMultiValueEditor editor)
Renders the area of the component after the wrapped component but before the list
of currently selected values.
|
protected abstract void |
renderPreWrappedComponent(FacesContext context,
ResponseWriter out,
UIMultiValueEditor editor)
Renders the area of the component before the wrapped component appears.
|
assertParmeters, getParameterComponents, outputAttribute
convertClientId, encodeChildren, getConvertedValue, getRendersChildren
protected static final String MSG_REMOVE
protected static final String MSG_SELECT_BUTTON
protected static final String MSG_ADD_TO_LIST_BUTTON
protected boolean highlightedRow
public void decode(FacesContext context, UIComponent component)
decode
in class Renderer
Renderer.decode(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
public void encodeBegin(FacesContext context, UIComponent component) throws IOException
encodeBegin
in class Renderer
IOException
Renderer.encodeBegin(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
public void encodeEnd(FacesContext context, UIComponent component) throws IOException
encodeEnd
in class Renderer
IOException
Renderer.encodeEnd(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
protected abstract void renderPreWrappedComponent(FacesContext context, ResponseWriter out, UIMultiValueEditor editor) throws IOException
context
- FacesContextout
- The ResponseWriter to write toeditor
- The multi value editor componentIOException
protected abstract void renderPostWrappedComponent(FacesContext context, ResponseWriter out, UIMultiValueEditor editor) throws IOException
context
- FacesContextout
- The ResponseWriter to write toeditor
- The multi value editor componentIOException
protected void renderExistingItem(FacesContext context, UIComponent component, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService, int index, Object value) throws IOException
context
- FacesContextcomponent
- The UIComponentout
- Writer to write output tonodeService
- The NodeServiceindex
- The index of the itemvalue
- The item's valueIOException
protected String getHiddenFieldName(UIComponent component)
protected String generateFormSubmit(FacesContext context, UIComponent component, String action)
context
- FacesContextcomponent
- The UIComponentaction
- Action stringCopyright © 2005–2017 Alfresco Software. All rights reserved.