Re: ColdFusion not seeing standard Java classes when using CFINVOKE

2008-08-29 Thread Brad Wood
I do not believe you can use cfinvoke to create instances of Java classes-- Only CFC's. Try cfobject type = Java ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free

Re: cfthread running condition?

2008-08-29 Thread Chris Blackwell
This should be pretty simple to achieve. One of the restrictions with threads is that a cfthread can not spawn another cfthread. So your going to need one scheduled task that runs at a suitable interval. It will need to see if theres a thread running and if not, kick off the first thread.

Re: ColdFusion not seeing standard Java classes when using CFINVOKE

2008-08-29 Thread Joel Parramore
I do not believe you can use cfinvoke to create instances of Java classes-- Only CFC's. I saw in the docs the use w/CFC or web services, but I've seen enough examples being used with Java code that not explicitly saying that one couldn't invoke Java classes didn't seem to be an issue. Try

Re: Pre-filling FileField Values

2008-08-29 Thread Brian Kotek
Er, I had listed Java applets as an option about 15 messages ago, along with ActiveX and AIR. Am I missing something? On Thu, Aug 28, 2008 at 10:22 PM, Rick Faircloth [EMAIL PROTECTED]wrote: Ah-ha! I knew it! -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent:

RE: ColdFusion not seeing standard Java classes when using CFINVOKE

2008-08-29 Thread Andrew Scott
You just did... There is really no difference between the two methods. The thing is that if you are on a shared hosting, they lock everything down and you need to request the tag you would like to have added. They Sandbox everything to deny, then until someone asks they will not open it. The

Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
I'm trying to set up a way to check the status of threads and implement a sleep function that loops and delays a following thread's initialization until the status of the first thread is Completed. I found an example in the CF8 docs using a sleep timer this is placed just inside the opening

CFGrid Question

2008-08-29 Thread Duane Boudreau
I've been tasked with fixing some really old code that contains a CFGrid and it's been a long time since I've looked at CFGrid. I have the following: cfif isDefined(Form.FieldNames) cfgridupdate datasource=#request.dsn# tablename=myTable grid=lookup1 keyonly=yes cfelse cfquery

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Weidler, Wilfred C.
Rick, I have not tried it the way you have described, but I do use the Java sleep like so: go_to = createObject(java, java.lang.Thread); go_to.sleep(5000); //sleep time in milliseconds Chuck -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent:

(ot) How do you preload a SWF file?

2008-08-29 Thread Dave Phillips
Hey folks - this is OT but I know someone on this list will know the answer: I need to 'pre-load' a SWF file prior to it ever being launched with a click. I have done some googling and it appears it can be done, but I'm just wondering if someone here has done it below. Here is the scenario:

RE: (ot) How do you preload a SWF file?

2008-08-29 Thread Andy Matthews
On the main page just have an object/embed call with the SWF loaded in at 1 pixels by one pixel. -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 12:08 PM To: CF-Talk Subject: (ot) How do you preload a SWF file? Hey folks - this is OT but I

Re: Pre-filling FileField Values

2008-08-29 Thread Claude Schneegans
Because that isn't what HTTP was ever designed to do. They made a whole protocol just to handle this: FTP. I think this kind of argument is completely obsolete now. Both HTTP and FTP were designed to allow exchanges between computers made by computer scientists. Now, at least for HTTP, their

Re: Pre-filling FileField Values

2008-08-29 Thread Claude Schneegans
If they're still clicking and selecting then it isn't more risk per se, but creates issues in usability for the user. If they're not careful they could theoretically upload their entire My Documents folder without realizing it when they intended to send one file. Right, but the browser could

Re: Pre-filling FileField Values

2008-08-29 Thread Claude Schneegans
I'll bet if I asked all of my clients to zip up a folder of folders, only 10% would know how to do it without in-depth instruction. Then you have a problem. All depends on the kind of application you have and the kind of clients who are using it.

Re: Pre-filling FileField Values

2008-08-29 Thread Claude Schneegans
Because browsers weren't designed to allow you to do that. Again, this is not a reason they could not be upgraded to do it. Browsers were not designed to support tables and CSS either, now they do. ~| Adobe® ColdFusion® 8

Re: Pre-filling FileField Values

2008-08-29 Thread Justin Scott
Right, but the browser could calculate the total length ... Could, yes, but I don't expect to see an upload a folder feature added to HTTP or the browsers as a standard any time soon. After all, one could also delete all his files in his system, this is nor a reason to force him to delete

RE: Pre-filling FileField Values

2008-08-29 Thread Rick Faircloth
Agreed... If limitations can be placed on uploading a single file and maintain an acceptable level of security, then the same should be true for a folder of files. And just because they can't now, doesn't they shouldn't be changed to do so. -Original Message- From: Claude Schneegans

Re: (ot) How do you preload a SWF file?

