<$BlogRSDURL$>
  Tuesday, August 10, 2004

Rich DHTML client

Recently, a lot of effort has been push on the so called Rich Client development which is either implemented as browser plugin like Flash MX, or as desktop application like Flex or Avalon. I wonder if DHTML client development would continue as a consequence. When I came to experiment on Mach-II, the "poor" View support on UI and, especially, form using DHTML really got me thinking. Shall I get into Rich Client development simply because of the View problem? The roadmap on XForms adoption seems like forever, XUL still seems too early to tell, and then I came across CFMX custom tags, cfimport and qForms. The combination leads me to the work of set of UI and form model tags. The result is shown in the code snippet below:

<!----------------
cfimport tag lib
----------------->
<cfimport taglib="cftaglib/ui/form" prefix="form">
<cfimport taglib="cftaglib/gateway" prefix="gateway">
...
<!---// end cfimport ------------------->

<!----------------------
the business model
----------------------->
<cfset user = request.event.getArg('user') />
...
<!---// end model -------------------------------------->

<!------------------------------
Prepare data for controller
------------------------------->

<!--- setup validator --->
<cfset validator = StructNew()>
<cfset validator.usr_uid.validation = "LengthGT">
<cfset validator.usr_uid.condition = "5">
...
<!---// end validator --->
<!---// end controller data setup -------------------------------------------------->

<!---------------------
Start of client code
---------------------->

<content:markup>
<content:head>

<!--------------------------------------------------
Business model to client-side form model
---------------------------------------------------->

<form:model name="form1">
<form:data objName="user" value="#user#">
</form:model>

<!---// end form model --->

<!-----------------------------------
Seting up for form controller
------------------------------------>

<form:controller wddxPacket="true">
<form:controlledItems validator="#validator#">
<form:controlledItem name="usr_hob" validation="NotEmpty" required="false" description="Hobbies">
<form:eventHandler type="onChange" handler="usr_uid" invoke="rmVerifyMemberId()">
<form:bind collectionList="user">
</form:controller>

<!---// end setting up for controller ------------------------------------------------>

<!--------------
Remoting
---------------->

<gateway:client remoteHandler="mvcClientSample_wdxjs.cfm" onReceiveHandler="alertNonUniqueID">

<!--- // end remoting --------------------------------------------------->

</content:head>
<body>
<layout:box width="400px" type="blank">

<!----------------------
Form controls UI
------------------------>
<form:submission action="#cgi.Script_name#?event=editUser">
<form:group name="User Profile">
<form:control type="hidden" name="usr_id">
<form:control label="User name" name="usr_name">
...
</form:group>
<form:control name="action" type="submit" value="submit" id="action">
</form:submission>
<!---// end form controls ----------------------------------------->

</layout:box>

</body>
</content:markup>
<!---// end of client code -------------------------------------------------->

As you can see, DHTML is totally encapsulated with tags. Do you see any HTML or Javascript at all? I don't. You may download the set of custom tags and samples here. You may use it in anyway and anyform as you see fit. All the required files and libraries are included in the zip file. Simply extract to your webroot and browse to index.html and see how easy it is to develop Rich DHTML Client.
 

25 Comments:

Anonymous Anonymous said...

Fantastic website you have here but I was curious about if you knew of any message boards that cover
the same topics discussed here? I'd really like to be a part of group where I can get feed-back from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Thanks!
my site > Dora The Explorer Party Supplies

3:24 PM  
Anonymous Anonymous said...

Very nice article, exactly what I wanted to find.
Feel free to surf my web site - Webmaster Daily Deals

7:38 PM  
Anonymous Anonymous said...

Hey there just wanted to give you a brief heads up and let you know a few of
the images aren't loading correctly. I'm not sure why but I think its a linking issue.

I've tried it in two different web browsers and both show the same outcome.
Stop by my web blog - join vidacup

11:31 PM  
Anonymous Anonymous said...

You ought to be a part of a contest for one of the finest websites on
the internet. I will recommend this web site!
my web site > lanautica

1:33 PM  
Anonymous Anonymous said...

Hello to every one, because I am truly keen of reading this web site's post to be updated regularly. It carries nice material.
Feel free to visit my webpage - Visual Impact Muscle Building

8:56 PM  
Anonymous Anonymous said...

I am actually glad to glance at this website posts which carries tons of helpful information, thanks for providing these kinds of statistics.
My web page : click the following web page

12:05 PM  
Anonymous Anonymous said...

Heya! I hope you do not mind but I decided to post your weblog:
http://www.blogger.com/comment.g?blogID=6803702&postID=109214658670641256 to my online directory.
I used, "Blogger: Life as a struct: ColdFusion" as your web
site title. I hope this is alright with you. In the event that you'd like me to change the title or remove it entirely, contact me at kelseycouch@gmail.com. Appreciate it.

My blog post traka

5:24 AM  
Anonymous Anonymous said...

Your weblog seems to be having some compatibilty
problems in my firefox browser. The wording seems to be running off the webpage pretty bad.
If you would like you can e-mail me at: wilmakirk@freenet.
de and I will shoot you over a screen grab of the problem.


Also visit my blog - stump grinding

1:44 PM  
Anonymous Anonymous said...

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why waste your
intelligence on just posting videos to your site when you could be giving us something
enlightening to read?

Also visit my web-site broowaha.com

1:24 PM  
Anonymous Anonymous said...

This system has a unique follow system to get you
the followers you need. In fact, real Twitter followers help you
achieve your business goal in no time without making a hole in your pocket.
Friendfactor responded to Adam Lambert with a
tweet of its own:.

Also visit my webpage: Get more Twitter followers

