Questions tagged [model-glue]

Model-Glue is an OO web application framework based on the MVC design pattern. Its goal is to simplify development of OO ColdFusion applications. It is released under the Apache Software License 2.0.

Model-Glue is:

  • An Implicit Invocation framework which facilitates use of the Model View Controller design pattern in ColdFusion applications.
  • A framework encouraging clear separation of Model, View, and Controller
  • Akin to Mach-II, another implicit invocation MVC framework.
  • Written by Joe Rinehart, with feedback provided by Doug Hughes of Alagad, Inc.
23 questions
5
votes
2 answers

Using ColdFusion Model-Glue, how do I redirect the user back to their requested page after logging in?

I have a secured event type, which will check to see if the user is logged in, and the redirect them to the login page if they're not:
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
2
votes
4 answers

What is ColdFusion Model Glue's equivalent to ASP.NET MVC 3's @section?

In ASP.NET MVC 3, you can have an @section within a view: @section SideBar {

Some content

Some more content

}

Body content

Then in the master view, you would use this to render it:
2
votes
1 answer

Best practices when writing glue code

I asked this question to get some opinions on the subject of glue code. For example, imagine you have a class (pseudocode): class MyClass int attribute a string attribute b And to represent that data model, you have BOTH a slider and a…
cemulate
  • 2,305
  • 1
  • 34
  • 48
2
votes
0 answers

ModelGlue / ColdSpring configuration issue?

I've used ModelGlue and ColdSpring for years on previous projects without issue. I'm building this new website using CF10 ModelGlue 3.2. I've downloaded and installed the framework, built the site on my local development MacBook without issue, and…
jasonseminara
  • 436
  • 4
  • 14
2
votes
1 answer

What is the easiest way to run a local server of a website built using ColdFusion with Coldspring, Reacter, and Model-Glue?

Here is the situation: I was given a machine with a subversioned repository of an old website to update/add contents every now and then. The website is built using ColdFusion and Model-Glue MVC, AND I have no idea (zero) about ColdFusion. The other…
salouri
  • 760
  • 1
  • 8
  • 19
2
votes
2 answers

Data clean-up; what layer?

I have an app built on Model-Glue: Unity that contains some search forms. I need to trim leading and trailing spaces from search strings before using them to query the database. I'm also keeping the search terms in a bean that a user can save and…
ale
  • 6,369
  • 7
  • 55
  • 65
1
vote
1 answer

How do I set the current page for a global navigation cfm in ColdFusion Model Glue 3?

I have a navigation.cfm page that I'm including in all of my pages by using a MG3 custom event type:
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
1 answer

How do I access a bean outside of a controller in ColdFusion Model Glue 3?

Model Glue 3 introduced bean injection, which allows you to do this in a controller to access it: beans.component.function(); However, the beans scope is only available for a controller. How would I access a bean outside of a controller, for…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
1 answer

What is the best way of including a UDF/CFC in a ColdFusion Model-Glue controller?

I have some common UDFs and CFCs that I'd like to make available to all my controllers. I'm using Model-Glue 3. I've thought of several ways of doing so: Create a base controller that has 's to the UDFs and instantiates the CFCs. All…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
1 answer

Where should I instantiate my models in a ColdFusion Model Glue controller?

Let's say I have a client who has a list of orders and a wishlist. In my model, I have a ClientRepo, OrderRepo, and WishListRepo. In the controller, where should I be instantiating these repositories? Is it a good idea to make them class-level…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
2 answers

Is Model-Glue's model in Coldfusion the same as the model in other MVC frameworks?

If you follow the quickstart guide provided by the official Model-Glue docs, found here: http://docs.model-glue.com/wiki/QuickStart/2%3AModellingourApplication#Quickstart2:ModelingourApplication It will seem like the "model" is a class that performs…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
2 answers

How do I put Javascript in the element of a Coldfusion Model Glue page?

I have a Model Glue CFM page index.cfm with some JS code that I'd like to execute:

This is some text

This is being inserted into…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
1
vote
4 answers

Ajax call in ModelGlue ColdFusion Application without rendering a view

I am using Ajax with ModelGlue in a ColdFusion Application. I want to make an Ajax call to return a value. I do not want to render any view. I just want a database interaction and bring back a value. My Ajax call: new…
ajithmanmu
  • 1,159
  • 4
  • 13
  • 16
1
vote
1 answer

Overwriting/redirect a Request in Coldfusion using modelglue

Actually its related to authentication. my scenario is as following: I have a homepage, where user can see some news n other stuff, also there are text fields for user to enter the login info and get logged in. Now if user is not logged in i want to…
user125736
  • 11
  • 2
0
votes
3 answers

Model-Glue and Railo Application.cfc

I am trying to launch a test MG app on Railo and am hitting a snag. When I visit the MG app I get: Railo 3.1.0.012 Error (Java.lang.classformaterror) Message Invalid index 16 in LocalVariableTable in class file application_cfc$cf Java…
user115212
  • 63
  • 1
  • 8
1
2