2008-08-29 Thread Dana Kowalski
Similar to what Andy said you could make a 1x1 flash movie using the same color as your bg and use the built in flash tools to preload other movies onload. There's another method you can use with javascript writes but that takes more time then just doing the 1x1 flash movie. You could probably

Re: cfthread running condition?

2008-08-29 Thread joey krabacher
You might be able to kick of the first thread (set the action to run) then have a list or something that you can loop over and have a join cfthread inside the loop with the same name as the first one. Something like this. cfthread action='run' name='t1' do something /cfthread cfloop index='i'

cfcalendar and multiple dates

2008-08-29 Thread Aaron C
Is there any way to get cfcalendar to allow multiple date selections? Everything I've seen so far indicates that this isn't possible, but I thought I'd check here first. What I need to some sort of calendar that I can put on a form that allows users to select multiple dates. Aaron

Re: cfthread running condition?

2008-08-29 Thread Ian Skinner
Rick Faircloth wrote: Is there a way to make the start of one thread conditional upon the ending of a previous thread? It should be possible using the thread.status feature. You would create a thread then watch the status until it reports completed then start the next thread. Don't have a

Re: Pre-filling FileField Values

2008-08-29 Thread Brian Kotek
And before someone gets pedantic on me, I mean it is always going to be impossible in its current form, which is allowing arbitrary server-supplied JavaScript to modify the field value. Someone may well come up with some kind of authentication or authorization system where one can set different

Re: Accessing Sharepoint file

