From adffaces-user-return-2429-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Thu Mar 22 10:59:14 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 4653 invoked from network); 22 Mar 2007 10:59:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 10:59:14 -0000 Received: (qmail 86486 invoked by uid 500); 22 Mar 2007 10:59:21 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 86463 invoked by uid 500); 22 Mar 2007 10:59:20 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 86453 invoked by uid 99); 22 Mar 2007 10:59:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 03:59:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.68.183] (HELO web34904.mail.mud.yahoo.com) (209.191.68.183) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Mar 2007 03:59:12 -0700 Received: (qmail 63928 invoked by uid 60001); 22 Mar 2007 10:58:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=shKkvqQaujmdlpdvJ48iBh2I6a9AyAswWSgqoMg5Q8yTlir+1C9LaiJBJ//DZqZvjb/qW9tl8mTjEU5me/9T2AgFcnySNJ5/WZZ8UjKPfOIqsp55AYtvijbyzrG79cD/PNDc4WbnSgaq9JE6ir4Uu+6RYwF9PnEIyfgoERNF08Y=; X-YMail-OSG: 8oYqvMwVM1mHdHQCDiYNoEAsf_BAazfZHJQeox6T3bMH.jc0LrWuc1GyvMsp9wEY3BL5f9WLJe8nkn4qMiNOHq53Wh7KN.my7GkQDg7htbmvSyA.kYnRqiZO.atCdez5 Received: from [80.129.64.138] by web34904.mail.mud.yahoo.com via HTTP; Thu, 22 Mar 2007 03:58:50 PDT X-Mailer: YahooMailRC/476 YahooMailWebService/0.7.41.8 Date: Thu, 22 Mar 2007 03:58:50 -0700 (PDT) From: Jochen Traunecker Subject: AW: [TRINIDAD] How to reset a form To: adffaces-user@incubator.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <364717.95244.qm@web34904.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Thx - UIXeditablevalue.resetValue() does the job!=0A=0AJust for curiosity:I= can't rely on changing the backing-bean BEFORE RENDER_RESPONSE to have all= UIComponents (Tables, Trees, Checkboxes, ...) display the latest state of = the backing bean when invoking some action with immediate=3Dtrue; I also ha= ve to invoke some reset methods on all components?=0A=0A=0A=0A----- Urspr= =FCngliche Mail ----=0AVon: Matthias Wessendorf =0AAn: a= dffaces-user@incubator.apache.org=0AGesendet: Donnerstag, den 22. M=E4rz 20= 07, 11:10:36 Uhr=0ABetreff: Re: [TRINIDAD] How to reset a form=0A=0Ahave yo= u also tried to call resetValue() on UIXeditablevalue?=0A=0A-M=0A=0AOn 3/22= /07, Jochen Traunecker wrote:=0A> Hello everybody,=0A= >=0A> using Trinidad and Shale I ran into this silly simple problem: I want= a form containing a bunch of text-input fields, each of them with some val= idator associated to get reset by clicking a commandButton. To avoid valida= ting the input fields I use immediate=3D"true" for the reset button. My mod= el gets reset (see pseudocode) but the textfields in the browser don't disp= ly the model-values - they keep their values. I'm wondering, how to reset s= ome UIComponents (without any validation). I thougth, that all updates to t= he datamodel/backingbean before RENDER_RESPONSE will have an impact on the = rendered output, regardless of immediate=3D"true". Is this a partialPageRen= dering issue ?=0A>=0A>=0A> Thanks for your help!=0A> Jochen=0A>=0A> Pseudoc= ode=0A>=0A>=0A> =0A> =0A> =0A> ...=0A> = =0A> ...=0A> =0A> = =0A> =0A> = =0A> = =0A> =0A> =0A> =0A> = =0A> =0A> =0A> =0A>=0A>=0A>=0A> backingbean.class=0A>=0A> String name=3D"Foo";=0A>=0A> = public String save(){=0A> //getName is set to validated name provided b= y the user=0A> someDao.persist(getName());=0A> }=0A>=0A> public String = reset(){=0A> //do nothing, as prerender will reset the model=0A> }=0A> = ...=0A> public void prerender(){=0A> name=3DsomeDao.retrieve(); //allway= s reset datamodel to latest persistent state=0A> }=0A>=0A> public String ge= tName(){=0A> return name;=0A> }=0A>=0A> public void setName(String name= ){=0A> this.name=3D name;=0A> }=0A>=0A>=0A>=0A>=0A>=0A> _______________= ____________________________________________=0A> Telefonate ohne weitere Ko= sten vom PC zum PC: http://messenger.yahoo.de=0A>=0A=0A=0A-- =0AMatthias We= ssendorf=0Ahttp://tinyurl.com/fmywh=0A=0Afurther stuff:=0Ablog: http://jrol= ler.com/page/mwessendorf=0Amail: mwessendorf-at-gmail-dot-com=0A=0A=0A=0A= =0A=0A=09=09=0A___________________________________________________________ = =0ATelefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de