Configuration XML question...

21 views
Skip to first unread message

Gavin Baumanis

unread,
May 13, 2013, 6:18:48 PM5/13/13
to mach-ii-for...@googlegroups.com
Hi again,
This is a quick on -honest!

In the event handler you have the following;
<view-page name="XXX" />
and then there is a page-views XML node.

I am assuming there is something I am missing... though initially it just seems like a redundant level of abstraction.

My question is why?

As always - thanks in advance!

- Gavin.

Dave Shuck

unread,
May 13, 2013, 6:33:22 PM5/13/13
to mach-ii-for...@googlegroups.com
They are not 1-to-1.  <page-view/> defines a view that can be used (and resused) throughout your application.  <view-page/> is simply a declaration that you are going to use that defined page.

Additionally, however, in most Mach-II applications that I wrote in recent years, I almost never actually used a single <page-view /> declaration thanks to the Pattern View Loader:  http://trac.mach-ii.com/machii/wiki/MachII1.8SpecificationViewLoaders



--
--
To post to this group, send email to mach-ii-for...@googlegroups.com
For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
 
New (July 2012): We've moved to GitHub: https://github.com/Mach-II/Mach-II-Framework
---
You received this message because you are subscribed to the Google Groups "Mach-II for CFML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mach-ii-for-coldf...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Peter J. Farrell

unread,
May 13, 2013, 6:37:54 PM5/13/13
to mach-ii-for...@googlegroups.com
Dave Shuck said the following on 05/13/2013 05:33 PM:
> Additionally, however, in most Mach-II applications that I wrote in
> recent years, I almost never actually used a single <page-view />
> declaration thanks to the Pattern View Loader:
> http://trac.mach-ii.com/machii/wiki/MachII1.8SpecificationViewLoaders
FYI, Trac will be shut down shortly. We've moved ALL documentation to
our GitHub wiki:

https://github.com/Mach-II/Mach-II-Framework/wiki/View-Loaders

--
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/

Gavin Baumanis

unread,
May 13, 2013, 8:12:59 PM5/13/13
to mach-ii-for...@googlegroups.com
Hi and thanks Dave,

Thanks for the information on View Loaders.
"I" am not a fan of convention-based coding...
I like to see what it is happening without ambiguity / having to work it out.

Mind you in this case it is a really easy "get" - so perhaps that's nothing worry about!

As for your statement that they're not 1 for 1...
I actually started writing a rebuttal - of how they are 1 for 1.
every page-view has a hard and fast link to view-page.
The fact that you can use page-view multiple times - doesn't make it not 1 for 1.

But then it finally dawned on me....
The benefit comes with refactoring.
In that you can alter the view-page, in one place - and all the view-page declarations (regardless of how many) get the new file and or path.

And with that thinking in mind, the view-loader makes really good sense to me, too....


Damn you Mach-II.... stop making so much sense!



To unsubscribe from this group and stop receiving emails from it, send an email to mach-ii-for-coldfusion+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages