New to the 'Glue

7 views
Skip to first unread message

codeGoddess

unread,
Jun 25, 2008, 4:32:26 PM6/25/08
to model-glue
I'm in the process of learning MG --and working through the
quickstarts. Is there any introductory advice --or wisdom that any of
you veterans have for somebody just starting out. The forehead
smacking 'gee I wish somebody had told me that to begin with!' kinds
of items?

Thanks for any advice you can share.

Best,
Jillian

Rich

unread,
Jun 25, 2008, 5:15:32 PM6/25/08
to model...@googlegroups.com
I'm a long time CF'er but only a year or two along with the whole OO
thing.... so depending on where you are in your skillset....

I found Doug Boude's blogs to be VERY helpful. Also, nodans has some
really good tutorials. Ray Camden has some good stuff but it's pretty
old now..... and above all absolutely learn about ORM and Transfer. It's
wicked cool and quick. This MG Google group is very good but the
Transfer group is unbelievable.

Doug Boude actually did a preso to a Kansas City CFUG where he went over
building a MG app, and that personally tied a lot of loose ends together
for me, especially regarding the MVC way of thinking.

Hope this helps,

Good luck!

Rich

Doug Sims

unread,
Jun 25, 2008, 5:40:43 PM6/25/08
to model...@googlegroups.com
You can view Dr. Boude's presentation ON UGTV here :
http://www.carehart.org/ugtv/list.cfm?search=boude

Doug S.

Doug Boude

unread,
Jun 25, 2008, 5:43:15 PM6/25/08
to model...@googlegroups.com
Why, thank you Mr. Sims for sharing the link. :)
 
P.S. Where you been, big guy? Miss you... :)

Nando

unread,
Jun 25, 2008, 5:55:30 PM6/25/08
to model...@googlegroups.com
Find the API's in the MG documentation, print them out, keep them handy next to your keyboard. Once you're a little familiar with how it works through the Quickstart, the "cheatsheet" will be all you need to guide you. If attachments work to the list, here's mine to start with, although it's still missing the XML.
--

Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
+41 76 303 4477
na...@carbonzero.ch
MG_CheatSheet.pdf

James Allen

unread,
Jun 26, 2008, 6:16:25 AM6/26/08
to model...@googlegroups.com

What a great contribution Nando!

 

Thanks for sending that…Great alternative to the online docs..

Adam Tuttle

unread,
Jun 26, 2008, 9:13:07 AM6/26/08
to model...@googlegroups.com
Having learned ColdSpring and Model-Glue both within the last year, I would recommend getting *just* deep enough into Model-Glue to get yourself confused, then watch Mark Drew's ColdSpring presentation (http://partners.adobe.acrobat.com/p37989763/ -- this was recorded at CFUnited this year) and try to figure that bit out -- do it the "hard" way (which is still pretty damn easy) first: no autowiring, etc -- and then go back to Model-Glue. That's sort of the process that I took, and I think it worked out really well for me.

Adam

Adam Tuttle

unread,
Jun 26, 2008, 10:13:05 AM6/26/08
to model...@googlegroups.com
I have to agree with James -- That's a great contribution, and it's much appreciated!

Because I'm super anal, I took a minute to format it to be a little more readable, and fit it onto two pages (I've printed it out as front and back on one page).

I've posted it on my blog, here: http://tuttletree.com/nerdblog/?p=107

Feedback is welcome and appreciated!

Regards,
Adam

On Thu, Jun 26, 2008 at 6:16 AM, James Allen <sling...@googlemail.com> wrote:

Nando

unread,
Jun 26, 2008, 10:23:50 AM6/26/08
to model...@googlegroups.com
That's great! ... On the topic of anal, do you want to add the XML language definitions as well? ;-)

Adam Tuttle

unread,
Jun 26, 2008, 10:59:51 AM6/26/08
to model...@googlegroups.com
Meaning the syntax for ModelGlue.xml?

Rich

unread,
Jun 26, 2008, 11:11:42 AM6/26/08
to model...@googlegroups.com
... actually, it's been on my to-do list for a while now but things are
just so busy....