2008-08-29 Thread Vamsi Pappu
Hi dave, Thanks for your prompt response, but I am not able to test the scenario, can you tel me some wht detailed? All I need to do is to get the sharepoint document into our local using CF. Thanks, Vamsi Hi, My mission is to copy the file directly from a sharepoint directory (which can

Re: Pre-filling FileField Values

2008-08-29 Thread Brian Kotek
No one is saying it can't be changed or added. The point is that it is not possible now, which was the root question being asked in this thread. Talking about what might be added in the future seems relatively pointless as far as giving an answer to the posed question. In fact, we're already far

Re: Accessing Sharepoint file

2008-08-29 Thread Aaron Rouse
Are you sure that SharePoint when going to the URL via the browser is not picking up the user already being authenticated? If using IE typically SharePoint will see who you are but if using FireFox I believe it always prompts to authenticate, so that might be something to test out because it

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
Well... my attempt didn't work. After emptying the database tables that are filled with data upon running the .cfm file with the threads, all the tables were filled but the one with the cfscript in it. Chuck, I guess that I would use your java sleep code like so? cfloop from=1 to=1000 cfif

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Weidler, Wilfred C.
Rick, That code is ran in a cfscript block. You only have to create the object one. So the code would look something like this. cfscript go_to = createObject(java, java.lang.Thread); /cfscript Or if you prefer tags cfset go_to = createObject(java, java.lang.Thread) cfloop from=1

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
I checked into using a join thread and at first glance it seemed perfect. But from the description in the docs, it seems to work the opposite of what I'd hoped. From the docs: The following code, for example, joins three threads to the current thread (often, the main thread). The current

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
I started another thread with a question about some code in the docs that used a sleep function and a status check to delay a thread's start, but the code in the waiting thread was in cfscript blocks and the processing was supposed to occur in the block. I haven't used cfscript so I asked if it

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
Thanks, Chuck! I'll give that a go. Rick -Original Message- From: Weidler, Wilfred C. [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 3:50 PM To: CF-Talk Subject: RE: Can I Use This CFScript Like This? Rick, That code is ran in a cfscript block. You only have to

Re: cfthread running condition?

2008-08-29 Thread Ian Skinner
Rick Faircloth wrote: Is there a way to break out of the cfscript block once the status of the first thread, 2_hmls_offices, is Completed and go on to process regular CFML code? There is nothing special about the cfscript.../cfscript code. This is not a requirment of threads or anything,

Re: cfthread running condition?

2008-08-29 Thread Joey Krabacher
In the docs under timeout it says: 'The number of milliseconds that the current thread waits for the thread or threads being joined to finish. If any thread does not finish by the specified time, the current thread proceeds. If the attribute value is 0, the following action occurs: * The

Re: Details on CF9's free for academic licensing?

2008-08-29 Thread Sean Corfield
I saw several people jump on the free part without actually answering Pete's original questions: desktops. Does anyone know what the policy will be for the free for academic licensing for CF9? Is it limited to colleges and universities, or can primary and secondary schools use that licensing

RE: Listing then Deleting Duplicates

2008-08-29 Thread Bobby Hartsfield
LoL unique dupes... 1 Select distinct records... 2 Select records that are not in the results from step one. 3 Delete records that are not in the results from step one. Ps.. Don't mind Will... he just has a thing for foods that are bigger than his... ahem... :-p ..:.:.:.:.:.:.:.:.:.:. Bobby

RE: Listing then Deleting Duplicates

2008-08-29 Thread Dave Watts
Ps.. Don't mind Will... he just has a thing for foods that are bigger than his... ahem... :-p Wow, you guys must be close to know such intimate details about each other. Now that's agile team development. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
I'm not too sure what constitutes a page thread. Assuming that it's the processing of the .cfm page, then that wouldn't really apply, I don't think, because I'd be using these merged templates with multiple threads coded in them as part of scheduled tasks, which, if I understand correctly

RE: Listing then Deleting Duplicates

2008-08-29 Thread Rick Faircloth
Ha! Rick -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 6:53 PM To: CF-Talk Subject: RE: Listing then Deleting Duplicates Ps.. Don't mind Will... he just has a thing for foods that are bigger than his... ahem... :-p Wow, you guys

RE: cfthread running condition?

2008-08-29 Thread Dave Watts
I'm not too sure what constitutes a page thread. Assuming that it's the processing of the .cfm page, then that wouldn't really apply, I don't think, because I'd be using these merged templates with multiple threads coded in them as part of scheduled tasks, which, if I understand

Re: Details on CF9's free for academic licensing?

2008-08-29 Thread Kristen Schofield
Hi, We pre-announced the free offering of ColdFusion to educational institutions for learning purposes at CFUnited. At CFUnited we mentioned that the formal announcement and program launch would be a few months out. We were so excited we couldn't wait to tell you. :) The offer isn't exclusive

Re: Details on CF9's free for academic licensing?

2008-08-29 Thread James Holmes
Flex builder is, however, free for any use by any member of an educational institution, so there's a difference. While I'd love to see a similar program for CF, I suspect the CF policy will provide only for teaching as has been discussed. On Sat, Aug 30, 2008 at 6:01 AM, Sean Corfield [EMAIL

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
But unlike a page thread that's running in a browser, the scheduled task page thread isn't subject to a timeout, right? -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 7:09 PM To: CF-Talk Subject: RE: cfthread running condition? I'm not

CF8 Dedicated server recommendations

2008-08-29 Thread Jake Pilgrim
I'm looking for a fairly low-end CF 8 dedicated server setup. I've been running with a VPS for a while and I'm starting to outgrow it. CF8, MS-SQL, prolly don't need more than 40 GB disk, 2 GB RAM. If anyone has any suggestions I'd appreciate it! -- Jake

RE: cfthread running condition?

2008-08-29 Thread Dave Watts
But unlike a page thread that's running in a browser, the scheduled task page thread isn't subject to a timeout, right? Why wouldn't it be? It's just another HTTP request. Dave Watts, CTO, Fig Leaf Software ~| Adobe®

cf8 enterprise failover

2008-08-29 Thread Richard Steele
Does cf8 enterprise failover work well? IOW, if an instance hangs does it spawn a new instance seamlessly? Thank in advance. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free

Re: cf8 enterprise failover

2008-08-29 Thread Brad Wood
New instances are not spawned. Traffic is simply redirected to other instances in the cluster. Depending on how you define hang-- yes, once an instance stops responding the Webserver connectors no longer send traffic to it until it comes back up. Please be aware that JRun clustering is not

Re: cf8 enterprise failover

2008-08-29 Thread Richard Steele
Ah, ok. So one defines a cluster for an application within the cf8 enterprise server and then if an instance within the cluster hangs, then traffic is redirected? Am I understanding that right? And that works well? Thanks. New instances are not spawned. Traffic is simply redirected to other

RE: Listing then Deleting Duplicates

2008-08-29 Thread Bobby Hartsfield
speaking of 'ahems' ..:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 6:53 PM To: CF-Talk Subject: RE: Listing then Deleting Duplicates Ps.. Don't mind Will...

Re: cf8 enterprise failover

2008-08-29 Thread Brad Wood
Yes. You add one or more instances to one or more servers. Then you define a cluster, add the instances to it, and choose a load balancing algorithm. You then associate that cluster with your IIS site (or apache virtual server etc) In my experience, clusters can be a little cranky if you are

Re: cf8 enterprise failover

2008-08-29 Thread Matthew Williams
Uh, what? Session replication has been working for me starting with MX 6.1 and continues to work fine now that we've moved to CF8. I've also not had an issue with cfchart since the information replicates within the cluster. And, as an added bonus, the latest JRun updater for CF8 brings us

Re: cf8 enterprise failover

2008-08-29 Thread Brad Wood
- Original Message - From: Matthew Williams [EMAIL PROTECTED] Uh, what? Session replication has been working for me starting with MX 6.1 and continues to work fine now that we've moved to CF8. How do you define working? When you can't place CFCs or XML objects in your session

Re: cfthread running condition?

2008-08-29 Thread Mark Mandel
Silly question - why not just run the executing code you want to fire to happen at the end of thread 1? It has exactly the same result, there is no need to create a whole new thread, as you can just continue in the one you are in. Mark On Sat, Aug 30, 2008 at 12:26 PM, Dave Watts [EMAIL