org.alfresco.web.ui.repo.renderer
Class MultiValueFieldRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.alfresco.web.ui.common.renderer.BaseRenderer
          extended by org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
              extended by org.alfresco.web.ui.repo.renderer.MultiValueFieldRenderer

public class MultiValueFieldRenderer
extends BaseMultiValueRenderer

Renders the MultiValueEditor component for use with field components i.e. text, checkboxes, lists etc. This renderer does not show a "select item" message or a select button, the wrapped component is shown immediately with an add to list button after it.


Field Summary
 
Fields inherited from class org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
highlightedRow, MSG_ADD_TO_LIST_BUTTON, MSG_REMOVE, MSG_SELECT_BUTTON
 
Constructor Summary
MultiValueFieldRenderer()
           
 
Method Summary
protected  void renderPostWrappedComponent(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, UIMultiValueEditor editor)
          Renders the area of the component after the wrapped component but before the list of currently selected values.
protected  void renderPreWrappedComponent(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, UIMultiValueEditor editor)
          Renders the area of the component before the wrapped component appears.
 
Methods inherited from class org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
decode, encodeBegin, encodeEnd, generateFormSubmit, getHiddenFieldName, renderExistingItem
 
Methods inherited from class org.alfresco.web.ui.common.renderer.BaseRenderer
assertParmeters, getParameterComponents, outputAttribute
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiValueFieldRenderer

public MultiValueFieldRenderer()
Method Detail

renderPreWrappedComponent

protected void renderPreWrappedComponent(javax.faces.context.FacesContext context,
                                         javax.faces.context.ResponseWriter out,
                                         UIMultiValueEditor editor)
                                  throws java.io.IOException
Description copied from class: BaseMultiValueRenderer
Renders the area of the component before the wrapped component appears.

Specified by:
renderPreWrappedComponent in class BaseMultiValueRenderer
Parameters:
context - FacesContext
out - The ResponseWriter to write to
editor - The multi value editor component
Throws:
java.io.IOException

renderPostWrappedComponent

protected void renderPostWrappedComponent(javax.faces.context.FacesContext context,
                                          javax.faces.context.ResponseWriter out,
                                          UIMultiValueEditor editor)
                                   throws java.io.IOException
Description copied from class: BaseMultiValueRenderer
Renders the area of the component after the wrapped component but before the list of currently selected values.

Specified by:
renderPostWrappedComponent in class BaseMultiValueRenderer
Parameters:
context - FacesContext
out - The ResponseWriter to write to
editor - The multi value editor component
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.