Ticket #227 (new enhancement)

Opened 12 months ago

Last modified 2 months ago

Provide mixins for views

Reported by: peterfarrell Owned by: peterfarrell
Priority: minor Milestone: Uncategorized
Component: framework - core Version: Uncategorized - Framework
Keywords: mixin mixins view views ViewManager ViewContext Cc: kurtwiersma, mattwoodward, brianfitzgerald, adrianscott, mikerogers
Blocking: Blocked By:

Description

Provide a way to mixin for views in helper style CFCs into the view context. These helpers might be the HtmlHelperProperty, UdfHelperProperty or other CFC defined by a developer. We'll also need a mixin helper cfc that can pull into the request functions from a target CFC by explicit list or by reading CFC metadata.

Mixins shouldn't be mixed into the ViewContext as the mixins need to be hierarchical in nature (meaning parent modules are loaded first with mixins from the module second) and if we mix them into the ViewContext it will pollute the other methods in the context. We should use a ViewRender.cfm in which we can pass the mixin structure in by calling the ViewRender.cfm using cfmodule. The ViewRender.cfm is the file that actually uses cfinclude to execute the request view .cfm file.

Mixins should be a last one loaded wins when a namespace conflict occurs.

Attachments

Change History

Changed 10 months ago by peterfarrell

  • version changed from 1.8.0 - Framework to 1.9.0 - Framework
  • milestone changed from Mach-II 1.8.0 alpha to Mach-II 1.9.0 alpha

Re-targeted to 1.9 due to time considerations.

Changed 2 months ago by peterfarrell

  • cc kurtwiersma, mattwoodward, brianfitzgerald, adrianscott, mikerogers added
  • priority changed from critical to minor
  • version changed from 1.9.0 - Framework to Uncategorized - Framework
  • milestone changed from Mach-II 1.9.0 alpha to Uncategorized

Deferring to another version.

Add/Change #227 (Provide mixins for views)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.