Yes, you could use it like that but... I wouldn't do it because I really don't 
like to see view's code inside my CFCs.

João Fernandes

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Kevin Roche
Sent: Wed 26-Jul-06 11:18 PM
To: [email protected]
Subject: RE: [Reactor for CF] Reactor PlugIns Documentation
 
João,

In the example.base.xsl file I see the following.....

<cfcomponent hint="I am the database agnostic custom Example object for
the <xsl:value-of select="object/@alias"/> object.  I am generated, but not
overwritten if I exist.  You are safe to edit me."
        extends="reactor.project.<xsl:value-of
select="object/@project"/>.plugins.example.<xsl:value-of
select="object/@alias"/>Example" &gt;
        &lt;!--- Place custom code here, it will not be overwritten ---&gt;
&lt;/cfcomponent&gt;

This looks to me like it defines everything not just the body of the CFC.

I could perhaps write .....

&lt;cfoutput&gt;
        &lt;form name="<xsl:value-of select="object/@alias"/>"
onsubmit="return checkform(this);" action="#request.self#" method="post"&gt;
        &lt;table&gt;
                &lt;tr>
                        &lt;th&gt;
                        &lt;cfif
ListFindNocase(highlightfields,'<xsl:value-of select="object/@alias"/>')&gt;
                                &lt;font
color='##FF0000'&gt;<strong&gt;<xsl:value-of select="object/@alias"/>
*&lt;/strong&gt;&lt;/font&gt;
                        &lt;cfelse>
                                <xsl:value-of select="object/@alias"/> *
                        &lt;/cfif&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                                &lt;input type="Text" name="CategoryName"
size="30" maxlength="50" value="#trim(variables.CategoryName)#" /&gt;
                        &lt;/td&gt;
                &lt;/tr&gt;       and so on.........

And I could generate a form into which I could enter data. (I have no idea
where reactor would put it!)

Some further templates could be used for the circuit files and "Bobs your
uncle!" as we say here in the UK.

Kevin 


-----Original Message-----
From: João Fernandes [mailto:[EMAIL PROTECTED] Behalf Of
João Fernandes
Sent: 26 July 2006 23:00
To: [email protected]
Subject: RE: [Reactor for CF] Reactor PlugIns Documentation


It depends,

createPlugin function will ALWAYS return a CFC instance. If you want to
generate any other kind of files you'll have to extend the reactorFactory
and use it to do that job.

when I use 

<cfset myplugin = reactorFactory.createPlugin("mytable","fds")>
I'll have a cfc instance which will have my specific functions for
"mytable".
The generated code can be what you want, just put it in your xsl file (look
at those used by reactor to understand what can be done).

João Fernandes

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Kevin Roche
Sent: Wed 26-Jul-06 10:51 PM
To: [email protected]
Subject: RE: [Reactor for CF] Reactor PlugIns Documentation
 
Thanks João.

So could I use the plugins facility to create some objects that would talk
to Flex for example? Or even to create some AS3 code for a Flex Model?

Kevin

-----Original Message-----
From: João Fernandes [mailto:[EMAIL PROTECTED] Behalf Of
João Fernandes
Sent: 26 July 2006 21:07
To: [email protected]
Subject: RE: [Reactor for CF] Reactor PlugIns Documentation



Noup,

He's asking about the plugin feature inside reactor, he wants to know more
about it.

@Teddy: 
plugins were created to generate custom cfc instances just like the DAO's
Records gateways...
They are not to generate views and stuff like that, for that extend the
reactorFactory and use getXML() for your object to generate your files.
I'm using both, a FDS generator for AS3 managed classes,destinations xml
config files, cfc Assemblers and a plugin to load my TO's instances and
their lazy related objects.

 João Fernandes 

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Teddy Payne
Sent: Wed 26-Jul-06 8:46 PM
To: [email protected]
Subject: Re: [Reactor for CF] Reactor PlugIns Documentation
 
Kevin,
I am doing rather well actually.  Thanks for asking! =) Atlanta too is quite
hot.

Are you referring to Reactor as the plugin?

Teddy

On 7/26/06, Kevin Roche <[EMAIL PROTECTED]> wrote:
>
>  Teddy,
>
> Good to hear from you. (OT How is Atlanta? The weather in the UK is really
> screwy, very hot!)
>
> I see that there is a plugins directory and was wondering what could be
> done with plugins. What features can be added to the application with a
> plugin?
>
> I have built a code generator which creates a complete fusebox 4
> application to maintain a table. It was built a long time ago and runs
under
> CF5, CFMX and with FB3 or FB4. It needs some upgrading and I plan to use
> reactor instead of my code to create the CFCs, since the Reactor CFCs are
> more comprehensive than mine and compatible with ColdSpring.
>
> My plan is to create a scaffolding tool using some of the code but I
> wanted to know the full capabilities of the plugin in case i could use it
to
> generate my dsp_ and circuit files too.
>
> Kevin
>
> -----Original Message-----
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of *Teddy Payne
> *Sent:* 26 July 2006 20:26
> *To:* [email protected]
> *Subject:* Re: [Reactor for CF] Reactor PlugIns Documentation
>
> Kevin,
> Good to hear from you.  What type of plug-ins are you referring to?
> Plug-ins to support other databases?
>
> Teddy
>
>
>
> On 7/26/06, Kevin Roche < [EMAIL PROTECTED]> wrote:
> >
> > Is there any documentation (or blog entries or old mail....) which shows
> > how
> > to create reactor plugIns ?
> >
> > Kevin Roche
> >
> >
> >
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- -- --
> > Reactor for ColdFusion Mailing List
> > [email protected]
> > Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- -- --
> >
> >
>
>
> --
> <cf_payne />
> http://cfpayne.wordpress.com/
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>



-- 
<cf_payne />
http://cfpayne.wordpress.com/


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

<<winmail.dat>>

Reply via email to