2:37 PM  
Anonymous Anonymous said...

An Xbox Live membership allows you to take benefit from all the
contents on the Xbox website in addition to your gaming
console. Credit cards are readily available in both Sixteen
hundred or 1000 stage sects. The second type is the almost legitimate programs that
are encountered less than the fake type and has been created with good intentions and was filled with legal, valid codes.



Take a look at my site ... microsoft points codes
My web site - free microsoft points

5:14 PM  
Anonymous Anonymous said...

Aw, this wаs an extгemely niсe post. Ѕpеnding ѕοme timе and асtual effоrt to creаte a good artіcle… but what cаn I say… І put things
off a lοt and never sеem to gеt neаrlу
anуthing done.

My web page :: buy ephedra alkaloids

6:55 PM  
Anonymous Anonymous said...

This site was... how do you say it? Relevant!

! Finally I've found something that helped me. Thanks!

Here is my webpage :: nikon digital camera

8:19 AM  
Anonymous Anonymous said...

Amazing blog! Do you have any helpful hints for aspiring
writers? I'm hoping to start my own blog soon but I'm a
little lost on everything. Would you propose starting with
a free platform like Wordpress or go for a paid
option? There are so many choices out there that
I'm totally confused .. Any recommendations? Thanks!

my webpage ... pc

1:18 PM  
Anonymous Anonymous said...

Constipation, too much bodyweight, sitting a long time in
one position, aging etc. And sometimes if the hemorrhoid is already severe bleeding occurs.
There was a lot of resistance from the public on the effectiveness of this system but Japanese scientists who came up with this idea were unperturbed.


Also visit my website ... internal hemorrhoids treatment suppositories

5:17 PM  
Anonymous Anonymous said...

Does your website have a contact page? I'm having trouble locating it but, I'd like to
send you an email. I've got some ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it develop over time.

Here is my blog post :: compositor

5:30 PM  
Anonymous Anonymous said...

First of all I would like to say excellent blog! I had a quick question in which I'd like to ask if you don't mind.
I was interested to know how you center yourself and
clear your mind before writing. I have had trouble
clearing my thoughts in getting my ideas out there. I do enjoy writing however it
just seems like the first 10 to 15 minutes are wasted simply just trying
to figure out how to begin. Any ideas or hints?
Kudos!

Visit my web site - Arabic Books

4:11 AM  
Anonymous Anonymous said...

you are really a good webmaster. The site loading speed is amazing.
It kind of feels that you are doing any unique trick.
Also, The contents are masterpiece. you've performed a fantastic task in this matter!

Check out my page ... cost of dental implant

4:18 AM  
Anonymous Anonymous said...

If some one wants to be updated with newest technologies
after that he must be go to see this web site
and be up to date all the time.

My website ... Author's external home page...

12:17 AM  
Anonymous Anonymous said...

Ι am extremely іnsрiгeԁ together wіth your writing abilitiеѕ аs ѕmагtly aѕ ωith the formаt on your blog.
Ιѕ that thіs a paіԁ topic or did you modify it your self?
Eithеr way stay up thе еxсеllеnt high qualitу
ωrіting, it's rare to peer a great weblog like this one today..

my blog post: Current conductor

6:57 AM  
Anonymous Anonymous said...

It is perfect time to make a few plans for the long run and it's time to be happy. I have read this publish and
if I may I want to suggest you few attention-grabbing issues or suggestions.
Perhaps you could write subsequent articles referring to this article.
I wish to learn even
more things approximately it!

Also visit my site mutual fund

3:37 PM  
Anonymous Anonymous said...

Hey just wanted to give you a quick heads up.

The words in your post seem to be running off
the screen in Ie.
I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd
post to let you know. The style and design look great though!
Hope you get the problem fixed soon.

Kudos

Review my blog ... white House Black market

6:10 AM  
Anonymous Anonymous said...

These are genuinely wonderful ideas
in concerning blogging.
You have touched some pleasant factors
here. Any way keep up wrinting.

Also visit my web blog: pre settlement cash

11:57 AM  
Anonymous Anonymous said...

I've been browsing online greater than three hours today, yet I by no means discovered any fascinating article like yours. It's
beautiful worth enough for
me. Personally,
if all website owners and bloggers made excellent content as you probably did, the web
shall be a lot more helpful than ever before.

Here is my web page: fairfield realtors ()

2:13 PM  
Anonymous Anonymous said...

You made some good points there. I checked on the web for
more info about the issue and found most individuals will
go along with your views on this site.

My blog; dating online service ()

4:59 AM  

Post a Comment

<< Home

Software Culture
ColdFusion
  03/01/2004 - 04/01/2004
  05/01/2004 - 06/01/2004
  07/01/2004 - 08/01/2004
  08/01/2004 - 09/01/2004
  09/01/2004 - 10/01/2004
  10/01/2005 - 11/01/2005
日常毒藥與養料
  Smart talk always right?
  Drools on AppFuse
  Braille, braille
  可愛提示
  The Dynamic SRC of IMG
  Preferred Locale on AppFuse
  告訴你為什麼程式不 work
  絲綢之路 2000:致命病毒
  AJAX on AppFuse
  1918
  Meet Mr. Writely
  網際網路的最後一頁
  小螞蟻最短篇
  健檢, e檢
  Open source ColdFusion
  八月半個
  自行其是
  Rich DHTML client
  cfspring, seriously
  三百萬民主補給站
  敏督利小插曲
  迷上喬治亞
  說故事
  Where are they?
  宿夢
  An Architect's View
  Martin Fowler
  Loud Thinking
  Raible Designs   fullasagoog
Home


Powered by Blogger