Whoops, I guess I should have said something, but I thought it was
just me being forgetful--

You need the scaffold tags *outside* the event-handlers block, as the
code is written now.

The xpath was something like /modelglue/scaffolds, not
/modelglue/event-handlers/scaffolds/

I'm guessing that's what's going on, but I just read this thread real fast.

-- 
The three great elements of modern civilization, Gun powder, Printing,
and the Protestant religion.
Thomas Carlyle

On Wed, Jul 22, 2009 at 11:10 AM, Gareth Cole<[email protected]> wrote:
> Hi Dan,
>
> I've attached my ModelGlue.xml file. The only change to default is the
> addition of a <scaffold> tag.
>
> The xml in my modelglue.xml file has a completely different set of
> <event-handler> tags to the xml the xmlmoduleloader.cfc is searching. Maybe
> it's loaded the wrong xml file for this part?
>
> Thanks,
>
> Gareth
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Dan Wilson
> Sent: 22 July 2009 17:54
> To: [email protected]
> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>
>
> Pardon me, but that is too much text to read on my blackberry.
>
>
> If the scaffold blocks array is empty, you've misconfigured your
> scaffolds, or I misprogrammed the feature.
>
> Maybe you should post your model glue xml file and someone can have a look?
>
>
> Dan
>
> On 7/22/09, Gareth Cole <[email protected]> wrote:
>>
>> The scaffoldBlocks is an empty array.
>>
>> I dumped the xml searched on, and got this:
>>
>>
>> <modelglue>
>>
>> <controllers>
>>       <controller beans="modelglue.HelperInjector"
>> id="modelglueinternal.initializationController"
>>
> type="ModelGlue.gesture.modules.internal.initialization.controller.Initializ
>> ationController">
>>               <message-listener function="loadFrameworkIntoScope"
>> message="modelglue.loadFrameworkIntoScope"/>
>>               <message-listener function="loadHelpers"
>> message="modelglue.onApplicationStoredInScope"/>
>>       </controller>
>> </controllers>
>>
>> <event-handlers>
>>       <event-handler name="modelglue.onApplicationInitialization">
>>               <broadcasts>
>>                       <message name="modelglue.loadFrameworkIntoScope"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onApplicationStoredInScope">
>>               <broadcasts>
>>                       <message
>> name="modelglue.onApplicationStoredInScope"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onApplicationStart">
>>               <broadcasts>
>>                       <message name="onApplicationStart"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onSessionStartPreRequest">
>>               <broadcasts>
>>                       <message name="onSessionStartPreRequest"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onSessionStart">
>>               <broadcasts>
>>                       <message name="onSessionStart"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onSessionEnd">
>>               <broadcasts>
>>                       <message name="onSessionEnd"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onRequestStart">
>>               <broadcasts>
>>                       <message name="onRequestStart"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onRequestEnd">
>>               <broadcasts>
>>                       <message name="onRequestEnd"/>
>>               </broadcasts>
>>       </event-handler>
>>       <event-handler name="modelglue.onQueueComplete">
>>               <broadcasts>
>>                       <message name="onQueueComplete"/>
>>               </broadcasts>
>>       </event-handler>
>> </event-handlers>
>>
>> </modelglue>
>>
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On
>> Behalf Of Dan Wilson
>> Sent: 22 July 2009 17:26
>> To: [email protected]
>> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>>
>>
>> Put a dump/abort on like 63 of
>> modelglue.gesture.module.xmlmoduleloader.cfc and dump the value of
>> scaffoldblocks.
>>
>> What happens?
>>
>> On 7/22/09, Gareth Cole <[email protected]> wrote:
>>>
>>> http://svn.model-glue.com
>>>
>>> -----Original Message-----
>>> From: [email protected] [mailto:[email protected]] On
>>> Behalf Of Dan Wilson
>>> Sent: 22 July 2009 17:19
>>> To: [email protected]
>>> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>>>
>>>
>>> What svn server are you using?
>>>
>>> On 7/22/09, Gareth Cole <[email protected]> wrote:
>>>>
>>>> Hi Dan,
>>>>
>>>> Thanks for offering to help. I suspect I've been looking at the wrong
>> code
>>>> for scaffolds.
>>>>
>>>> I was struggling to turn this on with an existing project yesterday, so
> I
>>>> downloaded the latest code from svn today, and tried a clean sample
>>> project.
>>>>
>>>> I used the instructions from the wiki for setting up scaffolding, which
>>> seem
>>>> to the same as for MG2. Just nothing happens...
>>>>
>>>> The GDMs work fine, and I've scaffolding turned on in coldspring.xml. I
>>> add
>>>> <scaffold> tags to the modelglue.xml file, but that's as far as it gets.
>>>>
>>>> Thanks
>>>>
>>>> -----Original Message-----
>>>> From: [email protected] [mailto:[email protected]]
> On
>>>> Behalf Of Dan Wilson
>>>> Sent: 22 July 2009 16:59
>>>> To: [email protected]
>>>> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>>>>
>>>>
>>>> Scaffolding is implemented in mg3. Do you have a recent version?
>>>>
>>>> Have you enabled scaffolding in your coldspring.xml?
>>>>
>>>>
>>>> I'm on a client site right now and am typing this to you on my phone.
>>>> This means I can't be much direct help now, but i'll help you look
>>>> into this later.
>>>>
>>>> In short, mg3 has scaffolding support and there have even been new
>>>> features added. I can give you more specifics later, but I don't think
>>>> the scaffolds controller is involved.
>>>>
>>>>
>>>> Dan
>>>>
>>>> On 7/22/09, Gareth Cole <[email protected]> wrote:
>>>>>
>>>>> OK. I'm a bit more confused with this now.
>>>>>
>>>>> I figured out that editing the ModelGlueConfiguration.xml file and
>> adding
>>>>>
>> <value>/ModelGlue/gesture/modules/scaffold/config/scaffolding.xml</value>
>>>>> to the requestPhases property gets the generateScaffolds() in the
>>>>> ScaffoldController.cfc going.
>>>>>
>>>>> The trouble now, is that generateScaffolds() doesn't generate
> scaffolds.
>>>> It
>>>>> looks the same as the generateEvent() function in
>>>> GenerationController.cfc.
>>>>> It's starting to look like the feature hasn't been fully implemented.
>>>>>
>>>>> I'd appreciate it if someone can tell me how they got scaffolding
>> working
>>>> in
>>>>> MG3?
>>>>>
>>>>> I used the scaffolding extensively in my previous MG2 projects, as it
>>>> saved
>>>>> me a lot of development time. I'd hoped to use them with MG3, but I'm
>>>>> running out of time trying to get this working.
>>>>>
>>>>> If there's still development to be done on scaffolding in MG3, I'll
>>>> happily
>>>>> work on this, if someone can explain how it should be implmented.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Gareth
>>>>>
>>>>> -----Original Message-----
>>>>> From: [email protected] [mailto:[email protected]]
>> On
>>>>> Behalf Of Chris Blackwell
>>>>> Sent: 22 July 2009 14:03
>>>>> To: [email protected]
>>>>> Cc: <[email protected]>
>>>>> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>>>>>
>>>>>
>>>>> is scaffolding now in trunk, or is it still just in the scaffold
>>>>> branch in svn?
>>>>>
>>>>> chris
>>>>>
>>>>>
>>>>> On 22 Jul 2009, at 13:46, "Gareth Cole" <[email protected]> wrote:
>>>>>
>>>>>>
>>>>>> I checked that and it's fine.
>>>>>>
>>>>>> I've been trying to dig into this, but it's a bit hard to figure out
>>>>>> what
>>>>>> should be happening.
>>>>>>
>>>>>> I know that the function generateScaffolds() isn't being called in
>>>>>> /ModelGlue/gesture/modules/scaffold/controller/ScaffoldController.cfc
>>>>>> This is despite it being set to listen for the
>>>>>> 'modelglue.modulesLoaded'
>>>>>> message in /ModelGlue/gesture/modules/scaffold/config/scaffolding.xml
>>>>>>
>>>>>> I know that the 'modelglue.modulesLoaded' message has been broadcast
>>>>>> from
>>>>>> the debug output.
>>>>>>
>>>>>> My guess is that the file
>>>>>> /ModelGlue/gesture/modules/scaffold/config/scaffolding.xml hasn't been
>>>>>> loaded, but I'm not sure where that should have been set.
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: [email protected] [mailto:model-
>>>>>> [email protected]] On
>>>>>> Behalf Of Sean Coyne
>>>>>> Sent: 22 July 2009 12:56
>>>>>> To: model-glue
>>>>>> Subject: [Model-Glue] Re: Scaffolding not working in MG3
>>>>>>
>>>>>>
>>>>>> make sure your <scaffold> tag is within the <event-handlers> block
>>>>>>
>>>>>> On Jul 22, 7:00 am, "Gareth Cole" <[email protected]> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm not sure if I'm missing something obvious, but I can't get
>>>>>>> scaffolding
>>>>>>> to work in MG3. I add <scaffold object="MyObj" /> tags to my
>>>>>>> modelglue.xml
>>>>>>> file, but nothing gets generated. No error messages or anything else.
>>>>>>>
>>>>>>> I've got GDMs working fine and I've got the latest version of model-
>>>>>>> glue
>>>>>>> from svn. I can see that there's scaffolding code in there, but I
>>>>>>> can't
>>>>>>> figure out why nothing is generated. I've configured the scaffolding
>>>>>>> sections of coldspring.xml. Is there anything else I need to set?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Gareth
>>>>>>
>>>>>>
>>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>
>>>>
>>>> --
>>>> "Come to the edge, he said. They said: We are afraid. Come to the
>>>> edge, he said. They came. He pushed them and they flew."
>>>>
>>>>  Guillaume Apollinaire quotes
>>>>
>>>>
>>>>
>>>> >
>>>>
>>>
>>>
>>> --
>>> "Come to the edge, he said. They said: We are afraid. Come to the
>>> edge, he said. They came. He pushed them and they flew."
>>>
>>>  Guillaume Apollinaire quotes
>>>
>>>
>>>
>>> >
>>>
>>
>>
>> --
>> "Come to the edge, he said. They said: We are afraid. Come to the
>> edge, he said. They came. He pushed them and they flew."
>>
>>  Guillaume Apollinaire quotes
>>
>>
>>
>> >
>>
>
>
> --
> "Come to the edge, he said. They said: We are afraid. Come to the
> edge, he said. They came. He pushed them and they flew."
>
>  Guillaume Apollinaire quotes
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to