On 12/12/05, Chris Velevitch <[EMAIL PROTECTED]> wrote: > Actually, you can:- .... > <cfexit method="loop">
Ah... Ugh! I'll add that to my list of why I don't like custom tags ;) > can be a custom tag. And so when CF parses such code, there is an > general rule that says, opening and closing tags must in the same > page. If there was a custom tag tag, then CF could handle that as Each file is compiled to a separate Java class and the try/catch in particular must be within a single file (in fact each file must be syntactically valid as far as tag nesting is concerned). > being a special case and be aware tags have the open tag in the custom > tag start and the closing tag in the custom tag end. This would remake > CF extremely powerful and extensible. In order for that to work, code fragments would have to compile down to Java bytecode and if you made an error in your logic you'd probably get a very unhelpful Java bytecode verification error... > The only solution, so far, is to have a component to do the > transaction retrying and the transaction in an abstract method and > have the implementation of the transaction as an extension of the > component Well, there is a very strong argument for saying that transactions are part of a higher tier than basic data access code and that you *should* code them separately - from a design point of view. Data access is typically atomic (and can / should be testable in isolation). Transactions are almost always a business tier issue. -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226931 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

