Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 633A1200C41 for ; Fri, 24 Mar 2017 09:17:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 61D03160B93; Fri, 24 Mar 2017 08:17:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A6922160B82 for ; Fri, 24 Mar 2017 09:17:04 +0100 (CET) Received: (qmail 35388 invoked by uid 500); 24 Mar 2017 08:17:03 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 35375 invoked by uid 99); 24 Mar 2017 08:17:03 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2017 08:17:03 +0000 Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2082C1A0185 for ; Fri, 24 Mar 2017 08:17:03 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id z204so7521703vkd.1 for ; Fri, 24 Mar 2017 01:17:03 -0700 (PDT) X-Gm-Message-State: AFeK/H2I3S4bl3DIVS47icICT/LexQrXT+yaoAhEw8zlFW6TgqqCv25tVz2aUYwoBOQfKgCi0NJI6SoVHrksSg== X-Received: by 10.159.39.167 with SMTP id b36mr3656210uab.86.1490343422073; Fri, 24 Mar 2017 01:17:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.107.193 with HTTP; Fri, 24 Mar 2017 01:16:41 -0700 (PDT) In-Reply-To: References: From: Lukasz Lenart Date: Fri, 24 Mar 2017 09:16:41 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: RE: Struts upgrade issue To: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Fri, 24 Mar 2017 08:17:05 -0000 2017-03-24 4:47 GMT+01:00 Gopal, Siva Prakash (US - Mechanicsburg) : > Hi All, > > > we have identified issues between radio button generation under RadioHand= ler.java under struts2-javatemplates-plugin-2.3.20 and struts2-javatemplate= s-plugin-2.3.32 > > struts2-javatemplates-plugin-2.3.20 > ------------------------------------------------ > for(Iterator itt =3D MakeIterator.convert(listObj); itt.hasNext(); stack.= pop()) > { > Object item =3D itt.next(); > stack.push(item); > Object itemKey =3D findValue(listKey =3D=3D null ? "top" : listKey); > String itemKeyStr =3D StringUtils.defaultString(itemKey !=3D null ? itemK= ey.toString() : null); > Object itemValue =3D findValue(listValue =3D=3D null ? "top" : listValue)= ; > String itemValueStr =3D StringUtils.defaultString(itemValue !=3D null ? i= temValue.toString() : null); > String id =3D (new StringBuilder()).append(params.get("id")).append(itemK= eyStr).toString(); > Here id is generated by appending with key value > > struts2-javatemplates-plugin-2.3.32 > ------------------------------------------------- > for(Iterator itt =3D MakeIterator.convert(listObj); itt.hasNext(); stack.= pop()) > { > Object item =3D itt.next(); > stack.push(item); > Object itemKey =3D findValue(listKey =3D=3D null ? "top" : listKey); > String itemKeyStr =3D StringUtils.defaultString(itemKey !=3D null ? itemK= ey.toString() : null); > Object itemValue =3D findValue(listValue =3D=3D null ? "top" : listValue)= ; > String itemValueStr =3D StringUtils.defaultString(itemValue !=3D null ? i= temValue.toString() : null); > String id =3D (new StringBuilder()).append(params.get("id")).append(Integ= er.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 functio= n 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-javatemplate= s-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/Component= Utils.isExpression(Ljava/lang/Object;)Z > at org.apache.struts2.views.java.simple.DynamicAttributesHandler.processD= ynamicAttributes(DynamicAttributesHandler.java:48) > at org.apache.struts2.views.java.simple.DynamicAttributesHandler.start(Dy= namicAttributesHandler.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 --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org