Google Groups Home
Help | Sign in
what's new in 2.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
<jorge_loyo>  
View profile
 More options May 5, 12:27 pm
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Mon, 5 May 2008 09:27:12 -0700 (PDT)
Local: Mon, May 5 2008 12:27 pm
Subject: what's new in 2.0
I was not able to attend cfobjective, but I kept checking out
different blogs and this group to get an idea of what was discussed
for Mach-II. This morning I read the "Whats new" PDF on the M2 site
and read a little about what is to be expected for v2.0

Excuse my ignorance, but what exactly does it mean "including
listeners and page views by convention". Sounds interesting and it
would sound even better if I knew what it actually meant :-)

I hope I can make it next year, but this year was impossible.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 5, 3:54 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Mon, 05 May 2008 14:54:46 -0500
Local: Mon, May 5 2008 3:54 pm
Subject: Re: [Mach-II] what's new in 2.0
The list of features for 2.0 is just tentative, not set in stone -- just
ideas we have floating around.

Page-views by convention would let you use a page-view loader (bundled
with the framework, or write your own).  This would let you do:

<page-views>
    <page-view name="products.index" page="/views/products/index.cfm"/>
    <page-view name="products.widgetA" page="/views/products/widgetsA.cfm"/>
    <page-view name="products.widgetB" page="/views/products/widgetsB.cfm"/>
    <page-view name="products.widgetC"
page="/views/products/widgetsC.cfm"/>
    <page-view name="home" page="/views/home.cfm"/>
</page-views>

To this:
<page-views loader="MachII.framework.PageViewLoader" rootPath="/views" />

It would use the directories and file names to build a "dot-style" path
for the page-view names. Basically, it would load pages by using the
path metadata to build useful page-view names.  Also, if you have a
different convention then the bundled loaders, you could write your own
loader.

.pjf

<jorge_loyo> said the following on 5/5/2008 11:27 AM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
<jorge_loyo>  
View profile
 More options May 5, 5:47 pm
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Mon, 5 May 2008 14:47:47 -0700 (PDT)
Local: Mon, May 5 2008 5:47 pm
Subject: Re: what's new in 2.0
very nice... I like this a lot. page-views & listeners sections would
definitely be a lot more compact.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 5, 6:00 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Mon, 05 May 2008 17:00:18 -0500
Local: Mon, May 5 2008 6:00 pm
Subject: Re: [Mach-II] Re: what's new in 2.0
<jorge_loyo> said the following on 5/5/2008 4:47 PM:
> very nice... I like this a lot. page-views & listeners sections would
> definitely be a lot more compact.

More than likely we will let use some sort of ANT-style path selectors
so it's not just an all for one effort and allows you some granularity.  
This is pseudo XML:

<page-views>
    <page-view-loader type="MachII.framework.PageViewLoader"
path="/views/products/**/*.cfm" nameBase="products" />
</page-views>

This would produce page-views at runtime that would be represented like
this:
<page-view name="products.index" page="/views/products/index.cfm"/>
<page-view name="products.widgetA" page="/views/products/widgetsA.cfm"/>
<page-view name="products.widgetB" page="/views/products/widgetsB.cfm"/>

You could define multiple loaders if needed.

.Peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
<jorge_loyo>  
View profile
 More options May 5, 6:13 pm
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Mon, 5 May 2008 15:13:49 -0700 (PDT)
Local: Mon, May 5 2008 6:13 pm
Subject: Re: what's new in 2.0
Right now, I have 34 folders inside my "/views" folder (large app)...
so this would be a very nice addition.

Were you guys considering giving the option of:

<page-views loader="MachII.framework.PageViewLoader" rootPath="/
views" />

and something like:

<page-views>
   <page-view-loader type="MachII.framework.PageViewLoader" path="/
views/products/**/*.cfm" nameBase="products" />
</page-views>

Or one or the other?

If M2 created a dot-notation path to the files I would prefer to use
the first option. In what cases would you prefer to use the second
option? Seems like, if I decided to use it, I would define each of my
34 sub-folders with their corresponding "nameBase".


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Meloche  
View profile
 More options May 5, 7:42 pm
From: "Brian Meloche" <brianmelo...@gmail.com>
Date: Mon, 5 May 2008 18:42:08 -0500
Local: Mon, May 5 2008 7:42 pm
Subject: Re: [Mach-II] Re: what's new in 2.0

I love it (as you already knew, Peter).  Default paths!  Anything to reduce
the amount of repetitive declarations and redundant code in the mach-ii.xml,
so long as it doesn't add significant load times, is exactly what I want to
see.  It would be nice when a team of developers is working on a project to
be able to reduce the number of changes required to the config file(s)
during development.  This will do that.  Obviously, you still have to add
the event-handlers, but it will be less work with these page-views and
listeners by convention features.

On Mon, May 5, 2008 at 5:13 PM, <jorge_loyo> <jorgeloyo.accou...@gmail.com>
wrote:

--
Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Blog:  http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Pownce:  http://pownce.com/bmeloche
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org
Co-Manager,
Cleveland Adobe Users Group,
http://www.clevelandmmug.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 5, 7:55 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Mon, 05 May 2008 18:55:19 -0500
Local: Mon, May 5 2008 7:55 pm
Subject: Re: [Mach-II] Re: what's new in 2.0

Good to know Brian (as I already knew ;-).

Surprised that nobody has mentioned anything about custom SES handlers
(i.e. custom SES urls instead of the default /key/value/ system that
Mach-II 1.5+ offers)?  I'm curious if anybody would use this?

.Peter

Brian Meloche said the following on 5/5/2008 6:42 PM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zack Pitts  
View profile
 More options May 5, 8:18 pm
