| You can, since it's the default for the extends attribute where none is specified, use web-inf.cftags.component as the value of an argument="" attribute and at least insure that you're passing in an object. It's not as intricate as creating a parent DAO but it does guarantee your type checking is better than any. It basically means "any object" as opposed to "anything possible". Inheritance isn't a bad thing if you need need it, but may not be necessary, especially if all the methods in the DAO are unique to that DAO -- you really don't need to bother extending an object unless there's at least one method that doesn't change from parent to child. I.e.: <cfargument name="someDao" type="web-inf.cftags.component" required="true" /> Just one more tool in the toolbox. J ------------------------------------------------ Jared C. Rypka-Hauer Continuum Media Group LLC Member, Team Macromedia - ColdFusion "That which does not kill me makes me stranger." - Yonah Schmeidler On Mar 24, 2006, at 7:23 PM, Peter J. Farrell wrote:
|
- [coldspring-dev] Factory DAO help Patrick Lebon
- [coldspring-dev] Factory DAO help Kurt Wiersma
- [coldspring-dev] Factory DAO help Patrick Lebon
- [coldspring-dev] Factory DAO help Chris Scott
- [coldspring-dev] Factory DAO help Peter J. Farrell
- [coldspring-dev] Factory DAO help Chris Scott
- [coldspring-dev] Factory DAO help Jared Rypka-Hauer
- [coldspring-dev] Factory DAO help Jared Rypka-Hauer
- [coldspring-dev] Factory DAO help Chris Scott
- [coldspring-dev] Factory DAO help Patrick Lebon