Where I get confused (remember, I'm still a noob) and what would be
helpful is a list of all the available function/method calls labeled to
the view/model, and to the controller
(#arguments.event.getValue("firstname")# vs.
#viewstate.getValue("qEstimateList")#)... stuff like getAll() and
getAllValues().... I'm always getting those confused (where I'm able to
use them). Was hoping to not only generate some cool docs to help me
with this but maybe implement a psuedo schema or DTD or .mxp (yes, I'm a
Dreamweaver code guy but will use Eclipse from time to time....)

According to my schedule I should have time to do this, oh, I'd say, in
August. Of 2010. ;-) Seriously, thanks for your efforts, every thing
helps and keeps me productive and I'm super grateful for everything you
guys do!

Rich


Adam Tuttle wrote:
> Meaning the syntax for ModelGlue.xml?
>
> On Thu, Jun 26, 2008 at 10:23 AM, Nando <d.n...@gmail.com
> <mailto:d.n...@gmail.com>> wrote:
>
> That's great! ... On the topic of anal, do you want to add the XML
> language definitions as well? ;-)
>
>
> On Thu, Jun 26, 2008 at 4:13 PM, Adam Tuttle
> <j.adam...@gmail.com <mailto:j.adam...@gmail.com>> wrote:
>
> I have to agree with James -- That's a great contribution, and
> it's much appreciated!
>
> Because I'm super anal, I took a minute to format it to be a
> little more readable, and fit it onto two pages (I've printed
> it out as front and back on one page).
>
> I've posted it on my blog, here:
> http://tuttletree.com/nerdblog/?p=107
>
> Feedback is welcome and appreciated!
>
> Regards,
> Adam
>
> On Thu, Jun 26, 2008 at 6:16 AM, James Allen
> <sling...@googlemail.com

> <mailto:sling...@googlemail.com>> wrote:
>
> What a great contribution Nando!
>
>
>
> Thanks for sending that…Great alternative to the online docs..
>
>
>

> *From:* model...@googlegroups.com
> <mailto:model...@googlegroups.com>
> [mailto:model...@googlegroups.com
> <mailto:model...@googlegroups.com>] *On Behalf Of *Nando
> *Sent:* 25 June 2008 22:56
> *To:* model...@googlegroups.com
> <mailto:model...@googlegroups.com>
> *Subject:* Re: New to the 'Glue


>
>
>
> Find the API's in the MG documentation, print them out,
> keep them handy next to your keyboard. Once you're a
> little familiar with how it works through the Quickstart,
> the "cheatsheet" will be all you need to guide you. If
> attachments work to the list, here's mine to start with,
> although it's still missing the XML.
>
> On Wed, Jun 25, 2008 at 10:32 PM, codeGoddess
> <jillian...@gmail.com

Nando

unread,
Jun 26, 2008, 11:46:20 AM6/26/08
to model...@googlegroups.com
Yes. I grabbed the text for you. It's in the attached RTF about halfway down under - Model-Glue XML Reference

It should be proof read tho'!

Nando
ModelGlue Cheatsheet.rtf

Adam Tuttle

unread,
Jun 27, 2008, 10:08:56 AM6/27/08
to model...@googlegroups.com
I was thinking that instead of trying to write all of that out, it might be simpler to just have a complete modelglue.xml example that shows usage of all tags. I've started it here, but having not used scaffolding myself, (and I don't see it well documented) I'm not sure what more can be done inside there. If someone could fill in the gaps, I'll be happy to add it to my document.


Model Glue XML Reference

Where applicable, attribute values are set to their default value (highlighted in green). Required attributes are highlighted in yellow.

<modelglue>

 

  <config><!-- config section is only for legacy code support -->

    <setting name="someSetting" value="someValue"/>

  </config>

 

  <include template="Other.xml"/>

 

  <controllers>

    <controller name="myController" type="path.to.myController">

      <message-listener message="needSomeData" function="getSomeData"/>

    </controller>

  </controllers>

 

  <event-handlers>

 

    <scaffold object="someTable" type="list,view,edit,commit,delete">

      <broadcasts/>

      <results/>

      <views/>

    </scaffold>

 

    <event-handler name="someEvent">

 

      <broadcasts>

        <message name="needSomeData">

          <argument name="foo" value="bar"/>

        </message>

      </broadcasts>

 

      <results>

        <result name="someResult" redirect="false" do="someOtherEvent"

          append="someEventVar" preserveState="true" reset="false"/>

      </results>

 

      <views>

        <include name="body" template="someEvent.cfm" append="false"/>

      </views>

 

    </event-handler>

 

  </event-handlers>

 

</modelglue>

Reply all
Reply to author
Forward
0 new messages