From tapestry-user-returnperezangela@example.com Mon Feb 02 16:43:47 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 64818 invoked from network); 2 Feb 2004 16:43:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 16:43:47 -0000 Received: (qmail 68884 invoked by uid 500); 2 Feb 2004 16:43:34 -0000 Delivered-To: perezangela@example.com Received: (qmail 68859 invoked by uid 500); 2 Feb 2004 16:43:33 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 68817 invoked from network); 2 Feb 2004 16:43:33 -0000 Received: from unknown (HELO epnsa000.princeton.epam.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 16:43:33 -0000 Received: from EPMSA009.minsk.epam.com ([83.161.120.155]) by epnsa000.princeton.epam.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 2 Feb 2004 11:43:35 -0500 Received: from epmw229.minsk.epam.com ([83.161.120.155]) by EPMSA009.minsk.epam.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 2 Feb 2004 18:43:33 +0200 Date: Mon, 2 Feb 2004 18:43:32 +0200 From: Anatol Pomozov <perezangela@example.com> Reply-To: Anatol Pomozov <perezangela@example.com> Organization: EPAM Systems X-Priority: 3 (Normal) Message-ID: <perezangela@example.com> To: perezangela@example.com Subject: Re: Fw: DatePicker In-Reply-To: <perezangela@example.com> References: <perezangela@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 02 Feb 2004 16:43:33.0160 (UTC) FILETIME=[B2011280:01C3E9AB] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Programozás, It is very simple to create patch file. First of all you need CVS command line client. For Windoze best port of this great tool AFAIK CvsNT http://www.cvsnt.org/wiki/ Install it and then simply run in command line cvs -q diff -u -N DatePicker.js >> patch.txt It creates patch for DatePicker.js I have created one and if you don't mind I will add it to bugzilla. To developers: Maybe it is worth to add sections in FAQ like "how to checkout sources from CVS repository", "how to compile it", "how to create patch file". And there is ant task for creating patch file. <target name="patch" description="Create a patch"> <cvs command="-q diff -u -N" output="patch.txt"/> </target> Monday, February 2, 2004, 4:22:37 PM, you wrote: P> Hi, P> I don't know how to do the patch so I simply send this to the devlist. P> Thanks, P> Norbi >> >----- Original Message ----- >> >From: <perezangela@example.com> >> >To: "Programozas" <perezangela@example.com> >> >Cc: <perezangela@example.com> >> >Sent: Thursday, January 29, 2004 5:29 PM >> >Subject: RE: DatePicker >> > >> > >> > > Hi, >> > > >> > > I, too, just ran into the positioning issue in Mozilla and discovered P> its >> >a bug in the DatePicker javascript P> (org.apache.tapestry.form.DatePicker.js). >> >I solved it by copying out DatePicker.* from the source into my own P> project >> >and fixing the javascript. >> > > >> > > In DatePicker.js in the method >> > > Calendar.prototype.show(), lines 550 & 551: >> > > the script sets the position of the component by setting >> > > <snippet> >> > > this._calDiv.style.top = p.y + element.offsetHeight + 1; >> > > this._calDiv.style.left = p.x; >> > > </snippet> >> > > >> > > 2 problems with the above lines: First, Mozilla expects them to be P> String >> >types whereas the above are integer types. Second, these CSS properties P> need >> >units associated with them such as "px", "pt", "in", "mm", etc. which the >> >above lines do not include. >> > > >> > > TO FIX IT: Add units to the strings: >> > > <snippet> >> > > this._calDiv.style.top = (p.y + element.offsetHeight + 1) + "px"; >> > > this._calDiv.style.left = p.x + "px"; >> > > </snippet> >> > > >> > > The above fix worked for me and it continues to work in IE as well. >> > > >> > > Adam. P> --------------------------------------------------------------------- P> To unsubscribe, e-mail: perezangela@example.com P> For additional commands, e-mail: P> perezangela@example.com -- Best regards, Anatol mailto:perezangela@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Mon Feb 02 17:31:14 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 3315 invoked from network); 2 Feb 2004 17:31:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 17:31:14 -0000 Received: (qmail 12752 invoked by uid 500); 2 Feb 2004 17:29:10 -0000 Delivered-To: perezangela@example.com Received: (qmail 12645 invoked by uid 500); 2 Feb 2004 17:29:09 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 12522 invoked from network); 2 Feb 2004 17:29:07 -0000 Received: from unknown (HELO mm.stthomas.edu) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 17:29:07 -0000 Received: from ust-gateway4.stthomas.edu (Not Verified[83.161.120.155]) by mm.stthomas.edu with NetIQ MailMarshal (v83.161.120.155) id <B000aad0c9>; Mon, 02 Feb 2004 11:23:44 -0600 Received: by exchange.stthomas.edu with Internet Mail Service (5.5.2653.19) id <D5ZPCZ6R>; Mon, 2 Feb 2004 11:21:43 -0600 Message-ID: <perezangela@example.com> From: "Auradkar, Rajendra V." <perezangela@example.com> To: Tapestry users <perezangela@example.com> Subject: RE: reload a page Date: Mon, 2 Feb 2004 11:21:44 -0600 X-MS-TNEF-Correlator: <perezangela@example.com> MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C3E9B1.47274E10" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_000_01C3E9B1.47274E10 Content-Type: text/plain; charset="iso-8859-1" Harish, Here is the bare HTML that I have enclosed. This is without the Tapestry instrumentation. I REALLY REALLY appreciate your help (feel guilty about not paying for this!!) Agencies.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META content="HTML Tidy for Windows (vers 1st January 2004), see www.w3.org" name="generator"> <META http-equiv="content-type" content="text/html; charset=us-ascii"> <TITLE>CCP Agency Maintenance</TITLE> <STYLE type="text/css"> button {width: 200;} :link { color: #000099 } :visited { color: #990099 } :active { color: #000099 } body.c18 {color: rgb(0, 0, 0); background-color: rgb(192, 192, 192); font-family: helvetica,arial,sans-serif; font-size: 10pt;} p.c17 {text-align: right} table.c16 {color: rgb(0, 0, 0); font-family: helvetica,arial,sans-serif; font-size: 10pt; text-align: left; margin-left: auto; margin-right: auto; width: 100%; height: 100%;} textarea.c15 {width: 100%; height: 100%;} tr.c14 {font-weight: bold;} td.c13 {color: rgb(0, 0, 192); vertical-align: middle; white-space: nowrap;} td.c12 {vertical-align: top; white-space: nowrap;} td.c11 {width: 16%; vertical-align: middle; white-space: nowrap;} span.c10 {font-weight: bold;} span.c9 {font-weight: normal;} td.c8 {width: 16%; vertical-align: middle; font-weight: bold; white-space: nowrap;} td.c7 {width: 16%; color: rgb(0, 0, 192); vertical-align: middle; font-weight: bold; white-space: nowrap;} td.c6 {vertical-align: top;} tr.c5 {height: 50%;} iframe.c4 {margin-left: auto; margin-right: auto; width: 100%; height: 100%;} td.c3 {vertical-align: middle; white-space: nowrap;} td.c2 {width: 16%; vertical-align: middle; color: rgb(0, 0, 192); font-weight: bold; white-space: nowrap;} p.c1 {font-weight: bold; color: rgb(0, 0, 192);} </STYLE> <STYLE type="text/css"> td.c1 {vertical-align: top; width: 10;} </STYLE> <STYLE type="text/css"> td.c4 {text-align: right;} td.c3 {height: 20px; vertical-align: middle;} td.c2 {vertical-align: top;} td.c1 {width: 20px;} </STYLE> </HEAD> <BODY class="c18"> <TABLE class="c16" border="0" cellspacing="0" cellpadding="0"> <TBODY> <TR> <TD class="c2" colspan="6">CCP Agency Maintenance</TD> </TR> <TR> <TD colspan="6" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> </TR> <TR> <TD colspan="6"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c2" colspan="4">Search Results</TD> <TD class="c1 c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR class="c5"> <TD class="c1"><BR></TD> <TD colspan="4"><IFRAME class="c4"></IFRAME><BR></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c2"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD colspan="2" class="c2">Agency Phone</TD> <TD colspan="2" class="c7">Name and Address</TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="2" height="20"><IMG width="95%" height="2" src="bluepixel.gif"></TD> <TD class="c3" colspan="2" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c8">Primary Phone Number</TD> <TD class="c3"><INPUT name="PARENT_PHN"></TD> <TD class="c8"><SPAN class="c9">Agency Name</SPAN></TD> <TD class="c3"><INPUT name="ORG_NM"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11"><SPAN class="c10">Alias Phone Number</SPAN></TD> <TD class="c3"><INPUT name="PHN"></TD> <TD class="c11">Address</TD> <TD class="c3"><INPUT name="STR_ADRS"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11"><SPAN class="c10">FAX</SPAN></TD> <TD class="c3"><INPUT name="FAX"></TD> <TD class="c11">City</TD> <TD class="c3"><INPUT name="CITY"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Contact Name</TD> <TD class="c3"><INPUT name="CNTCT_NM"></TD> <TD class="c11">State</TD> <TD class="c3"><INPUT name="ST"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Letter Date</TD> <TD class="c3"><INPUT name="LETR_DT"></TD> <TD class="c11">Zip</TD> <TD class="c3"><INPUT name="ZIP"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">501c3</TD> <TD class="c3"><INPUT name="CCP_501C3_RECV_YN"></TD> <TD class="c11">Alternate Address</TD> <TD class="c3"><INPUT name="SECND_FL_ADRS"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">RPPS Originator</TD> <TD class="c3"><INPUT name="RPPS_ORIG"></TD> <TD class="c11">Email</TD> <TD class="c3"><INPUT name="EMAIL"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Tax ID</TD> <TD class="c3"><INPUT name="TIN"></TD> <TD class="c3" colspan="2"><BR></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c1"><BR></TD> </TR> <TR class="c14"> <TD class="c1"><BR></TD> <TD colspan="4" class="c13" width="16%">Notes</TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR class="c5"> <TD class="c1"><BR></TD> <TD colspan="4"> <TEXTAREA class="c15"> </TEXTAREA></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c3"><IMG width="100%" height="2" src="bluepixel.gif"></TD> </TR> <TR> <TD colspan="6" class="c17 c4"><BUTTON>Search</BUTTON><BUTTON>Edit</BUTTON><BUTTON>Close</BUTTON></TD> </TR> </TBODY> </TABLE> </BODY> </HTML> Thanks, Raj Auradkar _____ From: Harish Krishnaswamy [mailto:perezangela@example.com] Sent: Sat 1/31/2004 3:20 PM To: Tapestry users Subject: Re: reload a page Sorry, I don't know the equivalent in 2.2 but why would you use 2.2? There's a ton of enhancements in 3.0. -Harish perezangela@example.com wrote: >Got the error when i set the JVM parameter to >org.apache.tapestry.disable-caching=true in Tapestry 2.2 > > Engine does not implement a > service name > reset/TimesheetEntryShiftHDUser. > > Arun > > > > > > > > Harish > Krishnaswamy To: tapestry users <perezangela@example.com> > <hkrishnaswamy@co cc: > mcast.net> Subject: Re: reload a page > > 01/31/2004 12:56 > PM > Please respond to > "Tapestry users" > > > > > > > > > > >perezangela@example.com wrote: > > > >>1. Is there any other way other than setting property in the JVM? >> >> >> >> >Not that I know of. This restriction is primarily for security purposes. > > > >>2. Will page refresh will also bring the HTML template changes . >> >> >> >> >I am not sure what you mean by "page refresh". If you mean "reset", then >yes it will reload all relevant pieces for the page. > > > >>Thanks, >>Arun >> >> >> >> >> > > > >> Harish >> >> > > > >> Krishnaswamy To: tapestry users >> >> ><perezangela@example.com> > > >> <hkrishnaswamy@co cc: >> >> > > > >> mcast.net> Subject: Re: reload a page >> >> > > > > > > >> 01/31/2004 12:47 >> >> > > > >> PM >> >> > > > >> Please respond to >> >> > > > >> "Tapestry users" >> >> > > > > > > > > > > > > > > > >> >> >>If you want to discard the cache on demand you can set the JVM system >>property org.apache.tapestry.enable-reset-service=true and then you can >>invoke the reset service to clear the cache for a particular page thus: >> >>http://localhost:8080/context/app?service=reset/PageName <http://localhost:8080/context/app?service=reset/PageName> >> >>This will reload and render the requested page. >> >>If you want the cache to be completely disabled for development >>purposes, set the JVM system property >>org.apache.tapestry.disable-caching=true. This will apparently disable >>caching completely which will have a noticable performance impact. >> >>-Harish >> >> >>perezangela@example.com wrote: >> >> >> >> >> >>>Hi, >>> Would like to know how to reload a particular page which is cached by >>>Tapestry without server restart. >>> >>>Thanks, >>>Arun >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: perezangela@example.com >>>For additional commands, e-mail: perezangela@example.com >>> >>> >>> >>> >>> >>> >>> >>> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: perezangela@example.com >>For additional commands, e-mail: perezangela@example.com >> >> >> >> >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: perezangela@example.com >>For additional commands, e-mail: perezangela@example.com >> >> >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com ------_=_NextPart_000_01C3E9B1.47274E10 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com ------_=_NextPart_000_01C3E9B1.47274E10-- From tapestry-user-returnperezangela@example.com Mon Feb 02 17:56:11 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 22820 invoked from network); 2 Feb 2004 17:56:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 17:56:11 -0000 Received: (qmail 58864 invoked by uid 500); 2 Feb 2004 17:55:55 -0000 Delivered-To: perezangela@example.com Received: (qmail 58846 invoked by uid 500); 2 Feb 2004 17:55:55 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 58812 invoked from network); 2 Feb 2004 17:55:55 -0000 Received: from unknown (HELO mail.identitytheft911.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 17:55:55 -0000 Received: from mail.identitytheft911.com (localhost.localdomain [83.161.120.155]) by localhost (Postfix) with ESMTP id F0E7DAD40B7 for <perezangela@example.com>; Mon, 2 Feb 2004 09:57:27 -0800 (PST) Received: from columbia.edu (unknown [83.161.120.155]) by mail.identitytheft911.com (Postfix) with ESMTP id CDA43AD40B6 for <perezangela@example.com>; Mon, 2 Feb 2004 09:57:27 -0800 (PST) Message-ID: <perezangela@example.com> Date: Mon, 02 Feb 2004 09:56:00 -0800 From: Paul Ferraro <perezangela@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users <perezangela@example.com> Subject: Re: Fw: DatePicker References: <perezangela@example.com> <perezangela@example.com> In-Reply-To: <perezangela@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If you are using Eclipse, it's even easier: 1.) Checkout the latest Tapestry source tree. 2.) Make your changes. 3.) From Package Explorer, right click on the class, choose Team >> Create Patch Anatol Pomozov wrote: >Hello Programozás, > >It is very simple to create patch file. First of all you need CVS command line client. >For Windoze best port of this great tool AFAIK CvsNT http://www.cvsnt.org/wiki/ >Install it and then simply run in command line >cvs -q diff -u -N DatePicker.js >> patch.txt >It creates patch for DatePicker.js > >I have created one and if you don't mind I will add it to bugzilla. > >To developers: Maybe it is worth to add sections in FAQ like "how to >checkout sources from CVS repository", "how to compile it", "how to create patch >file". > >And there is ant task for creating patch file. > <target name="patch" description="Create a patch"> > <cvs command="-q diff -u -N" output="patch.txt"/> > </target> > >Monday, February 2, 2004, 4:22:37 PM, you wrote: > >P> Hi, > >P> I don't know how to do the patch so I simply send this to the devlist. > >P> Thanks, >P> Norbi > > > >>>>----- Original Message ----- >>>>From: <perezangela@example.com> >>>>To: "Programozas" <perezangela@example.com> >>>>Cc: <perezangela@example.com> >>>>Sent: Thursday, January 29, 2004 5:29 PM >>>>Subject: RE: DatePicker >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>I, too, just ran into the positioning issue in Mozilla and discovered >>>>> >>>>> >P> its > > >>>>a bug in the DatePicker javascript >>>> >>>> >P> (org.apache.tapestry.form.DatePicker.js). > > >>>>I solved it by copying out DatePicker.* from the source into my own >>>> >>>> >P> project > > >>>>and fixing the javascript. >>>> >>>> >>>>>In DatePicker.js in the method >>>>>Calendar.prototype.show(), lines 550 & 551: >>>>>the script sets the position of the component by setting >>>>><snippet> >>>>>this._calDiv.style.top = p.y + element.offsetHeight + 1; >>>>>this._calDiv.style.left = p.x; >>>>></snippet> >>>>> >>>>>2 problems with the above lines: First, Mozilla expects them to be >>>>> >>>>> >P> String > > >>>>types whereas the above are integer types. Second, these CSS properties >>>> >>>> >P> need > > >>>>units associated with them such as "px", "pt", "in", "mm", etc. which the >>>>above lines do not include. >>>> >>>> >>>>>TO FIX IT: Add units to the strings: >>>>><snippet> >>>>>this._calDiv.style.top = (p.y + element.offsetHeight + 1) + "px"; >>>>>this._calDiv.style.left = p.x + "px"; >>>>></snippet> >>>>> >>>>>The above fix worked for me and it continues to work in IE as well. >>>>> >>>>>Adam. >>>>> >>>>> > >P> --------------------------------------------------------------------- >P> To unsubscribe, e-mail: perezangela@example.com >P> For additional commands, e-mail: >P> perezangela@example.com > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Mon Feb 02 18:49:32 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 62581 invoked from network); 2 Feb 2004 18:49:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 18:49:32 -0000 Received: (qmail 20445 invoked by uid 500); 2 Feb 2004 18:49:15 -0000 Delivered-To: perezangela@example.com Received: (qmail 20351 invoked by uid 500); 2 Feb 2004 18:49:14 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 20218 invoked from network); 2 Feb 2004 18:49:13 -0000 Received: from unknown (HELO mm.stthomas.edu) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 18:49:13 -0000 Received: from ust-gateway4.stthomas.edu (Not Verified[83.161.120.155]) by mm.stthomas.edu with NetIQ MailMarshal (v83.161.120.155) id <B000ab04e2>; Mon, 02 Feb 2004 12:49:16 -0600 Received: by exchange.stthomas.edu with Internet Mail Service (5.5.2653.19) id <D5ZPDB59>; Mon, 2 Feb 2004 12:47:15 -0600 Message-ID: <perezangela@example.com> From: "Auradkar, Rajendra V." <perezangela@example.com> To: Tapestry users <perezangela@example.com> Subject: RE: Tapestry and DTHML Date: Mon, 2 Feb 2004 12:48:43 -0600 X-MS-TNEF-Correlator: <perezangela@example.com> MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C3E9BD.376D2828" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_000_01C3E9BD.376D2828 Content-Type: text/plain; charset="iso-8859-1" Harish, Here is the bare HTML that I have enclosed. This is without the Tapestry instrumentation. I REALLY REALLY appreciate your help (feel guilty about not paying for this!!) Agencies.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META content="HTML Tidy for Windows (vers 1st January 2004), see www.w3.org" name="generator"> <META http-equiv="content-type" content="text/html; charset=us-ascii"> <TITLE>CCP Agency Maintenance</TITLE> <STYLE type="text/css"> button {width: 200;} :link { color: #000099 } :visited { color: #990099 } :active { color: #000099 } body.c18 {color: rgb(0, 0, 0); background-color: rgb(192, 192, 192); font-family: helvetica,arial,sans-serif; font-size: 10pt;} p.c17 {text-align: right} table.c16 {color: rgb(0, 0, 0); font-family: helvetica,arial,sans-serif; font-size: 10pt; text-align: left; margin-left: auto; margin-right: auto; width: 100%; height: 100%;} textarea.c15 {width: 100%; height: 100%;} tr.c14 {font-weight: bold;} td.c13 {color: rgb(0, 0, 192); vertical-align: middle; white-space: nowrap;} td.c12 {vertical-align: top; white-space: nowrap;} td.c11 {width: 16%; vertical-align: middle; white-space: nowrap;} span.c10 {font-weight: bold;} span.c9 {font-weight: normal;} td.c8 {width: 16%; vertical-align: middle; font-weight: bold; white-space: nowrap;} td.c7 {width: 16%; color: rgb(0, 0, 192); vertical-align: middle; font-weight: bold; white-space: nowrap;} td.c6 {vertical-align: top;} tr.c5 {height: 50%;} iframe.c4 {margin-left: auto; margin-right: auto; width: 100%; height: 100%;} td.c3 {vertical-align: middle; white-space: nowrap;} td.c2 {width: 16%; vertical-align: middle; color: rgb(0, 0, 192); font-weight: bold; white-space: nowrap;} p.c1 {font-weight: bold; color: rgb(0, 0, 192);} </STYLE> <STYLE type="text/css"> td.c1 {vertical-align: top; width: 10;} </STYLE> <STYLE type="text/css"> td.c4 {text-align: right;} td.c3 {height: 20px; vertical-align: middle;} td.c2 {vertical-align: top;} td.c1 {width: 20px;} </STYLE> </HEAD> <BODY class="c18"> <TABLE class="c16" border="0" cellspacing="0" cellpadding="0"> <TBODY> <TR> <TD class="c2" colspan="6">CCP Agency Maintenance</TD> </TR> <TR> <TD colspan="6" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> </TR> <TR> <TD colspan="6"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c2" colspan="4">Search Results</TD> <TD class="c1 c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR class="c5"> <TD class="c1"><BR></TD> <TD colspan="4"><IFRAME class="c4"></IFRAME><BR></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c2"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD colspan="2" class="c2">Agency Phone</TD> <TD colspan="2" class="c7">Name and Address</TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="2" height="20"><IMG width="95%" height="2" src="bluepixel.gif"></TD> <TD class="c3" colspan="2" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c8">Primary Phone Number</TD> <TD class="c3"><INPUT name="PARENT_PHN"></TD> <TD class="c8"><SPAN class="c9">Agency Name</SPAN></TD> <TD class="c3"><INPUT name="ORG_NM"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11"><SPAN class="c10">Alias Phone Number</SPAN></TD> <TD class="c3"><INPUT name="PHN"></TD> <TD class="c11">Address</TD> <TD class="c3"><INPUT name="STR_ADRS"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11"><SPAN class="c10">FAX</SPAN></TD> <TD class="c3"><INPUT name="FAX"></TD> <TD class="c11">City</TD> <TD class="c3"><INPUT name="CITY"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Contact Name</TD> <TD class="c3"><INPUT name="CNTCT_NM"></TD> <TD class="c11">State</TD> <TD class="c3"><INPUT name="ST"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Letter Date</TD> <TD class="c3"><INPUT name="LETR_DT"></TD> <TD class="c11">Zip</TD> <TD class="c3"><INPUT name="ZIP"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">501c3</TD> <TD class="c3"><INPUT name="CCP_501C3_RECV_YN"></TD> <TD class="c11">Alternate Address</TD> <TD class="c3"><INPUT name="SECND_FL_ADRS"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">RPPS Originator</TD> <TD class="c3"><INPUT name="RPPS_ORIG"></TD> <TD class="c11">Email</TD> <TD class="c3"><INPUT name="EMAIL"></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c11">Tax ID</TD> <TD class="c3"><INPUT name="TIN"></TD> <TD class="c3" colspan="2"><BR></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c1"><BR></TD> </TR> <TR class="c14"> <TD class="c1"><BR></TD> <TD colspan="4" class="c13" width="16%">Notes</TD> <TD class="c1"><BR></TD> </TR> <TR> <TD class="c1"><BR></TD> <TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" src="bluepixel.gif"></TD> <TD class="c1"><BR></TD> </TR> <TR class="c5"> <TD class="c1"><BR></TD> <TD colspan="4"> <TEXTAREA class="c15"> </TEXTAREA></TD> <TD class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c1"><BR></TD> </TR> <TR> <TD colspan="6" class="c3"><IMG width="100%" height="2" src="bluepixel.gif"></TD> </TR> <TR> <TD colspan="6" class="c17 c4"><BUTTON>Search</BUTTON><BUTTON>Edit</BUTTON><BUTTON>Close</BUTTON></TD> </TR> </TBODY> </TABLE> </BODY> </HTML> Thanks, Raj Auradkar _____ From: Harish Krishnaswamy [mailto:perezangela@example.com] Sent: Sat 1/31/2004 1:25 PM To: Tapestry users Subject: Re: Tapestry and DTHML Sure send the code but I am not quite sure what you trying to do, yet. -Harish Auradkar, Rajendra V. wrote: >Harish, >Thanks for your response. My colleague is using a construcy called IFRAME >which apparnetly helps in creating better tables (??). Can I send you the >code piece instead? >Thanks, >Raj Auradkar > > > >------------------------------------------------------------------------ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com ------_=_NextPart_000_01C3E9BD.376D2828 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com ------_=_NextPart_000_01C3E9BD.376D2828-- From tapestry-user-returnperezangela@example.com Tue Feb 03 00:30:00 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 63368 invoked from network); 3 Feb 2004 00:30:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 00:30:00 -0000 Received: (qmail 71108 invoked by uid 500); 3 Feb 2004 00:29:41 -0000 Delivered-To: perezangela@example.com Received: (qmail 71091 invoked by uid 500); 3 Feb 2004 00:29:41 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 71059 invoked from network); 3 Feb 2004 00:29:40 -0000 Received: from unknown (HELO WBLN0014.worldbank.org) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 00:29:40 -0000 Received: from WBLN0014.worldbank.org (unverified [83.161.120.155]) by WBLN0014.worldbank.org (Content Technologies SMTPRS 4.3.10) with ESMTP id <perezangela@example.com> for <perezangela@example.com>; Mon, 2 Feb 2004 19:29:39 -0500 Subject: calling javascript on onsubmit To: "Tapestry users" <perezangela@example.com> X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: <perezangela@example.com> From: perezangela@example.com Date: Mon, 2 Feb 2004 19:29:40 -0500 X-MIMETrack: Serialize by Router on WBLN0014/Facility/World Bank (Release 5.0.11 |July 24, 2002) at 02/02/2004 07:29:39 PM MIME-Version: 1.0 Content-type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N My HTML template has a javascript and I check the form values on "onsubmit" eventHandler. My validator in the same page removes the onsubmit which I have explicitly written. Hence my validation doesnt happen. How can I add my validation with the Tapestry validator code. Code Snippet <form jwcid="form" onsubmit="return showAlert()"> <INPUT type=Submit value="Submit" onClick="javascript:setApprovalClicked ()" jwcid="submitApproval" /> Thanks, Arun --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 01:08:26 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 86838 invoked from network); 3 Feb 2004 01:08:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 01:08:26 -0000 Received: (qmail 66898 invoked by uid 500); 3 Feb 2004 01:08:07 -0000 Delivered-To: perezangela@example.com Received: (qmail 66779 invoked by uid 500); 3 Feb 2004 01:08:06 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 66758 invoked from network); 3 Feb 2004 01:08:06 -0000 Received: from unknown (HELO c000.snv.cp.net) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 01:08:06 -0000 Received: (cpmta 17112 invoked from network); 2 Feb 2004 17:08:13 -0800 Received: from 83.161.120.155 (HELO ?83.161.120.155?) by smtp.hatcher.net (83.161.120.155) with SMTP; 2 Feb 2004 17:08:13 -0800 X-Sent: 3 Feb 2004 01:08:13 GMT Mime-Version: 1.0 (Apple Message framework v612) Content-Transfer-Encoding: 7bit Message-Id: <perezangela@example.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: Tapestry users <perezangela@example.com> From: Erik Hatcher <perezangela@example.com> Subject: Tapestry haiku Date: Mon, 2 Feb 2004 20:08:09 -0500 X-Mailer: Apple Mail (2.612) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N http://www.blogscene.org/erik/Computers/Speaking/haiku.html Maybe time to add a similar section to the Tapestry wiki? :)) --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 03:47:10 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 57454 invoked from network); 3 Feb 2004 03:47:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 03:47:10 -0000 Received: (qmail 84457 invoked by uid 500); 3 Feb 2004 03:46:46 -0000 Delivered-To: perezangela@example.com Received: (qmail 84443 invoked by uid 500); 3 Feb 2004 03:46:46 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 84402 invoked from network); 3 Feb 2004 03:46:45 -0000 Received: from unknown (HELO mail.iinet.net.au) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 03:46:45 -0000 Received: (qmail 7860 invoked from network); 3 Feb 2004 03:46:54 -0000 Received: from unknown (HELO mouse.iinet.net.au) (83.161.120.155) by mail.iinet.net.au with SMTP; 3 Feb 2004 03:46:53 -0000 Message-Id: <perezangela@example.com> X-Sender: perezangela@example.com X-Mailer: QUALCOMM Windows Eudora Version 83.161.120.155 Date: Tue, 03 Feb 2004 14:46:49 +1100 To: perezangela@example.com From: Glen Stampoultzis <perezangela@example.com> Subject: Conditional form elements. Does it work? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_66772875==.ALT" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=====================_66772875==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I've got a form with some conditional form controls. At the top of the form is a selection control that submits on change. When it submits it triggers a condition that adds more elements to the form. This gives the following error: --------------8<------------------- You have clicked on a stale link. Rewind of form ConfigureSeaview/form expected only 1 form elements, but an additional id was requested by component ConfigureSeaview/hostName. This is most likely the result of using your browser's back button, but can also be an application error. --------------8<------------------- I think I understand why this happens but what I really need is a way I can implement this behavior without triggering this error. Here's the form I'm using: --------------8<------------------- <form jwcid="form@Form" listener="ognl:listeners.submit" delegate="ognl:beans.delegate"> <p>&nbsp;</p> <table border="0"> <tr> <td>Please select the type of database you wish to run:</td> <td><select id="dbType" jwcid="dbType" name="select"/> </td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <p>&nbsp; </p> <div jwcid="mssqlserver"> <table border="0"> <tr> <td>Host Name: </td> <td><input type="text" jwcid="hostName"/></td> </tr> <tr> <td>Port: </td> <td><input type="text" jwcid="port"/></td> </tr> <tr> <td>Database: </td> <td><input type="text" jwcid="database"/></td> </tr> <tr> <td>Username: </td> <td><input type="text" jwcid="username"/></td> </tr> <tr> <td>Password:</td> <td><input type="password" jwcid="password"/></td> </tr> </table> </div> <p>&nbsp; </p> <p><input value="Submit" type="submit"></p> </form> --------------8<------------------- Glen Stampoultzis perezangela@example.com http://members.iinet.net.au/~gstamp/glen/ --=====================_66772875==.ALT-- From tapestry-user-returnperezangela@example.com Tue Feb 03 04:30:33 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 72857 invoked from network); 3 Feb 2004 04:30:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 04:30:33 -0000 Received: (qmail 81296 invoked by uid 500); 3 Feb 2004 04:30:09 -0000 Delivered-To: perezangela@example.com Received: (qmail 81279 invoked by uid 500); 3 Feb 2004 04:30:09 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 81252 invoked from network); 3 Feb 2004 04:30:09 -0000 Received: from unknown (HELO mail.agilixcorp.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 04:30:09 -0000 Received: from localhost (localhost [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id 0E39F56A90 for <perezangela@example.com>; Mon, 2 Feb 2004 23:30:19 -0500 (EST) Received: from mail.agilixcorp.com ([83.161.120.155]) by localhost (mail [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 08780-05 for <perezangela@example.com>; Mon, 2 Feb 2004 23:30:15 -0500 (EST) Received: from comcast.net (unknown [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id 23E8756A8E for <perezangela@example.com>; Mon, 2 Feb 2004 23:30:15 -0500 (EST) Message-ID: <perezangela@example.com> Date: Mon, 02 Feb 2004 23:30:10 -0500 From: Harish Krishnaswamy <perezangela@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users <perezangela@example.com> Subject: Re: Conditional form elements. Does it work? References: <perezangela@example.com> In-Reply-To: <perezangela@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N There is a FormConditional component in contrib that you might want to use. That should take care of this problem. -Harish Glen Stampoultzis wrote: > > I've got a form with some conditional form controls. At the top of > the form is a selection control that submits on change. When it > submits it triggers a condition that adds more elements to the form. > This gives the following error: > > --------------8<------------------- > You have clicked on a stale link. > > Rewind of form ConfigureSeaview/form expected only 1 form elements, > but an additional id was requested by component > ConfigureSeaview/hostName. > > This is most likely the result of using your browser's back button, > but can also be an application error. > --------------8<------------------- > > I think I understand why this happens but what I really need is a way > I can implement this behavior without triggering this error. > > Here's the form I'm using: > > --------------8<------------------- > <form jwcid="form@Form" listener="ognl:listeners.submit" > delegate="ognl:beans.delegate"> > <p>&nbsp;</p> > <table border="0"> > <tr> > <td>Please select the type of database you wish to run:</td> > <td><select id="dbType" jwcid="dbType" name="select"/> > </td> > </tr> > <tr> > <td>&nbsp;</td> > <td>&nbsp;</td> > </tr> > </table> > <p>&nbsp; </p> > <div jwcid="mssqlserver"> > <table border="0"> > <tr> > <td>Host Name: </td> > <td><input type="text" > jwcid="hostName"/></td> > </tr> > <tr> > <td>Port: </td> > <td><input type="text" > jwcid="port"/></td> > </tr> > <tr> > <td>Database: </td> > <td><input type="text" > jwcid="database"/></td> > </tr> > <tr> > <td>Username: </td> > <td><input type="text" > jwcid="username"/></td> > </tr> > <tr> > <td>Password:</td> > <td><input type="password" > jwcid="password"/></td> > </tr> > </table> > </div> > <p>&nbsp; </p> > <p><input value="Submit" type="submit"></p> > </form> > --------------8<------------------- > > > > > > > Glen Stampoultzis > perezangela@example.com > http://members.iinet.net.au/~gstamp/glen/ > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 04:32:47 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 73893 invoked from network); 3 Feb 2004 04:32:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 04:32:47 -0000 Received: (qmail 86262 invoked by uid 500); 3 Feb 2004 04:32:26 -0000 Delivered-To: perezangela@example.com Received: (qmail 85987 invoked by uid 500); 3 Feb 2004 04:32:24 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 85971 invoked from network); 3 Feb 2004 04:32:23 -0000 Received: from unknown (HELO mail.agilixcorp.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 04:32:23 -0000 Received: from localhost (localhost [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id B9A4A56A90 for <perezangela@example.com>; Mon, 2 Feb 2004 23:32:33 -0500 (EST) Received: from mail.agilixcorp.com ([83.161.120.155]) by localhost (mail [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 08809-01 for <perezangela@example.com>; Mon, 2 Feb 2004 23:32:31 -0500 (EST) Received: from comcast.net (unknown [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id 83A3456A8E for <perezangela@example.com>; Mon, 2 Feb 2004 23:32:31 -0500 (EST) Message-ID: <perezangela@example.com> Date: Mon, 02 Feb 2004 23:32:30 -0500 From: Harish Krishnaswamy <perezangela@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users <perezangela@example.com> Subject: Re: calling javascript on onsubmit References: <perezangela@example.com> In-Reply-To: <perezangela@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You have to write a script specification. Please see the Tapestry FAQ in the wiki for "Script How and Why". There are also examples in the vlib demo. -Harish perezangela@example.com wrote: >My HTML template has a javascript and I check the form values on "onsubmit" >eventHandler. > >My validator in the same page removes the onsubmit which I have explicitly >written. > >Hence my validation doesnt happen. > >How can I add my validation with the Tapestry validator code. > >Code Snippet > > <form jwcid="form" onsubmit="return showAlert()"> > <INPUT type=Submit value="Submit" onClick="javascript:setApprovalClicked >()" jwcid="submitApproval" /> > >Thanks, >Arun > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 04:33:45 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 74205 invoked from network); 3 Feb 2004 04:33:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 04:33:45 -0000 Received: (qmail 88332 invoked by uid 500); 3 Feb 2004 04:33:22 -0000 Delivered-To: perezangela@example.com Received: (qmail 88162 invoked by uid 500); 3 Feb 2004 04:33:21 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 88143 invoked from network); 3 Feb 2004 04:33:21 -0000 Received: from unknown (HELO mail.agilixcorp.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 04:33:21 -0000 Received: from localhost (localhost [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id 39A6556A90 for <perezangela@example.com>; Mon, 2 Feb 2004 23:33:31 -0500 (EST) Received: from mail.agilixcorp.com ([83.161.120.155]) by localhost (mail [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 08780-06 for <perezangela@example.com>; Mon, 2 Feb 2004 23:33:27 -0500 (EST) Received: from comcast.net (unknown [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id 8774E56A8E for <perezangela@example.com>; Mon, 2 Feb 2004 23:33:26 -0500 (EST) Message-ID: <perezangela@example.com> Date: Mon, 02 Feb 2004 23:33:25 -0500 From: Harish Krishnaswamy <perezangela@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users <perezangela@example.com> Subject: Re: Tapestry and DTHML References: <perezangela@example.com> In-Reply-To: <perezangela@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am still not sure what you are trying to do here. Please be more elaborate. -Harish Auradkar, Rajendra V. wrote: >Harish, >Here is the bare HTML that I have enclosed. This is without the Tapestry >instrumentation. I REALLY REALLY appreciate your help (feel guilty about >not paying for this!!) > >Agencies.html ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > ><HTML> > ><HEAD> > ><META content="HTML Tidy for Windows (vers 1st January 2004), see >www.w3.org" name="generator"> > ><META http-equiv="content-type" content="text/html; charset=us-ascii"> > ><TITLE>CCP Agency Maintenance</TITLE> > ><STYLE type="text/css"> > >button {width: 200;} > >:link { color: #000099 } > >:visited { color: #990099 } > >:active { color: #000099 } > >body.c18 {color: rgb(0, 0, 0); background-color: rgb(192, 192, 192); >font-family: helvetica,arial,sans-serif; font-size: 10pt;} > >p.c17 {text-align: right} > >table.c16 {color: rgb(0, 0, 0); font-family: helvetica,arial,sans-serif; >font-size: 10pt; text-align: left; margin-left: auto; margin-right: auto; >width: 100%; height: 100%;} > >textarea.c15 {width: 100%; height: 100%;} > >tr.c14 {font-weight: bold;} > >td.c13 {color: rgb(0, 0, 192); vertical-align: middle; white-space: nowrap;} > >td.c12 {vertical-align: top; white-space: nowrap;} > >td.c11 {width: 16%; vertical-align: middle; white-space: nowrap;} > >span.c10 {font-weight: bold;} > >span.c9 {font-weight: normal;} > >td.c8 {width: 16%; vertical-align: middle; font-weight: bold; white-space: >nowrap;} > >td.c7 {width: 16%; color: rgb(0, 0, 192); vertical-align: middle; >font-weight: bold; white-space: nowrap;} > >td.c6 {vertical-align: top;} > >tr.c5 {height: 50%;} > >iframe.c4 {margin-left: auto; margin-right: auto; width: 100%; height: >100%;} > >td.c3 {vertical-align: middle; white-space: nowrap;} > >td.c2 {width: 16%; vertical-align: middle; color: rgb(0, 0, 192); >font-weight: bold; white-space: nowrap;} > >p.c1 {font-weight: bold; color: rgb(0, 0, 192);} > ></STYLE> > ><STYLE type="text/css"> > >td.c1 {vertical-align: top; width: 10;} > ></STYLE> > ><STYLE type="text/css"> > >td.c4 {text-align: right;} > >td.c3 {height: 20px; vertical-align: middle;} > >td.c2 {vertical-align: top;} > >td.c1 {width: 20px;} > ></STYLE> > ></HEAD> > ><BODY class="c18"> > ><TABLE class="c16" border="0" cellspacing="0" cellpadding="0"> > ><TBODY> > ><TR> > ><TD class="c2" colspan="6">CCP Agency Maintenance</TD> > ></TR> > ><TR> > ><TD colspan="6" height="20"><IMG width="100%" height="2" >src="bluepixel.gif"></TD> > ></TR> > ><TR> > ><TD colspan="6"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c2" colspan="4">Search Results</TD> > ><TD class="c1 c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" >src="bluepixel.gif"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR class="c5"> > ><TD class="c1"><BR></TD> > ><TD colspan="4"><IFRAME class="c4"></IFRAME><BR></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD colspan="6" class="c2"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD colspan="2" class="c2">Agency Phone</TD> > ><TD colspan="2" class="c7">Name and Address</TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c3" colspan="2" height="20"><IMG width="95%" height="2" >src="bluepixel.gif"></TD> > ><TD class="c3" colspan="2" height="20"><IMG width="100%" height="2" >src="bluepixel.gif"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c8">Primary Phone Number</TD> > ><TD class="c3"><INPUT name="PARENT_PHN"></TD> > ><TD class="c8"><SPAN class="c9">Agency Name</SPAN></TD> > ><TD class="c3"><INPUT name="ORG_NM"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11"><SPAN class="c10">Alias Phone Number</SPAN></TD> > ><TD class="c3"><INPUT name="PHN"></TD> > ><TD class="c11">Address</TD> > ><TD class="c3"><INPUT name="STR_ADRS"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11"><SPAN class="c10">FAX</SPAN></TD> > ><TD class="c3"><INPUT name="FAX"></TD> > ><TD class="c11">City</TD> > ><TD class="c3"><INPUT name="CITY"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11">Contact Name</TD> > ><TD class="c3"><INPUT name="CNTCT_NM"></TD> > ><TD class="c11">State</TD> > ><TD class="c3"><INPUT name="ST"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11">Letter Date</TD> > ><TD class="c3"><INPUT name="LETR_DT"></TD> > ><TD class="c11">Zip</TD> > ><TD class="c3"><INPUT name="ZIP"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11">501c3</TD> > ><TD class="c3"><INPUT name="CCP_501C3_RECV_YN"></TD> > ><TD class="c11">Alternate Address</TD> > ><TD class="c3"><INPUT name="SECND_FL_ADRS"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11">RPPS Originator</TD> > ><TD class="c3"><INPUT name="RPPS_ORIG"></TD> > ><TD class="c11">Email</TD> > ><TD class="c3"><INPUT name="EMAIL"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c11">Tax ID</TD> > ><TD class="c3"><INPUT name="TIN"></TD> > ><TD class="c3" colspan="2"><BR></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD colspan="6" class="c1"><BR></TD> > ></TR> > ><TR class="c14"> > ><TD class="c1"><BR></TD> > ><TD colspan="4" class="c13" width="16%">Notes</TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD class="c1"><BR></TD> > ><TD class="c3" colspan="4" height="20"><IMG width="100%" height="2" >src="bluepixel.gif"></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR class="c5"> > ><TD class="c1"><BR></TD> > ><TD colspan="4"> > ><TEXTAREA class="c15"> > ></TEXTAREA></TD> > ><TD class="c1"><BR></TD> > ></TR> > ><TR> > ><TD colspan="6" class="c1"><BR></TD> > ></TR> > ><TR> > ><TD colspan="6" class="c3"><IMG width="100%" height="2" >src="bluepixel.gif"></TD> > ></TR> > ><TR> > ><TD colspan="6" class="c17 >c4"><BUTTON>Search</BUTTON><BUTTON>Edit</BUTTON><BUTTON>Close</BUTTON></TD> > ></TR> > ></TBODY> > ></TABLE> > ></BODY> > ></HTML> > > > > > >Thanks, > >Raj Auradkar > > > _____ > >From: Harish Krishnaswamy [mailto:perezangela@example.com] >Sent: Sat 1/31/2004 1:25 PM >To: Tapestry users >Subject: Re: Tapestry and DTHML > > > >Sure send the code but I am not quite sure what you trying to do, yet. > >-Harish > >Auradkar, Rajendra V. wrote: > > > >>Harish, >>Thanks for your response. My colleague is using a construcy called IFRAME >>which apparnetly helps in creating better tables (??). Can I send you the >>code piece instead? >>Thanks, >>Raj Auradkar >> >> >> >>------------------------------------------------------------------------ >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: perezangela@example.com >>For additional commands, e-mail: perezangela@example.com >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > > > > >------------------------------------------------------------------------ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 05:01:45 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 86809 invoked from network); 3 Feb 2004 05:01:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 05:01:45 -0000 Received: (qmail 52502 invoked by uid 500); 3 Feb 2004 05:01:22 -0000 Delivered-To: perezangela@example.com Received: (qmail 52346 invoked by uid 500); 3 Feb 2004 05:01:21 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 52254 invoked from network); 3 Feb 2004 05:01:18 -0000 Received: from unknown (HELO mail.iinet.net.au) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 05:01:18 -0000 Received: (qmail 23882 invoked from network); 3 Feb 2004 04:54:52 -0000 Received: from unknown (HELO mouse.iinet.net.au) (83.161.120.155) by mail.iinet.net.au with SMTP; 3 Feb 2004 04:54:51 -0000 Message-Id: <perezangela@example.com> X-Sender: perezangela@example.com X-Mailer: QUALCOMM Windows Eudora Version 83.161.120.155 Date: Tue, 03 Feb 2004 15:54:46 +1100 To: "Tapestry users" <perezangela@example.com> From: Glen Stampoultzis <perezangela@example.com> Subject: Re: Conditional form elements. Does it work? In-Reply-To: <perezangela@example.com> References: <perezangela@example.com> <perezangela@example.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_70851281==.ALT" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=====================_70851281==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Interesting... before I saw your response I experimented with creating a <property-specification> and using that to set or reset the section (in combination with a hidden field to pass the value through between resets). This approach seemed to work okay. Presumably because the value isn't changing until after the rewind (but before the second render). FormConditional sounds easier though. What's difference between contrib and the standard library? It seems to me that FormConditional would be important enough to stick in the standard library. Thanks for your help, Glen At 03:30 PM 3/02/2004, you wrote: >There is a FormConditional component in contrib that you might want to >use. That should take care of this problem. > >-Harish > >Glen Stampoultzis wrote: > >> >>I've got a form with some conditional form controls. At the top of the >>form is a selection control that submits on change. When it submits it >>triggers a condition that adds more elements to the form. >>This gives the following error: >> >>--------------8<------------------- >>You have clicked on a stale link. >> >>Rewind of form ConfigureSeaview/form expected only 1 form elements, but >>an additional id was requested by component ConfigureSeaview/hostName. >> >>This is most likely the result of using your browser's back button, but >>can also be an application error. >>--------------8<------------------- >> >>I think I understand why this happens but what I really need is a way I >>can implement this behavior without triggering this error. >> >>Here's the form I'm using: >> >>--------------8<------------------- >><form jwcid="form@Form" listener="ognl:listeners.submit" >>delegate="ognl:beans.delegate"> >> <p>&nbsp;</p> >> <table border="0"> >> <tr> >> <td>Please select the type of database you wish to run:</td> >> <td><select id="dbType" jwcid="dbType" name="select"/> >> </td> >> </tr> >> <tr> >> <td>&nbsp;</td> >> <td>&nbsp;</td> >> </tr> >> </table> >> <p>&nbsp; </p> >> <div jwcid="mssqlserver"> >> <table border="0"> >> <tr> >> <td>Host Name: </td> >> <td><input type="text" >> jwcid="hostName"/></td> >> </tr> >> <tr> >> <td>Port: </td> >> <td><input type="text" jwcid="port"/></td> >> </tr> >> <tr> >> <td>Database: </td> >> <td><input type="text" >> jwcid="database"/></td> >> </tr> >> <tr> >> <td>Username: </td> >> <td><input type="text" >> jwcid="username"/></td> >> </tr> >> <tr> >> <td>Password:</td> >> <td><input type="password" >> jwcid="password"/></td> >> </tr> >> </table> >> </div> >> <p>&nbsp; </p> >> <p><input value="Submit" type="submit"></p> >></form> >>--------------8<------------------- >> >> >> >> >> >> >>Glen Stampoultzis >>perezangela@example.com >>http://members.iinet.net.au/~gstamp/glen/ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: perezangela@example.com >For additional commands, e-mail: perezangela@example.com > Glen Stampoultzis perezangela@example.com http://members.iinet.net.au/~gstamp/glen/ --=====================_70851281==.ALT-- From tapestry-user-returnperezangela@example.com Tue Feb 03 05:56:58 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 6391 invoked from network); 3 Feb 2004 05:56:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 05:56:58 -0000 Received: (qmail 81345 invoked by uid 500); 3 Feb 2004 05:56:35 -0000 Delivered-To: perezangela@example.com Received: (qmail 81114 invoked by uid 500); 3 Feb 2004 05:56:33 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 81090 invoked from network); 3 Feb 2004 05:56:33 -0000 Received: from unknown (HELO mail.agilixcorp.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 05:56:33 -0000 Received: from localhost (localhost [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id BE6C256A90 for <perezangela@example.com>; Tue, 3 Feb 2004 00:56:43 -0500 (EST) Received: from mail.agilixcorp.com ([83.161.120.155]) by localhost (mail [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 08809-05 for <perezangela@example.com>; Tue, 3 Feb 2004 00:56:40 -0500 (EST) Received: from comcast.net (unknown [83.161.120.155]) by mail.agilixcorp.com (Postfix) with ESMTP id D8C4656A8E for <perezangela@example.com>; Tue, 3 Feb 2004 00:56:38 -0500 (EST) Message-ID: <perezangela@example.com> Date: Tue, 03 Feb 2004 00:56:38 -0500 From: Harish Krishnaswamy <perezangela@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tapestry users <perezangela@example.com> Subject: Re: Conditional form elements. Does it work? References: <perezangela@example.com> <perezangela@example.com> <perezangela@example.com> In-Reply-To: <perezangela@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You are right, FormConditional does belong in the core library and it will find its way in, in 3.1. We are in beta now and so are hesitant to add new stuff to the framework. -Harish Glen Stampoultzis wrote: > > Interesting... before I saw your response I experimented with > creating a <property-specification> and using that to set or reset the > section (in combination with a hidden field to pass the value through > between resets). This approach seemed to work okay. Presumably > because the value isn't changing until after the rewind (but before > the second render). FormConditional sounds easier though. > > What's difference between contrib and the standard library? It seems > to me that FormConditional would be important enough to stick in the > standard library. > > Thanks for your help, > > Glen > > > At 03:30 PM 3/02/2004, you wrote: > >> There is a FormConditional component in contrib that you might want >> to use. That should take care of this problem. >> >> -Harish >> >> Glen Stampoultzis wrote: >> >>> >>> I've got a form with some conditional form controls. At the top of >>> the form is a selection control that submits on change. When it >>> submits it triggers a condition that adds more elements to the form. >>> This gives the following error: >>> >>> --------------8<------------------- >>> You have clicked on a stale link. >>> >>> Rewind of form ConfigureSeaview/form expected only 1 form elements, >>> but an additional id was requested by component >>> ConfigureSeaview/hostName. >>> >>> This is most likely the result of using your browser's back button, >>> but can also be an application error. >>> --------------8<------------------- >>> >>> I think I understand why this happens but what I really need is a >>> way I can implement this behavior without triggering this error. >>> >>> Here's the form I'm using: >>> >>> --------------8<------------------- >>> <form jwcid="form@Form" listener="ognl:listeners.submit" >>> delegate="ognl:beans.delegate"> >>> <p>&nbsp;</p> >>> <table border="0"> >>> <tr> >>> <td>Please select the type of database you wish to run:</td> >>> <td><select id="dbType" jwcid="dbType" name="select"/> >>> </td> >>> </tr> >>> <tr> >>> <td>&nbsp;</td> >>> <td>&nbsp;</td> >>> </tr> >>> </table> >>> <p>&nbsp; </p> >>> <div jwcid="mssqlserver"> >>> <table border="0"> >>> <tr> >>> <td>Host Name: </td> >>> <td><input type="text" >>> jwcid="hostName"/></td> >>> </tr> >>> <tr> >>> <td>Port: </td> >>> <td><input type="text" >>> jwcid="port"/></td> >>> </tr> >>> <tr> >>> <td>Database: </td> >>> <td><input type="text" >>> jwcid="database"/></td> >>> </tr> >>> <tr> >>> <td>Username: </td> >>> <td><input type="text" >>> jwcid="username"/></td> >>> </tr> >>> <tr> >>> <td>Password:</td> >>> <td><input type="password" >>> jwcid="password"/></td> >>> </tr> >>> </table> >>> </div> >>> <p>&nbsp; </p> >>> <p><input value="Submit" type="submit"></p> >>> </form> >>> --------------8<------------------- >>> >>> >>> >>> >>> >>> >>> Glen Stampoultzis >>> perezangela@example.com >>> http://members.iinet.net.au/~gstamp/glen/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: perezangela@example.com >> For additional commands, e-mail: perezangela@example.com >> > > > Glen Stampoultzis > perezangela@example.com > http://members.iinet.net.au/~gstamp/glen/ > --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 07:57:07 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 58253 invoked from network); 3 Feb 2004 07:57:07 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 07:57:07 -0000 Received: (qmail 96902 invoked by uid 500); 3 Feb 2004 07:56:38 -0000 Delivered-To: perezangela@example.com Received: (qmail 96869 invoked by uid 500); 3 Feb 2004 07:56:38 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 96850 invoked from network); 3 Feb 2004 07:56:37 -0000 Received: from unknown (HELO 141.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 07:56:37 -0000 Received: from boing [83.161.120.155] by 141.com with ESMTP (SMTPD32-8.05) id A5846056010A; Tue, 03 Feb 2004 01:02:12 -0700 From: "Peter Butler" <perezangela@example.com> To: "'Tapestry users'" <perezangela@example.com> Subject: Component form is null first time page is viewed in 3.0b3, OK after session restart Date: Tue, 3 Feb 2004 20:56:48 +1300 Message-ID: <000401c3ea2b$48a5bae0$0100a8c0@boing> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Declude-Sender: perezangela@example.com [83.161.120.155] X-Note: This E-mail was scanned for spam. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi All I'm having a problem with a ValidField component, set up like this: <form jwcid="@Form" delegate="ognl:beans.delegate"> <span jwcid="@FieldLabel" field="ognl:components.price">Price</span> <input jwcid="price@ValidField" value="ognl:listing.price" validator="ognl:beans.doubleRequired" displayName="Price"/> </form> An excerpt from the page specification is below: <page-specification class="pricom.broker.pages.AddListing"> <bean name="doubleRequired" class="org.apache.tapestry.valid.NumberValidator"> <set-property name="valueType" expression="'double'"/> <set-property name="required" expression="true"/> <set-property name="zeroIsNull" expression="true"/> </bean> <bean name="delegate" class="pricom.broker.components.SimpleValidationDelegate"/> </page-specification> I also have a validation delegate like this: public void writeLabelPrefix... if (isInError(component)) { writer.begin("span"); writer.attribute("class", "label-error"); } else { writer.begin("span"); writer.attribute("class", "label"); } The first time the page is viewed, Tapestry throws a NullPointerException from ValidationDelegate.isInError (line 435), which is String formName = component.getForm().getName(); The NullPointerException is generated because the component's form property is null, so the above call fails. However, when I restart the session from the exception page, the page displays fine. This happens every time, and also happens when I call the same page declared in the .application file with a different name. Does anyone have any ideas on this? Thanks in advance Peter Butler www.clever.co.nz --------------------------------------------------------------------- To unsubscribe, e-mail: perezangela@example.com For additional commands, e-mail: perezangela@example.com From tapestry-user-returnperezangela@example.com Tue Feb 03 12:57:48 2004 Return-Path: <tapestry-user-returnperezangela@example.com> Delivered-To: perezangela@example.com Received: (qmail 46365 invoked from network); 3 Feb 2004 12:57:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 12:57:48 -0000 Received: (qmail 30436 invoked by uid 500); 3 Feb 2004 12:57:41 -0000 Delivered-To: perezangela@example.com Received: (qmail 30412 invoked by uid 500); 3 Feb 2004 12:57:41 -0000 Mailing-List: contact perezangela@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:perezangela@example.com> List-Subscribe: <mailto:perezangela@example.com> List-Help: <mailto:perezangela@example.com> List-Post: <mailto:perezangela@example.com> List-Id: "Tapestry users" <tapestry-user.jakarta.apache.org> Reply-To: "Tapestry users" <perezangela@example.com> Delivered-To: mailing list perezangela@example.com Received: (qmail 30390 invoked from network); 3 Feb 2004 12:57:40 -0000 Received: from unknown (HELO hotmail.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 12:57:40 -0000 Received: from mail pickup service by hotmail.com
{'source': 'Apache Software Foundation Public Mail Archives'}