Constructs a ValidationResultModelContainer using the
given validation message for the collapsed state. The initial state
is expanded.
Parameters: collapsedMessage - the ValidationMessage usedif the container is in collapsed state throws: NullPointerException - if the collapsed message is null
Returns the collapsed validation result, i. e. a
ValidationResult that just consists of a single
ValidationMessage ; in this case
the collapsed validation message.
TODO: Consider changing the implementation to
ValidationResult wrapper = new ValidationResult();
if (getExpandedValidationResult().hasMessages()) {
wrapper.add(collapsedMessage);
}
return wrapper;