Class ParameterListBean

  • All Implemented Interfaces:
    Serializable

    @RequestScoped
    @Named
    public class ParameterListBean
    extends Object
    implements Serializable
    Bean with methods for the parameterList composite component.
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • ParameterListBean

        public ParameterListBean()
    • 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.