Package de.xima.fc.gui.bean
Class ParameterListBean
- java.lang.Object
-
- de.xima.fc.gui.bean.ParameterListBean
-
- All Implemented Interfaces:
Serializable
@RequestScoped @Named public class ParameterListBean extends Object implements Serializable
Bean with methods for theparameterList
composite component.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterListBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInputFieldRequired(String clientId, boolean parameterMandatory)
Checks whether any input field of the parameter list is required.
-
-
-
Method Detail
-
isInputFieldRequired
public boolean isInputFieldRequired(String clientId, boolean parameterMandatory)
Checks whether any input field of the parameter list is required. When the delete or add button was pressed, it is not required; as otherwise a row could not be deleted when another row has not been filled out yet.To check whether the add or delete button was pressed, we check whether their (client) ID is present in the submitted request values. The client ID of the add buttons are
<parameterListId>:inputRow:input:addHeader
<parameterListId>:inputRow:input:addFooter
. The client ID of the delete buttons is<parameterListId>:inputRow:input:<index>:delete
, with the index ranging from 0 to the number of parameters.- Parameters:
clientId
- The resolved client ID of the parameter list composite component.parameterMandatory
- Whether the input field is normally required.- Returns:
- Whether the input field is required.
-
-