Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7991049D4 for ; Fri, 17 Jun 2011 19:47:04 +0000 (UTC) Received: (qmail 83487 invoked by uid 500); 17 Jun 2011 19:47:02 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 83441 invoked by uid 500); 17 Jun 2011 19:47:02 -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 83433 invoked by uid 99); 17 Jun 2011 19:47:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 19:47:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davelnewton@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 19:46:55 +0000 Received: by iyi20 with SMTP id 20so1437040iyi.35 for ; Fri, 17 Jun 2011 12:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=mLHz7puW1ME0NhGVPv6uu8WyPpWP9hJ7yoVLZRSyZLM=; b=WnMoCTNH4XcUeTlg1wM6aa8bDzt7xV4SBrrl4v/+TEuO53HSqfQzgnZfGiaZSqO7+w B7NjGGIm/f8GZvDrOsHXztw97Jx9gJeSvraNthbMOVLRhALo6oKt8yaj54/pDxtdWkg/ X3pdeZ3tHi1fuAWBkOHEb0WnRomQDHDDxeD4E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KFtEbcjExjp33dPJBl6xz/YVuz8aV2bPL2W3sPIk+jiGMDclOrctLVHMNXhS+3arAL EPR4XHLZki8U7mf+IWCcJsI6Vl+sTg3MqhfFCUNu8WS+y56Jvz3VgNr39ftSnMw1NTB8 2iGmfu35ytYHwXHGXsQewiy6HPkPD7w02njxQ= MIME-Version: 1.0 Received: by 10.42.9.29 with SMTP id k29mr2020531ick.97.1308339994925; Fri, 17 Jun 2011 12:46:34 -0700 (PDT) Received: by 10.42.224.2 with HTTP; Fri, 17 Jun 2011 12:46:34 -0700 (PDT) In-Reply-To: <4DFBAC02.7050706@christopherschultz.net> References: <4DFBAC02.7050706@christopherschultz.net> Date: Fri, 17 Jun 2011 15:46:34 -0400 Message-ID: Subject: Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox From: Dave Newton To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 On Friday, June 17, 2011, Christopher Schultz wrote: > I can't believe I've been working with Struts for nearly 10 years and > I'm still using Struts 1. Fixed. > The problem is that if we check the box and submit to A2 (then show P2), > then go back (either browser-BACK or using our "previous" button in the > flow), then re-submit to A2, the form property in the bean stays set to > "true" (or whatever value we'r [...] Not sure why it wouldn't, it's a session form, so alterations will persist over multiple pages, unless I'm misunderstanding what you've said. > I would have figured that DynaValidatorBean would be sensitive to the > current "page" of the flow and only reset properties with a page number > at or higher than the currently-being-submitted page I'm not aware of any page number/flow functionality in S1, but I stopped using it around 1.2.9--is flow functionality something from 1.3, or did I just miss it altogether? > What is the recommended technique when dealing with multi-page, > session-scoped dynamic forms? IIRC this was a PITA in S1, I always coded reset methods and had a mini-state-machine implementation. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org