From: "Zack Pitts" <folkstr...@hotmail.com>
Date: Mon, 5 May 2008 17:18:52 -0700
Local: Mon, May 5 2008 8:18 pm
Subject: RE: [Mach-II] Re: what's new in 2.0

Our non-Mach-II CMS uses ISAPI Rewrite to translate content-rich URLs into
usable ColdFusion variables, so we would have to create a custom handler if
we redesigned the CMS for Mach-II.  It would be nice to have some custom
options built in.

Perhaps we could have a way to override the buildUrl() methods to implement
our own custom handlers?  That would be really, really great.  If this is
already possible without modifying the framework core files, please let me
know.

Thanks,

Zack

From: mach-ii-for-coldfusion@googlegroups.com
[mailto:mach-ii-for-coldfusion@googlegroups.com] On Behalf Of Peter J.
Farrell
Sent: Monday, May 05, 2008 4:55 PM
To: mach-ii-for-coldfusion@googlegroups.com
Subject: [Mach-II] Re: what's new in 2.0

Good to know Brian (as I already knew ;-).

Surprised that nobody has mentioned anything about custom SES handlers (i.e.
custom SES urls instead of the default /key/value/ system that Mach-II 1.5+
offers)?  I'm curious if anybody would use this?

Peter

Brian Meloche said the following on 5/5/2008 6:42 PM:

I love it (as you already knew, Peter).  Default paths!  Anything to reduce
the amount of repetitive declarations and redundant code in the mach-ii.xml,
so long as it doesn't add significant load times, is exactly what I want to
see.  It would be nice when a team of developers is working on a project to
be able to reduce the number of changes required to the config file(s)
during development.  This will do that.  Obviously, you still have to add
the event-handlers, but it will be less work with these page-views and
listeners by convention features.

On Mon, May 5, 2008 at 5:13 PM, <jorge_loyo> <jorgeloyo.accou...@gmail.com>
wrote:

Right now, I have 34 folders inside my "/views" folder (large app)...
so this would be a very nice addition.

Were you guys considering giving the option of:

<page-views loader="MachII.framework.PageViewLoader" rootPath="/
views" />

and something like:

<page-views>
  <page-view-loader type="MachII.framework.PageViewLoader" path="/
views/products/**/*.cfm" nameBase="products" />
</page-views>

Or one or the other?

If M2 created a dot-notation path to the files I would prefer to use
the first option. In what cases would you prefer to use the second
option? Seems like, if I decided to use it, I would define each of my
34 sub-folders with their corresponding "nameBase".

--
Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Blog:  http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Pownce:  http://pownce.com/bmeloche
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org
Co-Manager,
Cleveland Adobe Users Group,
http://www.clevelandmmug.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 5, 8:28 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Mon, 05 May 2008 19:28:58 -0500
Local: Mon, May 5 2008 8:28 pm
Subject: Re: [Mach-II] Re: what's new in 2.0

Zack Pitts said the following on 5/5/2008 7:18 PM:

> Our non-Mach-II CMS uses ISAPI Rewrite to translate content-rich URLs
> into usable ColdFusion variables, so we would have to create a custom
> handler if we redesigned the CMS for Mach-II.  It would be nice to
> have some custom options built in.

> Perhaps we could have a way to override the buildUrl() methods to
> implement our own custom handlers?  That would be really, really
> great.  If this is already possible without modifying the framework
> core files, please let me know.

Currently there is not a way to override the BuildUrl() method.  We were
thinking that BuildUrl() wouldn't need to be modified in the terms of
API of that function, but be able to build a different type of URL
(based of the event and module name).  Mach-II would select which
builder to use based criteria.  Examples to come on how I envision this
will be implemented when I have a more concrete example for you.

.pjf


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
<jorge_loyo>  
View profile
 More options May 6, 10:19 am
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Tue, 6 May 2008 07:19:23 -0700 (PDT)
Local: Tues, May 6 2008 10:19 am
Subject: Re: what's new in 2.0
"Surprised that nobody has mentioned anything about custom SES
handlers (i.e. custom SES urls instead of the default /key/value/
system that Mach-II 1.5+ offers)?  I'm curious if anybody would use
this?"

I would definitely be interested in seeing some examples of what this
could potentially do.

We ran a few tests with our application, for example:

http://dev.app.com/showproduct_product-1001.html

We omit the "index.cfm" and we use the key/value pairs as a fake html
page "showproduct_product-1001.html". Then we change the default IIS
404 handler page to be "http://dev.app.com?event=parse404". This event-
handler calls a filter that strips the first item in the list and uses
it as the desired event and the rest of the items are used as the
event arguments to be used. This filter then announces the desired
event.

<event-handler event="parse404" access="public">
    <filter name="404Filter"/>
</event-handler>

<event-handler event="showproduct" access="public">
    <notify listener="productListener" method="getProduct"
resultArg="product" />
    <view-page name="productForm" />
</event-handler>

I would like to see what "custom SES urls" include. very exciting...
very very exciting.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kyle Hayes  
View profile
 More options May 6, 11:20 am
From: Kyle Hayes <mrkyleha...@gmail.com>
Date: Tue, 6 May 2008 08:20:17 -0700 (PDT)
Local: Tues, May 6 2008 11:20 am
Subject: Re: what's new in 2.0
Jorge, if I understand you correctly, you think that the current 1.5+
setup is not custom, but actually, it is:
<property name="urlParseSES" value="true" />
<property name="urlDelimiters" value="/|/|/" />

The urlDelimiters property is separated by the pipe, so you can
customize the what characters are used for the separate of attributes.

On May 6, 7:19 am, "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.