Class SelectOneModelComponent
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UINamingContainer
-
- de.xima.fc.prompt.service.support.gui.component.SelectOneModelComponent
-
- All Implemented Interfaces:
EventListener,javax.faces.component.NamingContainer,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.UniqueIdVendor,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder
public class SelectOneModelComponent extends javax.faces.component.UINamingContainer
-
-
Field Summary
-
Fields inherited from class javax.faces.component.UINamingContainer
COMPONENT_FAMILY, COMPONENT_TYPE, SEPARATOR_CHAR_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description SelectOneModelComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>onComplete(String query)Callback when the autocomplete functionality is triggered.StringresolveSearchExpression()Resolves the search expression for the "process" attribute of the composite component.-
Methods inherited from class javax.faces.component.UINamingContainer
createUniqueId, getFamily, getSeparatorChar, visitTree
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
-
-
-
-
Method Detail
-
onComplete
public List<String> onComplete(String query)
Callback when the autocomplete functionality is triggered. This method reads the available models from the "models" attribute provided to the composite component, filters them based on the user's input, and returns a sorted list of matching model names.- Parameters:
query- The user input to filter the model names by. If empty, all models are returned.- Returns:
- A list of model names that match the user's input, sorted alphabetically if enabled.
-
resolveSearchExpression
public String resolveSearchExpression()
Resolves the search expression for the "process" attribute of the composite component. We want the user of our composite component to be able to specify a search expression relative to the composite component itself, not relative to some component inside our composite component (as that is an internal implementation detail). So we manually resolve the search expression here against the parent composite component here, and generate a new search expression with the absolute resolved tenant IDs.- Returns:
- A search expression that can be used to find the process component in the view.
-
-