Introduction to Model-Glue Rachel Lehman Perpetual Intermediate Designer-Developer Introduction to Model-Glue.

Slides:



Advertisements
Similar presentations
PHP + Framework + MVC. What is Framework? Common code - Generic functionality Extensible - Specific functionality Unlike library – Flow Dictated by.
Advertisements

Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
CF and JSP/Servlets Developed originally by Robi Sen For the CF UnderGround II Seminar, Apr 2001 Edited and enhanced by Charlie Arehart (Robi had an emergency.
Extreme User Interfaces for Alfresco Kevin Dorr Sr. Solutions Engineer Americas Channel.
Apache Struts Technology
Extending JIRA Rachel Wright July 15, 2014 See slide “Notes” section for commentary and talking points.
Web Applications Development Using Coldbox Platform Eddie Johnston.
INSTALLATION OF WORDPRESS. WORDPRESS WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
The easy way to a nice looking website design By a total non-designer (Me!)
ECE356 – Database Systems Lab 1 – Building a Web Project with NetBeans Tiuley Alguindigue Lab Instructor – University of Waterloo, E & CE Dept. Fall 2013.
Introduction to Liferay Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Struts 2.0 an Overview ( )
UNIT-V The MVC architecture and Struts Framework.
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
March 12 & 13, 2007 Fusebox 5.5 Scaffolding Kevin Roche Objective Internet Ltd.
ZFApp Preview Walkthrough. What is ZFApp? ZFApp is an application framework built on top of Zend Framework Fully compatible with the latest ZF Versions.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
CodeIgniter - [Overview]
SQL Server Reporting Services London Database Developer Forum Anoop Patel.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Reporting from Contract.
Frameworks: Mach II or Fusebox 4? Sean A Corfield Director of Architecture Macromedia, Inc.
Working Out with KURL! Shayne Koestler Kinetic Data.
Software Architecture for ColdFusion Developers Unit 4: Application Events and Global Variables.
AN OVERVIEW OF SERVLET TECHNOLOGY SERVER SETUP AND CONFIGURATION WEB APPLICATION STRUCTURE BASIC SERVLET EXAMPLE Java Servlets - Compiled By Nitin Pai.
Grouper Training - Admin - Client Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
LogBox Enterprise Logging Brad Wood
HTML Hyper Text Markup Language A simple introduction.
Enabling High-Quality Printing in Web Applications
Transfer 101 Dan Vega. 2www.cfunited.com About Me Programmer ColdFusion / Flex / AS3 / HTML / JS / CSS / Groovy & Grails Cleveland ColdFusion.
1 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1 Building Portlets with ColdFusion Pete Freitag Foundeo, Inc.
Lecture 11 Rails Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
Farcry Not just a game anymore…. What is Farcry?  Farcry is a Content Management System (CMS)  It is designed to separate the jobs of site creation/design.
IIS 7.0 for CFML Developers Vince Bonfanti. Introduction Vince Bonfanti President and co-founder of New Atlanta Software developer by training and trade.
March 12 & 13, 2007 IIS 7.0 for CFML Developers Deploying on IIS 7.0 with Adobe ColdFusion and New.
Navigation Framework using CF Architecture for a Client-Server Application using the open standards of the web Kedar Desai presented by.
Fusebox 5 vs Model-Glue JaxFusion September 2006.
CODELABOR Shin Sang Jae Template Guide (codelabor-flex-lcds-template)
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
FW/1 - Framework One An introduction to the ColdFusion framework created by Sean Corfield. Presented by Ben Ellefson.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)
Jericho CSCI 7818 September 5, 2001 Carissa Mills.
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Spring and DWR Frameworks for Rich Web Enterprise Application Thomas Wiradikusuma Presentation to the 20 th.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
ICM – API Server & Forms Gary Ratcliffe.
Date : 3/04/2010 Web Technology Solutions Class: PHP Web Application Frameworks.
CitiWiki Summer Workshop Day 4: Wiki Teaching Project Li Xu CS, UMass Lowell.
HINDU STYLE PORTFOLIO TEMPLATE
Mach-II Primer Ben Edwards An Introduction to Mach-II: An event-based, implicit invocation web-application framework.
Advanced Task Engine Doing Cool Stuff with Cool stuff!
APACHE STRUTS ASHISH SINGH TOMAR ast2124. OUTLINE Introduction The Model-View-Controller Design Pattern Struts’ implementation of the MVC Pattern Additional.
Navigation Framework using CF Architecture for a Client-Server Application using the open standards of the Web presented by Kedar Desai Differential Technologies,
Ruby on Rails. Web Framework for Ruby Designed to make it easier to develop, deploy, and maintain web applications Design with Model-View-Controller –almost.
Apache Struts Technology A MVC Framework for Java Web Applications.
CFUNITED – The premier ColdFusion conference Flex 2.0 and ColdFusion Integration – 101 Nahuel Foronda Laura Arguello.
Reactor An ORM framework for ColdFusion Presentation By: Doug Hughes
Thomas Burleson. Using MVC with Flex & Coldfusion Projects June 27, 2007 See how Coldfusion MVC is similar to Flex MVC…
Portlet Development Konrad Rokicki (SAIC) Manav Kher (SemanticBits) Joshua Phillips (SemanticBits) Arch/VCDE F2F November 28, 2008.
ArcGIS for Server Security: Advanced
Web Technology Solutions
DotNetNuke® Web Application Framework
The Model Layer What is Model?
Leveraging ColdSpring To Make Better Applications
Presentation transcript:

Introduction to Model-Glue Rachel Lehman Perpetual Intermediate Designer-Developer Introduction to Model-Glue | Rachel Lehman1

