Mindomo Requires javascript and the latest version of the Adobe Flash Player Plugin.


Get Adobe Flash player

ModelGlue Series Part 3 www.NoDans.com (1)The BEAN (2)The Form (3) The Form Action (4) ColdSpring Magic Think of one row from the Table Object that has fields holding information, the values can be accesed with Getters and Setters only. Getters and Setters are functions for the public to interact with the object. DO NOT Change properties of the Bean directly. Always Use Get and Set methods. ROOIBOS GENERATOR ColdSpring.xml ModelGlue.xml Controller.cfc under \ContactManagerMG\controller Create frmContact.cfm under \ContactManagerMG\views Click on the Contact Tab. Request should be similar to http://localhost/ContactManagerMg/?event=contact.view ModelGlue.xml Controller.cfc under \ContactManagerMG\controller ROOIBOS GENERATOR ColdSpring.xml Controller.cfc under \ContactManagerMG\controller ModelGlue.xml Create dspContactList.cfm under \ContactManagerMG\views grtfercho: Run the application, play with the Reload on Coldspring.xml http://rooibos.maestropublishing.com/ Great tool to generate all the getters and setters automatically For the ContactFormBean.cfc Configure the new ContactFormBean in ColdSpring.xml. For Event-handler contact.view Add a new function to handle Broadcast:needContactForm Action Page for the Form is set to
That translates to http://localhost/ContactManagerMG/index.cfm?event=SubmitContactForm For Event-handler SubmitContactForm Add a new function to handle Broadcast ContactFormSubmitted Only dealing with 'Failure' right now. http://rooibos.maestropublishing.com/ For the ContactService.cfc Configure the new ContactService in ColdSpring.xml. Friend Co-Worker Enemy Using the service on the HandleContactForm function. New lines in red Create a new function to handle getContactList Add a messageListener for getContactList() ........ for event Handler : contact.list Bean Template Bean Options Create ContactFormBean.cfc under \ContactManagerMg\model and paste code from Rooibos Generator Add a message Listener in the Controller Section ........ Add a message Listener in the Controller Section ........ Bean Template Bean Options Create ContactService.cfc under \ContactManagerMg\model and paste code from Rooibos Generator ContactID string ContactName string ContactType string Bean Name: ContactFormBean Path to Bean: ContactManagerMG.model.ContactFormBean Extends: (Leave blank) Also, check the options for getMemento() and for validate().Leave everything else unchecked. ContactTypes struct ContactList array Bean Name: ContactService Path to Bean: ContactManagerMG.model.ContactService Extends: (Leave blank) Leave everything else unchecked.