@Name(value="suggestionActions") @Scope(value=EVENT) public class SuggestionActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
selectedValue |
protected String |
suggestionInputSelectorId
Id of the input selector
|
protected String |
suggestionSelectionDeleteId
Id of the delete component displayed next to single selection
|
protected String |
suggestionSelectionHiddenId
Id if the hidden component where single selection id is put
|
protected String |
suggestionSelectionListId
Id of the editable list component where selection ids are put.
|
protected String |
suggestionSelectionOutputId
Id of the output component where single selection is displayed
|
Constructor and Description |
---|
SuggestionActionsBean() |
Modifier and Type | Method and Description |
---|---|
void |
addBoundSelectionToList(javax.faces.event.ActionEvent event)
Adds selection from selector as a list element
|
void |
addSelectionToList(javax.faces.event.ActionEvent event)
Deprecated.
use
addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method
instead of retrieving suggestion input. |
void |
addSingleBoundSelection(javax.faces.event.ActionEvent event)
Adds selection from selector as single element
|
void |
addSingleSelection(javax.faces.event.ActionEvent event)
Deprecated.
use
addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method
instead of retrieving suggestion input. |
void |
clearSingleSelection(javax.faces.event.ActionEvent event)
Clears single selection.
|
protected javax.faces.component.UIComponent |
getBase(javax.faces.component.UIComponent anchor)
Deprecated.
|
String |
getSelectedValue() |
void |
setSelectedValue(String selectedValue) |
@RequestParameter protected String suggestionInputSelectorId
Component must be an instance of ValueHolder
@RequestParameter protected String suggestionSelectionListId
Component must be an instance of UIEditableList
@RequestParameter protected String suggestionSelectionOutputId
Component must be an instance of ValueHolder
@RequestParameter protected String suggestionSelectionHiddenId
Component must be an instance of EditableValueHolder
@RequestParameter protected String suggestionSelectionDeleteId
Component must be an instance of UIComponent
protected String selectedValue
public SuggestionActionsBean()
public String getSelectedValue()
public void setSelectedValue(String selectedValue)
@Deprecated protected javax.faces.component.UIComponent getBase(javax.faces.component.UIComponent anchor)
Gets out of suggestion box as it's a naming container and we can't get components out of it with a relative path => take above first found container.
public void addBoundSelectionToList(javax.faces.event.ActionEvent event)
Must pass request parameter "suggestionSelectionListId" holding the binding to model. Selection will be retrieved
using the getSelectedValue()
method.
@Deprecated public void addSelectionToList(javax.faces.event.ActionEvent event)
addBoundSelectionToList(ActionEvent)
which retrieves selected value from bound method
instead of retrieving suggestion input.Must pass request parameters "suggestionInputSelectorId" holding the value to pass to the binding component, "suggestionSelectionListId" holding the binding to model.
public void addSingleBoundSelection(javax.faces.event.ActionEvent event)
Must pass request parameters "suggestionSelectionOutputId" holding the value to show, and
"suggestionSelectionHiddenId" holding the binding to model. Selection will be retrieved using the
getSelectedValue()
method. Since 5.5, only one of these two parameters is required.
Additional optional request parameter "suggestionSelectionDeleteId" can be used to show an area where the "clear" button is shown.
@Deprecated public void addSingleSelection(javax.faces.event.ActionEvent event)
addBoundSelectionToList(ActionEvent)
which retrieves selected value from bound method
instead of retrieving suggestion input.Must pass request parameters "suggestionInputSelectorId" holding the value to pass to the binding component, "suggestionSelectionOutputId" holding the value to show, and "suggestionSelectionHiddenId" holding the binding to model.
Additional optional request parameter "suggestionSelectionDeleteId" can be used to show an area where the "clear" button is shown. *
public void clearSingleSelection(javax.faces.event.ActionEvent event)
Must pass request parameters "suggestionSelectionOutputId" holding the value to show, and "suggestionSelectionHiddenId" holding the binding to model. Since 5.5, only one of these two parameters is required.
Additional optional request parameter "suggestionSelectionDeleteId" can be used to hide an area where the "clear" button is shown.
Copyright © 2017 Nuxeo. All rights reserved.