Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 33154 invoked from network); 12 Sep 2009 20:17:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Sep 2009 20:17:45 -0000 Received: (qmail 89983 invoked by uid 500); 12 Sep 2009 20:17:42 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 89928 invoked by uid 500); 12 Sep 2009 20:17:42 -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 89917 invoked by uid 99); 12 Sep 2009 20:17:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Sep 2009 20:17:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.38.239] (HELO web51808.mail.re2.yahoo.com) (206.190.38.239) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 12 Sep 2009 20:17:33 +0000 Received: (qmail 46517 invoked by uid 60001); 12 Sep 2009 20:17:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1252786631; bh=l0e3yi4Mxn7mU2szBj6p3STZqEhneNklLT79asRWyHA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=WQ1c9nWEyEFUMgqVwH/SWgKUOQp1LsOx7IV/ZdglkPjebprcMnmGz6hPqD2jDJrUnZreSbqOfdcArUgbGvW0JxDcWIrzgEmVbWzPM7VsZK3BdH3S6zQNGR7QgINSxiYLugTy3ea+m7oZbZoNYV57232vs599LznFoHWD9mkTsWE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=suKeW7YfJGzLnAz8CcdEP00sM6/mXzSCHmcVYy9mGj5j4ww/mBOoqLEuFrRUoKkTt0KikVWlxwzB1E7OmMQtqD7mt+A4wjHEcKLGdk/9ilPS6bwJyw/VIkt0PHPu9EjDt1CdgL1KdOaL2XIqb7fbIPQCnUmB+ppZOsuTxmbnXUs=; Message-ID: <746063.43753.qm@web51808.mail.re2.yahoo.com> X-YMail-OSG: QmsMF6cVM1l1Jnq8IQJZO0UBkfrsOKRVpdmVkAqTm8E8TlPLeDVFmkNvhhZURA6L9aJk3dfkHPjqaWw_JANjPBAlYoOLpRZuoCgae7e5b1ppO0jkf1Y13NPDkqmSaVdOY.rC0AEU3rT8awqSpzhPLSOYmmxHIm_IUEEWc04Xq9P9Zxh59VgllPTXsK4DELWVWQCKGKQ360pS9GOITDUNzs.HA.G_YbECaE7jNFfzxwnmkg43RuTWEuRronrp9h2h1cdvV5U54RqUmwc8VjeMjkRGy8FIy1TuZrzalib74J5Zb4QIugyQ6ih_Ec75Q8XiA6q0DGrxRNW0azeX.wAJHLY- Received: from [69.165.162.47] by web51808.mail.re2.yahoo.com via HTTP; Sat, 12 Sep 2009 13:17:11 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.347.2 Date: Sat, 12 Sep 2009 13:17:11 -0700 (PDT) From: red dog Subject: Re: scripting paramaters passed as parameters To: Struts Users Mailing List In-Reply-To: <771779.7120.qm@web51803.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1935494982-1252786631=:43753" X-Virus-Checked: Checked by ClamAV on apache.org --0-1935494982-1252786631=:43753 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable First of all the subject should've read "scripting=A0events passed as param= eters".=20 =A0 I'm now responding to my own question :) - this will do it=A0- not sure if = this is a bug in Struts2 or not though: =A0 <@s.textfield theme=3D"simple" name=3D"name1" id=3D"id1" cssClass=3D"textfi= eld" value=3D"value1"> <@s.param name=3D"onclick">myjsfunction(); --- On Sat, 9/12/09, red dog wrote: From: red dog Subject: scripting paramaters passed as parameters To: user@struts.apache.org Date: Saturday, September 12, 2009, 12:16 PM Hello, =A0 I'm new to this mailing list although I'm using Struts2 for quite some time= . I am stuck right now and I decided to ask a=A0quick question: =A0 Is it possible to generate an input field (as well as any other fields) by = passing an onclick event for example as parameter? It doesn't seem to be wo= rking for me... I'm using Struts2.1.6=A0+ freemarker as you can see bellow. =A0 <@s.textfield theme=3D"simple" name=3D"name1" id=3D"id1" cssClass=3D"textfi= eld" value=3D"value1"> <@s.param name=3D"onclick" value=3D"myjsfunction();" /> =A0 Thank you. =A0 =A0 =A0 =0A=0A=0A --0-1935494982-1252786631=:43753--