Re: Splitting UI and Data

2007-10-16 Thread Morten Kruse
I got a little interested in this one

fuseaction name=showProduct
  set name=product value=#application.productService.getProductByID(
attributes.productID )# /
  include template=dspProduct /
/fuseaction


How is the application.productService.getProductBy(IDattributes.productID )# 
defined?
I think that the productService is setup omehow.


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291178
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Splitting UI and Data

2007-10-11 Thread Morten Kruse
Yes, I'm glad that all of you convinced me to carry on with Fusebox. I have 
just seen the light. it was a hard start. Maybe because I had install Fusebox 
5.1 and the tutorial was written for Fusebox4. But when I got it to work it was 
very nice.
I very much like the way that the fuse action is setup and the exit parameter 
is defined. Top nice. I’m about to run a tutorial about database and later on 
the MVC.


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290874
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Splitting UI and Data

2007-10-10 Thread Morten Kruse
I think I would like to use some kind og MVC (Model-View-Controler). But I 
don't want to use a standard framework like fusebox. I think that it is too 
complex for my porpose.
Instead I will have a controler that calls the data and apply it to the View. 
But I don't know how this should be programmed.

Just like you mentioned
 
 To make this basic though you would call the method of your data 
 retrieval as part of your controller, then use the return (a query I 
 assume?) to populate your view.

But how to program this? Any one that can schetch this for me?

Controller.cfm
cfinvoke component=Foods method=getFood returnvariable=retGetFood /  
--- Get the data ---
!--- But how to pass this to the viewFood.cfm ?? ---

Any Ideas?




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290735
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Splitting UI and Data

2007-10-10 Thread Rich
 I think I would like to use some kind og MVC (Model-View-Controler). But I
 don't want to use a standard framework like fusebox. I think that it is
 too complex for my porpose.

If you are planning on using MVC I would strongly suggest using an existing
framework (Mach-ii, Model-Glue, FuseBox).  With the large quantity of
tutorials available you can get up to speed quickly on your chosen
framework.  If you are new to MVC and OO development, using an existing
framework will guide you toward best practice development.  

The learning curve necessary to roll your own MVC framework will be so steep
as to be almost impossible.  Also remember that there is a large amount of
community support, which translates into a large support system for the
inevitable questions that will come up.

HTH,
Rich Kroll


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290742
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Splitting UI and Data

2007-10-10 Thread Tom Chiverton
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote:
 I think I would like to use some kind og MVC (Model-View-Controler). But I
 don't want to use a standard framework like fusebox. I think that it is too
 complex for my porpose. 

You don't have to use all the complicated bits of it :-)

 Instead I will have a controler that calls the data 
 and apply it to the View. But I don't know how this should be programmed.

Then I suggest you pick and off the shelf standard framework. You can always 
customise it if you like, but it'll make working with other developers so 
much easier.
And you'll be running in no time, without having built a new wheel. Again.

-- 
Tom Chiverton
Helping to administratively bully sticky features
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290739
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Splitting UI and Data

2007-10-10 Thread Morten Kruse
I do think that I will program it by myself. I like to be in controle.
This Best practice from Benorama looks very good.
http://www.benorama.com/coldfusion/index.htm
Therfore I think that I will try this first.
If everything fails with that I will use Fusebox.
But I do not like it. Maby if I get more into it I will.
Any one that have any expirence? 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290750
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Splitting UI and Data

2007-10-10 Thread Brian Kotek
Er, you think THAT is less complicated than Fusebox?

Look, I know the frameworks can seem daunting at first, but they really
aren't. In fusebox, what you're asking about can be done as simply as:

fuseaction name=showProduct
  set name=product value=#application.productService.getProductByID(
attributes.productID )# /
  include template=dspProduct /
/fuseaction

And then the query or object named product is available in your
dspProduct.cfm file. It doesn't get much easier than that. To be honest, all
of the HTML front-controller frameworks work pretty similarly but with
different syntaxes. In my opinion, by far the most challenging (and fun)
part is building the model, which is a totally separate topic and can get
extremely complex depending on the needs of the application.



On 10/10/07, Morten Kruse [EMAIL PROTECTED] wrote:

 I do think that I will program it by myself. I like to be in controle.
 This Best practice from Benorama looks very good.
 http://www.benorama.com/coldfusion/index.htm
 Therfore I think that I will try this first.
 If everything fails with that I will use Fusebox.
 But I do not like it. Maby if I get more into it I will.
 Any one that have any expirence?

 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290775
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Splitting UI and Data

2007-10-10 Thread Loathe
Only tons.

It's very easy to use, currently configured through a couple of easy to edit
xml files.  Even that is going to be going away soon I believe, and it will
be an easier CF based set up.  That's why I prefer Fusebox.  Really easy to
write drag and drop apps.  With some of the others I've a harder time
getting them set up and configure as easily.  You start getting into server
mappings and stuff, but with CF you can either set up on framework install
per server, multiple frameworks, or just have it in the same directory
structure as the application files.

