public void evaluateExtraParams() { super.evaluateExtraParams(); addParameter("jqueryaction", JQUERYACTION); if (emptyOption != null) { addParameter("emptyOption", findValue(emptyOption, Boolean.class)); } if ((headerKey != null) && (headerValue != null)) { addParameter("headerKey", findString(headerKey)); addParameter("headerValue", findString(headerValue)); } if (list != null) { addParameter("list", findString(list)); } if (listKey != null) { addParameter("listKey", findString(listKey)); } if (listValue != null) { addParameter("listValue", findString(listValue)); } if (size != null) { addParameter("size", findString(size)); } if (multiple != null) { addParameter("multiple", findValue(multiple, Boolean.class)); } if (autocomplete != null) { addParameter("autocomplete", findValue(autocomplete, Boolean.class)); } if (selectBoxIcon != null) { addParameter("selectBoxIcon", findValue(selectBoxIcon, Boolean.class)); } if (loadMinimumCount != null) { addParameter("loadMinimumCount", findValue(loadMinimumCount, Integer.class)); } if (onSelectTopics != null) addParameter("onSelectTopics", findString(onSelectTopics)); if ((this.id == null || this.id.length() == 0)) { // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT int nextInt = RANDOM.nextInt(); nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt); this.id = "select_" + String.valueOf(nextInt); addParameter("id", this.id); } }
@Override @StrutsTagSkipInheritance public void setTheme(String theme) { super.setTheme(theme); }