If you do a form post which returns to the same url (i.e. index.cfm), and then hit refresh, the form post will go again (the user will normally be prompted first). I'm afraid that's always been the case, long before Mach-II came along. If you want to prevent this from happening, then you'll have to build in some checks to prevent the same details being added twice.
Douglas -----Original Message----- From: ing. fusto [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 11:26 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] mach-ii but the problem is that after inserted a record and returned to listpage, if address bar contains ...?event=insert, and a user clicks the reload-page button in browser tool-bar, a new insert-record event is forced, and there will be another record in the database table, all without leavingthe list-page!!! Q. who is bugged: my brain or Machii? best redards sasa ----- Original Message ----- From: "Douglas Humphris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 26, 2004 12:16 PM Subject: RE: [ cf-dev ] mach-ii Is this not because ?event=insert is the event that you called from the previous link? The address bar will only display the link that you called. It doesn't matter that several events happened after the original event. It's not so much a Mach-II thing as that's just how it is. You'll get the same behaviour if you use cflocation. I'm developing a large application right now and Mach-II is working very well so far. Has really helped me to organise the application - which could so easily turn into a monster... So, I agree - I wasn't much of a fan of fusebox, but MachII is a very good framework. Douglas -----Original Message----- From: ing. fusto [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 10:49 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] mach-ii it' a fine tool! but i've noted a strange behaviour: when i submit the form than generating an insert-record event, then machii invoke the listener's create method; after this in the event-handler i announce another event to display the list: ... <event-handler event="insert" ...> <notify listener="listener" method=insert" /> <announce event="list" /> ... </event handler> <event handler event="list" ... > <notify listener="listener" method=get_all" returnkey="request.list" /> <view-page list_page /> </event-handler> but at this point i note that the address fields of the browser displays the insert record event (.../index.cfm?event=insert) so if i reload the page list, i have the strange behaviour. have you noted also? salvatore ----- Original Message ----- From: "Douglas Humphris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 26, 2004 11:42 AM Subject: RE: [ cf-dev ] mach-ii I do/am in the process of doing Mach-ii development. Douglas -----Original Message----- From: ing. fusto [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 10:39 To: [EMAIL PROTECTED] Subject: [ cf-dev ] mach-ii hello, is anyone in the list that develops with mach-ii? best regards salvatore -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]
