diff --git a/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/taglibs/TabsTag.java b/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/taglibs/TabsTag.java index 8895273189b37f9d352b98cd82a08f2582739e6d..49fcedfade778dd04ef8c9810ba7a76ba985d371 100644 --- a/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/taglibs/TabsTag.java +++ b/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/taglibs/TabsTag.java @@ -10,6 +10,7 @@ import java.util.Iterator; import javax.servlet.jsp.JspException; import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang.math.NumberUtils; import org.springframework.web.context.support.WebApplicationContextUtils; import org.springframework.web.servlet.tags.form.AbstractHtmlElementTag; import org.springframework.web.servlet.tags.form.TagWriter; @@ -294,7 +295,10 @@ public class TabsTag extends AbstractHtmlElementTag { */ private boolean isActiveTab(int ctr, TabInfoBean tabInfoBean, String currentTab) { - return currentTab.equals(tabInfoBean.getTabName()) || currentTab.equals(ctr + ""); + if (NumberUtils.isDigits(currentTab)) { + return currentTab.equals(ctr + ""); + } + return currentTab.equals(tabInfoBean.getTabName()); } private boolean isAuthorized(TabInfoBean tabInfoBean) {