public class ParameterListBean extends Object implements Serializable
parameterList
composite component.Constructor and Description |
---|
ParameterListBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
isInputFieldRequired(String clientId,
boolean parameterMandatory)
Checks whether any input field of the parameter list is required.
|
public boolean isInputFieldRequired(String clientId, boolean parameterMandatory)
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.
clientId
- The resolved client ID of the parameter list composite component.parameterMandatory
- Whether the input field is normally required.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.