?
Solved

cftree, cfinput binding error if the cftree format is applet

Posted on 2011-09-28
5
Medium Priority
?
352 Views
Last Modified: 2012-05-12
I am using cftree and trying to bind to cfinput type="text. I am able to bind cddiv if the cftree format  is html without any issue. But I am getting binding error if cftree format is applet.

Here is the code

<cfform name="f1">
      <cftree  name="tree1" >
            <cftreeitem value="1" parent="0" display="Root Node"/>
            <cftreeitem value="2" parent="1" display="Branch 1"/>
            <cftreeitem value="3" parent="1" display="Branch 2"/>
            <cftreeitem value="21" parent="2" display="Branch 1.1"/>
            <cftreeitem value="22" parent="2" display="Branch 1.2"/>
            <cftreeitem value="31" parent="3" display="Branch 2.1"/>
            <cftreeitem value="32" parent="3" display="Branch 2.2"/>
            <cftreeitem value="33" parent="3" display="Branch 2.3"/>
      </cftree>
      <cfinput type="text" name="dbgText" bindOnLoad = "no" bind="{tree1.node@click}"/>
</cfform>

can some one help
0
Comment
Question by:dacharla
  • 3
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 150 total points
ID: 36816156
Applets and binding weren't meant to work together.  Binding is a newer feature. It uses javascript and relies on the presence of html/DOM elements.  Applets are totally different. They run as an embedded object in the browser. So it doesn't create those DOM elements .

Does the applet version support an onChange or onClick event? (I haven't used it in years). If so, perhaps you could use that to call some javascript that updates the the input value.
0
 

Author Closing Comment

by:dacharla
ID: 36893280
did not solve the issue but helped to understand the issue
0
 
LVL 52

Expert Comment

by:_agx_
ID: 36893420
Why the B grade? Sometimes the correct answer is "you can't".  The javascript binding just wasn't designed to work with the older applets. Not what you want to hear, but unfortunately that is the reality of it.  If you don't wish to pursue alternatives, that's up to you.  But "not possible" is a valid answer on EE.

0
 

Author Comment

by:dacharla
ID: 36894091
well. i am new to EE..I dont really know what 'B' means to you. I had gone by general nature of grading
0
 
LVL 52

Expert Comment

by:_agx_
ID: 36894424
Welcome to EE.  Grading's a little different on EE.  If a correct answer was provided it's usually given an "A".  "B" grades usually signify the expert didn't fully answer the question, which happens sometimes. But in those cases you should ask for clarification if needed.  However, if the right answer is "it's just not possible" it should be given an A grade.  

     > dont really know what 'B' means to you

Well, most experts take pride in providing thorough and accurate answers and grading is seen as a reflection of how well they did that.  
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question