Hi Chris,
Thanks for the reply.... very informative, however I do (as always!)
have another question (or two!).
The first question is simply this.... what does makeEventBean() actually
do? From your comments, I would expect that it probably creates a bean
that exists for the life of the request and attempts to "see" if any of
the variables that have been passed through in the event match the
arguments of those for the bean that we are creating.... is that correct ?
Why would we put the DAO's in the controller ? I would expect that
several controllers will require access to the same DAOs, isn't there a
better place to put them that will allow access from all controllers ?
Or are you saying that because the DAO is essentially supposed to be a
singleton, even if I do add it to the separate controllers, they are all
in fact, referencing the same object ? (Am I grasping this correctly
here? Or am I way off?)
Finally, with regards to the AutoWire stuff, are you saying that by
adding that setStaffDAO to my controller, that Coldspring will
automatically try to determine how to pass this DAO to my controller
when the controller is first created ? Is there anything special that I
have to do to get this autowire controller working? From what I can
gather, it's in the current BER / Alpha release....
Sorry for my confusion - and thanks again for bearing with me on this one :D
Cheers,
Callum
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]