Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 20502 invoked from network); 12 Mar 2009 03:43:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2009 03:43:10 -0000 Received: (qmail 51185 invoked by uid 500); 12 Mar 2009 03:43:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 51151 invoked by uid 500); 12 Mar 2009 03:43:07 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 51142 invoked by uid 99); 12 Mar 2009 03:43:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 20:43:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [74.55.99.226] (HELO sundog.linksky80.com) (74.55.99.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2009 03:42:56 +0000 Received: from [118.208.6.121] (helo=aberglas-PC.berglas.org) by sundog.linksky80.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LhboQ-0003F9-LF for users@myfaces.apache.org; Wed, 11 Mar 2009 22:42:27 -0500 Message-Id: <7.0.1.0.2.20090312132236.05020808@SpreadsheetDetective.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Thu, 12 Mar 2009 13:42:24 +1000 To: users@myfaces.apache.org From: anthony@berglas.org Subject: Very Basic List and Crud -- how to link JSF forms Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-LinkSky-MailScanner-Information: Please contact the ISP for more information X-LinkSky-MailScanner-ID: 1LhboQ-0003F9-LF X-LinkSky-MailScanner: Found to be clean X-LinkSky-MailScanner-SpamCheck: X-LinkSky-MailScanner-From: anthony@berglas.org X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sundog.linksky80.com X-AntiAbuse: Original Domain - myfaces.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - berglas.org X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Hello All, Probably the most basic web pattern is to list a series of objects (Employees, say) and then be able to click on one of them and edit it. Ie. Two forms, List and Update. The List form contains a list of Employees, and a link for each employee. When a user clicks on the link for employee Fred (say) the second Update form is called that just displays Fred's details and allows them to be edited. No AJAX, just very basic HTML patterns. The first problem is how to set up the link in the List form to pass "Fred" to the update form. This would be a get, not a post. So then how to retrieve the value within the Update form. Does one really need to poke at HtmlRequest? The second, more serious problem, is that the first time a form is displayed there is no way to run an action. So when the Master form is called from the List form it cannot display Fred's details. I'm hoping not to have to use dirty tricks to do such a basic thing. (One dirty trick would be to put most of the application into one huge form and somehow hide various bits at different stages.) None of the four JSF books that I have cover basic issues like this. And Facelets cannot address the problem that JSF's seemingly broken event model was designed around JSPs. Is JSF real, or does one need to go the whole ADF hog to do basic things? ASP.Net seems much, much easier to use. All help much appreciated. If someone has a canned example of basic List + Crud that would be most helpful. Anthony Dr Anthony Berglas, anthony@berglas.org Mobile: +61 4 4838 8874 Just because it is possible to push twigs along the ground with ones nose does not necessarily mean that is the best way to collect firewood.