Model-Glue:ColdFusion An MVC Framework for ColdFusion Open Source Also does scaffolding Works well with other frameworks (and uses them) Simple enough for beginners Powerful enough for enterprise development Introduction to Model-Glue | Rachel Lehman2

Agenda What a Model-Glue application looks like What the framework does Installation & configuration Hello World example Master-Detail example A few handy tips Upcoming in Model-Glue 3 Q & A Introduction to Model-Glue | Rachel Lehman3

Basic Model-Glue Application Architecture  Model (CFC business objects & data access)  CFCs for business objects (Beans)  CFCs for data access (DAOs & Gateways)  CFCs for service abstraction (Service layer)  View (CFM display code)  CFM pages for view templates (dspIndex.cfm, dspTemplate.cfm, dspMyPage.cfm)  Common includes (headers, footers, UDF’s, etc)  Where the HTML goes  Controller (CFC business logic)  CFCs to connect your views to your model  Configuration (XML defining your application)  ColdSpring.xml defines ModelGlue application settings  ModelGlue.xml defines the pages (events) in your application  ORM Configuration: Reactor and Transfer (required for scaffolding)  Application.cfm (soon to be Application.cfc, defines app name)  Index.cfm (front controller, imports framework, all requests go through here) Introduction to Model-Glue | Rachel Lehman4

Model-Glue Event Flow Introduction to Model-Glue | Rachel Lehman5

Installation Download MG from Download ColdSpring from Download Reactor from or Transfer from Unzip files and copy the framework files to your web root, or what ColdFusion sees as /modelglue, /coldspring, /reactor (with mappings if necessary) Copy the modelglueapplicationtemplate directory to where you wish to deploy your application Introduction to Model-Glue | Rachel Lehman6

Configuration Open the build.xml file – ANT build file Edit the project name, application name, and application directory Run the file as an ANT build (either through Eclipse, or the command line with ANT) Introduction to Model-Glue | Rachel Lehman7

No Ant? Don’t be intimidated, it’s super simple and comes with Eclipse (you have it if you’re using CFEclipse) You can also follow these steps for a manual install: – Create a new directory called "myappname" under your Web root. – Copy the contents of the /modelglueapplicationtemplate directory to the /myappname directory. – Open /myappname/config/ColdSpring.xml – Do a find and replace, changing "modelglueapplicationtemplate" to "myappname" – Open /myappname/config/ModelGlue.xml – Do a find and replace, changing "modelglueapplicationtemplate" to "myappname" – Open /myappname/Application.cfm – Do a find and replace, changing "modelglueapplicationtemplate" to "myappname" Introduction to Model-Glue | Rachel Lehman8

Here Goes Nothin! Browse to the home page of your application, and you should see… Introduction to Model-Glue | Rachel Lehman9

What You Should Know About Configuration (ColdSpring.xml) Reload (true for development, false for production) & reload password (defaults to true) Rescaffold (true for development when using scaffolding, false otherwise and for production) Debug (true for development, false for production) Preferences, Names for common terms (default event/page, event name, reload key, etc) Mappings to files (views, scaffolds, config, etc) Introduction to Model-Glue | Rachel Lehman10

DEMO: HELLO WORLD Adding and running a new event Introduction to Model-Glue | Rachel Lehman11

A Few Tips Force application reload with init=true Get the current page and event name (base URL) with viewState.getValue(‘myself’) Forward events within the Controller (like but within the framework) with event.forward() for redirection It’s event within the Controller, and viewState within the views* Centralize application settings with GenericConfig beans Create multiple view templates for different layouts or types of delivery (home, subpage, popup, rss, etc) Add an unnamed result to the xml and it will execute at the end of the request for easy site-wide templates Lock down your config files (store outside the web root and use a mapping, or apply directory security) and if possible, the framework itself. Introduction to Model-Glue | Rachel Lehman12

DEMO: MASTER/DETAIL APPLICATION (CF ART GALLERY) An application put into practice with Model-Glue Introduction to Model-Glue | Rachel Lehman13

From Here… You can organize and divide your application with multiple – Controllers – ModelGlue.xml config files – ColdSpring.xml config files ActionPacks are pluggable Model-Glue applications Check out Generic Database Messages and Scaffolds features for quick admin interfaces Introduction to Model-Glue | Rachel Lehman14

Now in Alpha Model-Glue: Gesture Feature Preview Event generation – type the name of an event that doesn’t exist, and your stub XML, controller methods, views and even a unit test case will be generated for you Custom-typed events allow you to bundle repetitive event functionality (templates) into the event, rather than defining it with each event handler in your xml Application.cfc support (CFMX6 has been EOL’d) All event values are now stored in the Event object, no need to use viewState Easy ways to manage search engine safe URLs Helpers – for an easier way to include UDFs Dead-simple caching (in event xml – cache=true) – extendable for you to implement on your own Estimated release is Mid 2008 Introduction to Model-Glue | Rachel Lehman15

Resources and Further Reading ModelGlue mailing list (Google Groups ID- model-glue) Documentation: Joe Rinehart’s Blog: the author of Model-Glue Ray Camden’s Blog: intro series, answers to many FAQ’s: Other Blogs that cover Model-Glue: – Todd Sharp - – Doug Boude - – Dan Wilson - Model-Glue Cookbook: Demo applications written with Model-Glue: – Canvas wiki: – Litepost blog: – Sample apps with MG install Apache ANT for deployment - I’ll post my code examples on my own blog at Introduction to Model-Glue | Rachel Lehman16

Q & A Thank you! Introduction to Model-Glue | Rachel Lehman17