if (StringUtils.isNotBlank(value)) {
StringTokenizer tokenizer = new StringTokenizer(value, ";");
Measure vertical = Measure.valueOf(tokenizer.nextToken());
Measure horizontal = Measure.valueOf(tokenizer.nextToken());
if (vertical.greaterThan(Measure.valueOf(30)) || vertical.lessThan(Measure.valueOf(3))
|| horizontal.greaterThan(Measure.valueOf(30)) || horizontal.lessThan(Measure.valueOf(3))) {
LOG.error("Ignoring strange values: vertical=" + vertical + " horizontal=" + horizontal);
} else {
ClientProperties client = VariableResolverUtils.resolveClientProperties(facesContext);
client.setVerticalScrollbarWeight(vertical);
client.setHorizontalScrollbarWeight(horizontal);