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 F1644200B33 for ; Wed, 29 Jun 2016 15:18:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF526160A57; Wed, 29 Jun 2016 13:18:01 +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 1A73F160A4D for ; Wed, 29 Jun 2016 15:18:00 +0200 (CEST) Received: (qmail 9127 invoked by uid 500); 29 Jun 2016 13:17:58 -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 9105 invoked by uid 99); 29 Jun 2016 13:17:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2016 13:17:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AEF9D1A06AD for ; Wed, 29 Jun 2016 13:17:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.853 X-Spam-Level: X-Spam-Status: No, score=0.853 tagged_above=-999 required=6.31 tests=[FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2HGazUg8g1MU for ; Wed, 29 Jun 2016 13:17:53 +0000 (UTC) Received: from BLU004-OMC2S13.hotmail.com (blu004-omc2s13.hotmail.com [65.55.111.88]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id C24A35FB8C for ; Wed, 29 Jun 2016 13:17:52 +0000 (UTC) Received: from BLU172-W21 ([65.55.111.73]) by BLU004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 29 Jun 2016 06:17:51 -0700 X-TMN: [TET6fpmERhqyFjjvxYElZMxkQyr6TO3i] X-Originating-Email: [mgainty@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_b59488cd-47ac-4898-966e-2baaff1026b7_" From: Martin Gainty To: Struts Users Mailing List Subject: RE: jQuery query Date: Wed, 29 Jun 2016 09:17:51 -0400 Importance: Normal In-Reply-To: References: <1a9b240f-2ee4-c6ca-4351-3555f9b35275@riverdynamics.com>, <15a2a108-adb2-f9d6-bdf2-6d34e90002bf@riverdynamics.com>, MIME-Version: 1.0 X-OriginalArrivalTime: 29 Jun 2016 13:17:51.0733 (UTC) FILETIME=[A3A20250:01D1D208] archived-at: Wed, 29 Jun 2016 13:18:02 -0000 --_b59488cd-47ac-4898-966e-2baaff1026b7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > From: anamika.chourasiya@gmail.com > Date: Wed=2C 29 Jun 2016 13:57:56 +0530 > Subject: Re: jQuery query > To: user@struts.apache.org >=20 > You need to put both textboxes of each group in one div=2C give this div = an > id and than user JQUEry inbuild function to toggle it >=20 > something like this > $("#fieldGroup1").toggle()=3B on click event of "Field Group 1" link. > $("#fieldGroup2").toggle()=3B on click event of "Field Group 2" link. >=20 > cssStyle=3D"width: 100%" tooltipIconPath=3D"/images/icons/tooltip.gif"> >=20 > > >
F= ield > Group 1
> > > *
* > requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field1.tooltip')}"/> >=20 > requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field2.tooltip')}"/> >
> > >
F= ield > Group 2
> > > *
* > requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field3.tooltip')}"/> MG>provided theBean is defined as variable in Action which holds accessors = and mutators for field3=2Cfield4 so in your actionpublic class PatrickActio= n {private Bean theBean=3B //theBean holds value=2C mutator and accessor f= or field3 and field4...MG> >=20 > requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field4.tooltip')}"/> >
>
MG>since you will implement DIV..flip javascriptTooltip attribute to true..= the default is false and your JS generateTooltip wont work https://struts.apache.org/docs/div.html >=20 > On Wed=2C Jun 29=2C 2016 at 1:25 PM=2C Patrick Kelly < > patrick.kelly@riverdynamics.com> wrote: >=20 > > correct > > > > > > Patrick Kelly > > > > PatrickKelly > > PrincipalConsultant > > *River**Dynamics* > > > > E: patrick.kelly@riverdynamics.com > > > > W: www.riverdynamics.com > > > > On 29/06/2016 5:48 PM=2C Anamika Chourasiya wrote: > > > >> Hi > >> > >> As per my understanding about the requirement=2C if the user clicks on= the > >> "Field Group 1" field 1 and field 2 textboxes should get visible and = if > >> he > >> again click on the same link they should get disappear. Same functiona= lity > >> for "Field Group 2". Am I right? > >> > >> On Wed=2C Jun 29=2C 2016 at 12:39 PM=2C Patrick Kelly < > >> patrick.kelly@riverdynamics.com> wrote: > >> > >> Hi - I have a struts2 system (version 2.3.16) that contains many forms > >>> that look like kind of like the example below. > >>> > >>> I want to use jquery to add some interactively to the the forms so th= e > >>> user can click a link to show/hide all the fields within a field grou= ping > >>> so that the heading is still visible but not the fields so the user c= an > >>> view/edit just the portion of the form they want. > >>> > >>> Has anyone done this type of thing and could you provide the syntax > >>> including the jquery function and the links to the function from with= in > >>> the > >>> form. > >>> > >>> I assume that this will need to use native jquery code rather than > >>> anything that comes with the jquery struts2 plugin. Let me know if I = have > >>> that wrong. > >>> > >>> Thanks in advance. > >>> > >>> >>> cssStyle=3D"width: 100%" tooltipIconPath=3D"/images/icons/tooltip.gif= "> > >>> > >>> > >>> > >>>
Field > >>> Group 1
> >>> > >>> > >>> > >>> >>> requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field1.tooltip')= }"/> > >>> > >>> >>> requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field2.tooltip')= }"/> > >>> > >>> > >>> > >>>
Field > >>> Group 2
> >>> > >>> > >>> > >>> >>> requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field3.tooltip')= }"/> > >>> > >>> >>> requiredLabel=3D"true" tooltip=3D"%{getText('theBean.field4.tooltip')= }"/> > >>> > >>>
> >>> > >>> > >>> -- > >>> Patrick Kelly > >>> > >>> PatrickKelly > >>> PrincipalConsultant > >>> *River**Dynamics* > >>> > >>> E: patrick.kelly@riverdynamics.com >>> patrick.kelly@riverdynamics.com > >>> W: www.riverdynamics.com > >>> > >>> > >>> > >> > > >=20 >=20 > --=20 > Anamika Chourasiya = --_b59488cd-47ac-4898-966e-2baaff1026b7_--