Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 2091 invoked from network); 23 Jun 2008 16:58:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 16:58:29 -0000 Received: (qmail 79085 invoked by uid 500); 23 Jun 2008 16:58:29 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 79042 invoked by uid 500); 23 Jun 2008 16:58:29 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 79027 invoked by uid 99); 23 Jun 2008 16:58:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 09:58:29 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 16:57:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51358234C145 for ; Mon, 23 Jun 2008 09:58:06 -0700 (PDT) Message-ID: <400665604.1214240286331.JavaMail.jira@brutus> Date: Mon, 23 Jun 2008 09:58:06 -0700 (PDT) From: "James Holmes (JIRA)" To: issues@struts.apache.org Subject: [jira] Updated: (WW-2672) Autocompleter don't submit the attribute value to the url action when use valueNotifyTopics. In-Reply-To: <928402435.1212857105568.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Holmes updated WW-2672: ----------------------------- Summary: Autocompleter don't submit the attribute value to the url action when use valueNotifyTopics. (was: Autocomplenter don't submit the attribute value to the url action when use valueNotifyTopics.) > Autocompleter don't submit the attribute value to the url action when use valueNotifyTopics. > -------------------------------------------------------------------------------------------- > > Key: WW-2672 > URL: https://issues.apache.org/struts/browse/WW-2672 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Dojo Tags > Affects Versions: 2.1.0, 2.1.1, 2.1.2 > Environment: Windows Server 2003, JDK1.5.0.11, Tomcat5.5.25, IE 7 & Firefox2 > Reporter: Wilson M Penha Jr. > Fix For: 2.1.3 > > > I got three days running on this issue, and now I could identify what happens and when, but I could not say why? > I'm doing one app with Struts2.1.x, Spring2.5.x, Hibernate3. > I've been trying to run a autocompleter with valueNotifyTopics to another component such as See my code: > .jsp >
> > id="condicaoPagamentoId" name="proposta.condicaoPagamento.id" > list="condicaoPagamentoList" keyName="proposta.condicaoPagamento.id" listKey="id" > listValue="descricao" > valueNotifyTopics="/condicaodepagamento" > forceValidOption="true" /> > > > > > > struts.xml > > > > gerarParcelas > > /WEB-INF/jsp/proposta/parcelas.jsp > > > Behave 1 at IE7: > When I open my jsp it isn't sending the value for "proposta.condicaoPagamento.id" to my action, it appears as null, causing an error. > Behave 2 at IE7: > I changed the "proposta.id" attribute to be set with instead , so when I open my jsp I got another exception before it reach the action, is was: > java.lang.NumberFormatException: For input string: "[Ljava.lang.String;@1d1cd0d" > at java.lang.NumberFormatException.forInputString(Unknown Source) > at java.lang.Long.parseLong(Unknown Source) > at java.lang.Long.parseLong(Unknown Source) > ..... > ognl.MethodFailedException: Method "setId" failed for object scoweb.app.model.CondicaoPagamento@ed21d3 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)] > .... > expr: proposta.condicaoPagamento.id val: [Ljava.lang.String;@1d1cd0d context: ognl.OgnlContext@99c60f88 root:[scoweb.app.action.PropostaAction@2a590d, com.opensymphony.xwork2.DefaultTextProvider@117ae94] value: [Ljava.lang.String;@1d1cd0d > 2008-06-07 12:29:30,234 ERROR (com.opensymphony.xwork2.interceptor.ParametersInterceptor:24) - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'proposta.condicaoPagamento.id' on 'class scoweb.app.action.PropostaAction: Error setting expression 'proposta.condicaoPagamento.id' with value '[Ljava.lang.String;@1d1cd0d' > 2008-06-07 12:29:30,515 ERROR (org.apache.struts2.dispatcher.Dispatcher:28) - Could not find action or result > No result defined for action scoweb.app.action.PropostaAction and result input > at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:357) > at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:259) > ............. > The attribute type for Id is set to Long > private Long Id; > setId(Long id)... > Long getId()... > Behave 3 at Firefox: > For both cases it's show the same as Behave 2 does. > I tried to change the attributes from the autocompleter to do like the showcase example, see what happens: > .jsp > > name="select" > list="{'fruits','colors'}" > value="colors" > valueNotifyTopics="/condicaodepagamento" > forceValidOption="true" /> > > > > > Behave 1 at IE7 > The attribute "select" appears as null into the action > Behave 2 at IE7: > I changed the "proposta.id" attribute to be set with instead , so when I open my jsp the "select" attribute was right populated. > Behave 3 at Firefox2. > In both cases the attribute "select" was filled by the action. > Now I'm stuck on that and asking for help for you guys. > NOTE: If just use a component instead to select the "proposta.condicaoPagamento.id" and ignoring the thing, it just work as should. > Thanks and regards, > Wilson M. Penha Jr. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.