2017-03-24 4:47 GMT+01:00 Gopal, Siva Prakash (US - Mechanicsburg) <sigo...@deloitte.com>: > Hi All, > > > we have identified issues between radio button generation under > RadioHandler.java under struts2-javatemplates-plugin-2.3.20 and > struts2-javatemplates-plugin-2.3.32 > > struts2-javatemplates-plugin-2.3.20 > ------------------------------------------------ > for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) > { > Object item = itt.next(); > stack.push(item); > Object itemKey = findValue(listKey == null ? "top" : listKey); > String itemKeyStr = StringUtils.defaultString(itemKey != null ? > itemKey.toString() : null); > Object itemValue = findValue(listValue == null ? "top" : listValue); > String itemValueStr = StringUtils.defaultString(itemValue != null ? > itemValue.toString() : null); > String id = (new > StringBuilder()).append(params.get("id")).append(itemKeyStr).toString(); > Here id is generated by appending with key value > > struts2-javatemplates-plugin-2.3.32 > ------------------------------------------------- > for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) > { > Object item = itt.next(); > stack.push(item); > Object itemKey = findValue(listKey == null ? "top" : listKey); > String itemKeyStr = StringUtils.defaultString(itemKey != null ? > itemKey.toString() : null); > Object itemValue = findValue(listValue == null ? "top" : listValue); > String itemValueStr = StringUtils.defaultString(itemValue != null ? > itemValue.toString() : null); > String id = (new > StringBuilder()).append(params.get("id")).append(Integer.toString(cnt++)).toString(); > Here id is generated by appending with count of list items > > Because of these changes, we need to modify the jsp/javascription function in > all our application.
I cannot find such code in the RadioHandler.java https://github.com/apache/struts/blob/support-2-3/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java#L45-L92 > if we are not upgrading to next struts 2.3.20 (using > struts2-javatemplates-plugin-2.3.20 along with strut2-cord 2.3.32 version) > > we are getting below error > > Caused by: java.lang.NoSuchMethodError: > org/apache/struts2/util/ComponentUtils.isExpression(Ljava/lang/Object;)Z > at > org.apache.struts2.views.java.simple.DynamicAttributesHandler.processDynamicAttributes(DynamicAttributesHandler.java:48) > at > org.apache.struts2.views.java.simple.DynamicAttributesHandler.start(DynamicAttributesHandler.java:41) You cannot mix different versions > Do we have any alternate option to resolve this issue Not yet as I cannot identify the source code. Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org