Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 9583 invoked from network); 18 Apr 2008 19:44:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 19:44:50 -0000 Received: (qmail 74763 invoked by uid 500); 18 Apr 2008 19:44:51 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 74181 invoked by uid 500); 18 Apr 2008 19:44:49 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 74170 invoked by uid 99); 18 Apr 2008 19:44:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 12:44:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of strickla@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 19:44:06 +0000 Received: by wf-out-1314.google.com with SMTP id 28so562349wff.20 for ; Fri, 18 Apr 2008 12:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GdBR8RJJSVOYams2Tv/Qva2umJ5XoX+ec8Q2ix0WRqc=; b=lMm6foCvfWOBILkTfMzjwbuMEshZzR8WQmyROYntAgQc8DU6It8DH+Wa/wTL1IQCYMfL2lcYj1rbtvurkD4atUFBGWbUOhaEbgGjRYLpJk6s9wtrBabz+oi3iqNJwiMpVEdEddB9wv6FRs0U1qOy884TH8Er5gMZb8HTDw/UgXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Z4UxPIByeShUh5MphcnZVJv5IiMW07WZz6XvCscachG4SVXjklUcg5N6I5JTaUr0TeUjKsLfyP1B0v8cvywfOUX/LZ9x/aMzoGSvC++soKS0XjWVutYBKmjYmwbfsg5pPO/UC23O7+uwAdQbuNp75pjCDnUIliUyJHJc/yr6N98= Received: by 10.142.53.5 with SMTP id b5mr751574wfa.324.1208547859359; Fri, 18 Apr 2008 12:44:19 -0700 (PDT) Received: by 10.143.123.1 with HTTP; Fri, 18 Apr 2008 12:44:19 -0700 (PDT) Message-ID: <94cd6be60804181244y6504f285u105b23d5042ecce6@mail.gmail.com> Date: Fri, 18 Apr 2008 15:44:19 -0400 From: "Andrew Strickland" To: "Jetspeed Users List" Subject: Re: Portlets with Forms and Communication to with a database In-Reply-To: <4808A3C9.E2C5.0058.0@utah.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4808A3C9.E2C5.0058.0@utah.gov> X-Virus-Checked: Checked by ClamAV on apache.org Don't have time to post examples but... Using a form on the edit page shouldn't be any different than using a form on the view or help page. I've done it and there's really nothing exceptional. Just handle the form submission in your portlet's processAction method. You can put a hidden input into your form with a name like "action" and give it a value of "edit" or "save" so that you can differentiate between which portlet page the submission is coming from. There might be better ways to do that but this way is easy and simple. The way I use the edit page is as the page that can modify the portlet preferences. So any form submission from the edit page is a change to a preference which the portlet then makes use of Jetspeed's preference database to store. On Fri, Apr 18, 2008 at 3:36 PM, Dan Olsen wrote: > Does anyone know of any example portlets that use forms in the Edit window state and the new information from the form is then stored in a database? I need to do this for my project and I'm looking for some best practices on how to do this. > > - Dan > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-user-help@portals.apache.org