Corrections to calculated order values from "before" and "after" attributes.

This commit is contained in:
Luke Taylor 2008-01-27 22:46:24 +00:00
parent acf5601714
commit e6d6e88117
1 changed files with 2 additions and 2 deletions

View File

@ -58,11 +58,11 @@ public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor
String before = elt.getAttribute(ATT_BEFORE);
if (StringUtils.hasText(after)) {
return FilterChainOrder.getOrder(after).toString();
return Integer.toString(FilterChainOrder.getOrder(after) + 1);
}
if (StringUtils.hasText(before)) {
return FilterChainOrder.getOrder(before).toString();
return Integer.toString(FilterChainOrder.getOrder(before) - 1);
}
return null;