Go to www.fusebox.org for more info man, it's worth it.

-Original Message-
From: Morten Kruse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 10:21 AM
To: CF-Talk
Subject: Re: Splitting UI and Data

I do think that I will program it by myself. I like to be in controle.
This Best practice from Benorama looks very good.
http://www.benorama.com/coldfusion/index.htm
Therfore I think that I will try this first.
If everything fails with that I will use Fusebox.
But I do not like it. Maby if I get more into it I will.
Any one that have any expirence? 



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290796
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Splitting UI and Data

2007-10-10 Thread Morten Kruse
Ok, I will take a look at fusebox.
Thank's for all you input. 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290811
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Splitting UI and Data

2007-10-10 Thread Loathe
Agreed.

You pop over to community and say hi.
-Original Message-
From: Brian Kotek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 12:04 PM
To: CF-Talk
Subject: Re: Splitting UI and Data

Er, you think THAT is less complicated than Fusebox?

Look, I know the frameworks can seem daunting at first, but they really
aren't. In fusebox, what you're asking about can be done as simply as:

fuseaction name=showProduct
  set name=product value=#application.productService.getProductByID(
attributes.productID )# /
  include template=dspProduct /
/fuseaction

And then the query or object named product is available in your
dspProduct.cfm file. It doesn't get much easier than that. To be honest, all
of the HTML front-controller frameworks work pretty similarly but with
different syntaxes. In my opinion, by far the most challenging (and fun)
part is building the model, which is a totally separate topic and can get
extremely complex depending on the needs of the application.



On 10/10/07, Morten Kruse [EMAIL PROTECTED] wrote:

 I do think that I will program it by myself. I like to be in controle.
 This Best practice from Benorama looks very good.
 http://www.benorama.com/coldfusion/index.htm
 Therfore I think that I will try this first.
 If everything fails with that I will use Fusebox.
 But I do not like it. Maby if I get more into it I will.
 Any one that have any expirence?

 



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290797
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Splitting UI and Data

2007-10-10 Thread Loathe
Feel free to email me off list with questions.

There is also a mailing list and a forum that are excellent learning tools,
and the wiki is a great resource as well.

-Original Message-
From: Morten Kruse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 3:36 PM
To: CF-Talk
Subject: Re: Splitting UI and Data

Ok, I will take a look at fusebox.
Thank's for all you input. 



~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290822
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Splitting UI and Data

2007-10-09 Thread Morten Kruse
I’m about to construct a new Coldfusion application and I want do use an 
object orientated approach.
But I don’t know how I should do this.

I have read the article written by David Friedel. Building an object oriented 
user interface with Coldfusion MX 
http://www.adobe.com/devnet/coldfusion/articles/oo_interface.html
He tells about the principles but not the actual development

I have created a cfc library containing data retrievers. These cfc’s should 
provide my UI with the necessary data.

Now I’m about to construct the User interface (UI) but I don’t know how I 
should combine the user interface with the data.

I plan to split the UI in small function (Widget) just like in the article. 
Maybe I will have a grid showing some employees  The UI part I would then 
insert into either a cfm or cfc.

If I put it into a cfm and use CFINCLUDE to use it I can’t pass the data 
query to it.
But then if I put into a cfc and use CFINVOKE I can pass the data to it. But 
then the cfc will fail because it uses the CFGRID and I don’t intent to 
insert a CFFORM into each cfc.


How do you do this?

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290715
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Splitting UI and Data

2007-10-09 Thread Loathe
I generally won't put any view/html type code inside a cfc if I can help it.

There are several different frameworks that make the understanding of this 
relationship easier.  Personally I prefer Fusebox.  There are also Model-Glue 
and Machii.

To make this basic though you would call the method of your data retrieval as 
part of your controller, then use the return (a query I assume?) to populate 
your view.

 -Original Message-
 From: Morten Kruse [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 10, 2007 1:57 AM
 To: CF-Talk
 Subject: Splitting UI and Data
 
 I’m about to construct a new Coldfusion application and I want do use
 an object orientated approach.
 But I don’t know how I should do this.
 
 I have read the article written by David Friedel. Building an object
 oriented user interface with Coldfusion MX
 http://www.adobe.com/devnet/coldfusion/articles/oo_interface.html
 He tells about the principles but not the actual development
 
 I have created a cfc library containing data retrievers. These cfc’s
 should provide my UI with the necessary data.
 
 Now I’m about to construct the User interface (UI) but I don’t 
 know
 how I should combine the user interface with the data.
 
 I plan to split the UI in small function (Widget) just like in the
 article. Maybe I will have a grid showing some employees  The UI part I
 would then insert into either a cfm or cfc.
 
 If I put it into a cfm and use CFINCLUDE to use it I can’t pass the
 data query to it.
 But then if I put into a cfc and use CFINVOKE I can pass the data to
 it. But then the cfc will fail because it uses the CFGRID and I don’t
 intent to insert a CFFORM into each cfc.
 
 
 How do you do this?
 
 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290716
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4