Package de.xima.fc.gui.bean
Class ParameterListBean
java.lang.Object
de.xima.fc.gui.bean.ParameterListBean
- All Implemented Interfaces:
Serializable
Bean with methods for the
parameterList
composite component.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInputFieldRequired
(String clientId, boolean parameterMandatory) Checks whether any input field of the parameter list is required.
-
Constructor Details
-
ParameterListBean
public ParameterListBean()
-
-
Method Details
-
isInputFieldRequired
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.
-