Return-Path: Delivered-To: apmail-incubator-beehive-user-archive@www.apache.org Received: (qmail 89609 invoked from network); 12 Jan 2005 06:36:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jan 2005 06:36:09 -0000 Received: (qmail 88795 invoked by uid 500); 12 Jan 2005 06:36:08 -0000 Delivered-To: apmail-incubator-beehive-user-archive@incubator.apache.org Received: (qmail 88773 invoked by uid 500); 12 Jan 2005 06:36:08 -0000 Mailing-List: contact beehive-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list beehive-user@incubator.apache.org Received: (qmail 88759 invoked by uid 99); 12 Jan 2005 06:36:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ussjmh01.bea.com (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 22:36:06 -0800 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [172.16.120.57]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id j0C6a4TM031823 for ; Tue, 11 Jan 2005 22:36:04 -0800 Received: from USBOEX01.amer.bea.com ([10.36.32.15]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 11 Jan 2005 22:36:04 -0800 Received: from [10.61.4.81] ([10.61.4.81]) by USBOEX01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 11 Jan 2005 23:36:03 -0700 Message-ID: <41E4C5CE.8070607@bea.com> Date: Tue, 11 Jan 2005 23:38:06 -0700 From: "Eddie O'Neil" User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users Subject: Re: Parameter passing with data grid References: <4C2F1577F2EF2840A9AE9EC61860C881016867A1@usseex01.amer.bea.com> In-Reply-To: <4C2F1577F2EF2840A9AE9EC61860C881016867A1@usseex01.amer.bea.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Jan 2005 06:36:04.0103 (UTC) FILETIME=[FD301970:01C4F870] X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2004.12.17.11 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Adrian-- Great, thanks for the explanation. As it turns out, this is some work that is in progress. The pager, sort, filter, and other generated query parameters that are attached to URLs generated in the grid should preserve all of the query parameters that are already on the URL. So, if "parentId" is the name of a query parameter on page one, that parameter will be preserved when trying to display page two, page three, etc. Will try to get that done soon and will also file a JIRA issue (when JIRA is back up!) so that it's obvious when it's finished. Thanks for the feedback! Eddie Adrian Grealish wrote: > Eddie, > > What I need is to be able to add parameters to the pager query strings. > > I have a parent child relationship where the parent record has many > children records. I have a data grid that displays all the child records > given the parent record's primary key. > > The page flow method, 'viewGrid', that displays the data grid checks for > the request parameter 'parentId' and then does a select * where > foreign_key_to_parent_table = . When I click on the 'next' > link of the data grid the same page flow method, 'viewGrid', is called > again but this time without the URL encoded parameter causing the SQL > query to fail. > > If there is better way to do this please let me know. > > Thanks, > Adrian > > > -----Original Message----- > From: Eddie O'Neil > Sent: Tuesday, January 11, 2005 3:54 PM > To: Beehive Users > Subject: Re: Parameter passing with data grid > > Adrian-- > > Right now, it's not possible to add arbitrary parameters to the pager > > query strings, but it'd be something that could definitely added. > > Would be great to understand what you need a little better; can you > explain this a little more? > > Thanks! > > Eddie > > > > > Adrian Grealish wrote: > >>Hi, >> >> >> >>How do you pass a parameter to the default pager in the data grid? >> >> >> >>I have a result set that depends on the parent id to limit the set > > size > >>returned from an SQL query but I cannot see how to pass this parameter >>when I click the 'next' link on the grid. >> >> >> >>I have tried to include the parameter tag inside the 'configurePager' >>tag but this results in an error saying the 'configurePager' tag must > > be > >>empty. >> >> >> >>Next as a test I hard coded the parameter into the pageAction > > attribute > >>(pageAction="viewGrid?testSuiteRunId=1") but his results in the >>mal-formed URL >>"...viewGrid.do?testSuiteRunId=1?netui_page=TestCaseResults~2" which >>does not work. >> >> >> >>JSP snippet below >> >> >> >>>name="TestCaseResults" disableDefaultPager="false"> >> >> >pageAction="viewGrid?testSuiteRunId=1" /> >> >> >> >> >> >>I can however type this correctly formed URL into internet explorer > > and > >>it works > > ".../viewGrid.do?netui_page=TestCaseResults~2&testSuiteRunId=1" > >> >> >>How do you do this using the netui grid tags? >> >> >> >>Thanks, >> >>Adrian >> >> > > > >