Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 30643 invoked from network); 27 Jan 2011 13:39:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 13:39:51 -0000 Received: (qmail 75422 invoked by uid 500); 27 Jan 2011 13:39:49 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 75088 invoked by uid 500); 27 Jan 2011 13:39:46 -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 75073 invoked by uid 99); 27 Jan 2011 13:39:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 13:39:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [109.71.26.56] (HELO srv56.mx.shc.eu) (109.71.26.56) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 13:39:37 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv56.mx.shc.eu (Postfix) with ESMTP id 7F251339644 for ; Thu, 27 Jan 2011 14:38:45 +0100 (CET) X-Virus-Scanned: amavisd-new at mx.shc.eu Received: from srv56.mx.shc.eu ([127.0.0.1]) by localhost (srv56.mx.shc.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YIqgJUC6AtxH for ; Thu, 27 Jan 2011 14:38:37 +0100 (CET) Received: from mx12.shcnet.de (mx12.shcnet.de [192.168.24.214]) by srv56.mx.shc.eu (Postfix) with ESMTP id 3B1633398CF for ; Thu, 27 Jan 2011 14:38:37 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by mx12.shcnet.de (Postfix) with ESMTP id EC80EA8004 for ; Thu, 27 Jan 2011 14:40:22 +0100 (CET) X-Virus-Scanned: amavisd-new at shcnet.de Received: from mx12.shcnet.de ([127.0.0.1]) by localhost (mx12.shcnet.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hCPfauNG7Qzk for ; Thu, 27 Jan 2011 14:40:15 +0100 (CET) Received: from mail.infomotion.de (unknown [192.168.222.2]) by mx12.shcnet.de (Postfix) with ESMTP id 0CF3DA8005 for ; Thu, 27 Jan 2011 14:40:14 +0100 (CET) Received: from INFOMOTION.DE ([192.168.222.3]) by mail.infomotion.de with Microsoft SMTPSVC(6.0.3790.4675); Thu, 27 Jan 2011 14:38:59 +0100 Received: from mail.infomotion.de ([192.168.222.2] helo=mail.infomotion.de) with IPv4:10026 by INFOMOTION.DE; 27 Jan 2011 14:38:59 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: ModelDriven with List Date: Thu, 27 Jan 2011 14:37:45 +0100 Message-ID: <302C50230E32AF488BFAFA755ECDAB8E0176BEC4@srv-im-01.intern.infomotion.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ModelDriven with List Thread-Index: Acu+J2FIt2t/x3aLRjSqShd9d9uLGQ== From: =?iso-8859-1?Q?Jan_Fr=F6hlich?= To: X-Assp-Passing: relayPort/acceptAllMail X-Assp-ID: INFOMOTION.DE (12961-01932) X-Assp-Version: 1.8.5.2(1.0.03) X-OriginalArrivalTime: 27 Jan 2011 13:38:59.0299 (UTC) FILETIME=[8D403B30:01CBBE27] X-Virus-Checked: Checked by ClamAV on apache.org Hi.... After we found a lean solution with ModelDriven in our application to = build CRUD functions with simple Objects, I have now a problem with = extending it, to be usable with lists. What I want to do is, make the getModel() method in my ModelDriven = Action having a return type like List or maybe = Map just to be able to have a form, where I = iterate the list or map, have a input field for every line and just one = "Save" button for the entire form, so every change is made to the object = inside the list . No idea if it helps, but this might show, what I want to do... ACTION: public class Document extends ActionSupport implements = ModelDriven> { private List documents; public void save() { //doSomething } public Document getModel() { documents =3D DocumentsDAO.listDocuments(); return documents; } public List getDocuments() { return documents; } public void setDocuments(List documents) { this.documents =3D documents; } } JSP: <%@ page language=3D"java" contentType=3D"text/html; charset=3DUTF-8" = pageEncoding=3D"UTF-8" %> <%@ taglib prefix=3D"s" uri=3D"/struts-tags"%> <%@ taglib prefix=3D"sj" uri=3D"/struts-jquery-tags"%> If anyone can point me out, how to do that, or provide a link or some = buzzwords where I can continue my search I would be thankful. Regards Jan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org