Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Dan Plesse
Spike's solution will give you errors and so will ClassLoader.CFC

First loading a Jar with that solution!

cfset URLObject.init(file:currentDirectoryjxl.jar)

line 22

cfset helloWorld = loader.loadClass(jxl.Workbook).newInstance()

You get these error with Spikes solution and ClassLoader.cfc

Class coldfusion.runtime.StructBean can not access a member of class
jxl.Workbook with modifiers protected null

So YES it does I would make a difference.  As I just stated that
classloaders only work if the methods are public. I had problems with
protected methods too. JavaProxy does not for work protected methods which
the JavaLoader.cfc uses which and is ever better then Spikes example.

This works just like adding a jar to the classpath and turning the server
off and on and it is without context issues

Try the jexcel API with Spikes example and then try JavaLoader.cfc and you
will find that Workbook only with works my CFC.

Workbook.java

Reason is

protected Workbook()
  {
  }


On 7/23/06, James Holmes [EMAIL PROTECTED] wrote:

 Does that do anything that this doesn't?


 http://www.spike.org.uk/blog/index.cfm?do=blog.entryentry=B49509DF-D565-E33F-31C9E574EA1591EE

 On 7/23/06, dan plesse [EMAIL PROTECTED] wrote:
  Hello All,
 
  This could be my final java solution (300+) and it was a big pain to
 make.
 
  After making a 2 line classloader I found out that I was having trouble
  with anything other then public methods and saving objects to disk was
 not
  working out so I tested out just adding jars to the classpath at runtime
 and I did see the errors I was getting with classloaders. I tested it with
  test.forName(jxl.Workbook) and that did not error so I am assuming it
 works. It uses java reflection.
 
  Add Jar at Runtime/CLASSPATH CFC
  http://www.cfide.org/add_jar_at_runtime.html
 
 

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247430
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Paul Hastings
Dan Plesse wrote:
 Try the jexcel API with Spikes example and then try JavaLoader.cfc and you
 will find that Workbook only with works my CFC.

works for me:

cfscript
paths=listToArray(c:\inetpub\wwwroot\testCF\excel\jxl.jar);
loader=createObject(component, cfc.JavaLoader).init(paths);
outFile = createObject(java, 
java.io.File).init(c:\inetpub\wwwroot\testCF\excel\test.xls);
workBook=loader.create(jxl.Workbook).createWorkbook(outFile);
labelObj=loader.create(jxl.write.Label);
numberObj=loader.create(jxl.write.Number);
sheet=workBook.createSheet(First Sheet, 0);   
thisLabel=labelObj.init(0,0,happy happy gizmo);
sheet.addCell(thisLabel);
thisNumber=numberObj.init(0, 1, 3.1459);
sheet.addCell(thisNumber);
workbook.write();
workbook.close();
/cfscript

if you're talking about andy khan's cool jxl lib, the Workbook class 
isn't protected.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247431
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Dan Plesse
Paul,

If you look at Workbook.java in the src folder line 49 you will that the
the constructor is
protected the class is not. Luckly the Workbook class has static methods you
can call directly line 283 says public static WritableWorkbook
createWorkbook(){} therefore you can bypass the protected constructor.
Jexcel only works because of its static methods however not all class have
these. Nice try however.


On 7/23/06, Paul Hastings [EMAIL PROTECTED] wrote:

 Dan Plesse wrote:
  Try the jexcel API with Spikes example and then try JavaLoader.cfc and
 you
  will find that Workbook only with works my CFC.

 works for me:

 cfscript
 paths=listToArray(c:\inetpub\wwwroot\testCF\excel\jxl.jar);
 loader=createObject(component, cfc.JavaLoader).init(paths);
 outFile = createObject(java,
 java.io.File).init(c:\inetpub\wwwroot\testCF\excel\test.xls);
 workBook=loader.create(jxl.Workbook).createWorkbook(outFile);
 labelObj=loader.create(jxl.write.Label);
 numberObj=loader.create(jxl.write.Number);
 sheet=workBook.createSheet(First Sheet, 0);
 thisLabel=labelObj.init(0,0,happy happy gizmo);
 sheet.addCell(thisLabel);
 thisNumber=numberObj.init(0, 1, 3.1459);
 sheet.addCell(thisNumber);
 workbook.write();
 workbook.close();
 /cfscript

 if you're talking about andy khan's cool jxl lib, the Workbook class
 isn't protected.

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247432
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: iif: am I understanding correctly?

2006-07-23 Thread Russ
Looks like that works... and for large values of X, looks like this method
is the fastest, followed by iif with DE, followed by cfif.  Does this mean
that it's no longer true that iif is not efficient?  If I'm using it only a
few times on a page, and it's a little slower then cfif, I don't really
care, and if it's faster then cfif when I use it inside something that does
a lot of computation, I might as well... More likely I will be using
whichever statement make sense, iif inside checkboxes and select's and such
and cfif elsewhere, since they are about the same.  

Russ

 -Original Message-
 From: Phillip Holmes [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 23, 2006 2:26 AM
 To: CF-Talk
 Subject: RE: iif: am I understanding correctly?
 
 You must have copied the code straight off the page. The ticks that my
 blog
 displays are blowing up CF.
 Try this.
 
 cfscript
   variables.foo = 1;
   out = IIf(variables.foo NEQ 1,'aString1','aString2');
   writeOutput(out);
 /cfscript
 
 
 Warmest Regards,
 
 Phillip B. Holmes
 http://phillipholmes.com
 214-995-6175 (cell)
 
 
 
 
 
 
 -Original Message-
 From: Russ [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 23, 2006 1:11 AM
 To: CF-Talk
 Subject: RE: iif: am I understanding correctly?
 
 I'm not too sure what you're trying to do in that article, but I couldn't
 get it to compile... can you explain what you're doing?
 
 Russ
 
  -Original Message-
  From: Phillip Holmes [mailto:[EMAIL PROTECTED]
  Sent: Sunday, July 23, 2006 1:59 AM
  To: CF-Talk
  Subject: RE: iif: am I understanding correctly?
 
  Brad,
 
  IIF() actually compiles down to a 'short-circuited' if in java.
 
  Here is an article about how to use IIF() without having to use
  evaluate()
  -
  IIf() without Delayed Evaluation.
 
  http://www.phillipholmes.com/?p=43
 
  Warmest Regards,
 
  Phillip B. Holmes
  http://phillipholmes.com
  214-995-6175 (cell)
 
 
 
 
 
 
  -Original Message-
  From: Brad Wood [mailto:[EMAIL PROTECTED]
  Sent: Sunday, July 23, 2006 12:40 AM
  To: CF-Talk
  Subject: RE: iif: am I understanding correctly?
 
  Hmm, I had always just figured that cfif and iif just compiled down to
  the exact same java anyway...
 
  I wonder if one could have an advantage over the other if the
  condition was either true or false  all this worrying over a few
  microseconds
  :)
 
  ~Brad
 
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date:
  7/17/2006
 
 
 
 
 
 
 
 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247433
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfcdev, cflib, my blog, etc

2006-07-23 Thread Raymond Camden
All our down as I fight my mail server. Folks, whatever you do, do not
buy MailEnable. Ever. What does it do when something goes wrong? It
makes 125,000 mail messages in the queue.

Can anyone recommend a Windows-based alternative that would support
multiple domains and listservs?

-- 
===
Raymond Camden, Vice President of Technology for roundpeg

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
AOL IM   : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247434
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfcdev, cflib, my blog, etc

2006-07-23 Thread Duncan
merak mail server. www.icewarp.com awesome.

On 7/24/06, Raymond Camden [EMAIL PROTECTED] wrote:
 All our down as I fight my mail server. Folks, whatever you do, do not
 buy MailEnable. Ever. What does it do when something goes wrong? It
 makes 125,000 mail messages in the queue.

 Can anyone recommend a Windows-based alternative that would support
 multiple domains and listservs?

 --
 ===
 Raymond Camden, Vice President of Technology for roundpeg

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 AOL IM   : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247435
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: The visible attribute with Flash forms

2006-07-23 Thread Andy Jarrett
Cheers !




On 20/07/06, Kelly Keith [EMAIL PROTECTED] wrote:

 When visible is set to false set the height to a negative number.

 -Original Message-
 From: Andy Jarrett [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 20, 2006 6:37 AM
 To: CF-Talk
 Subject: The visible attribute with Flash forms

 Does anyone know how to remove the white gap created when you set
 visible=false in cfform.

 The idea is that based on a selected the form will show 2 different
 radio buttons. With HTML and CSS this would be easy, but I can't see how
 to do this with the Flash Forms.



 I have the following bit of code as an example of what I am trying to do

 cfform format=flash name=myform

cfselect name=myfield id=myfield
option value=XYes/option
option value=YNo/option
/cfselect

cfinput type=radio name=payment_type id=payment_type
 value=1
 label=Payment option 1
visible={(myfield.text == 'Yes')?true:false}/
cfinput type=radio name=payment_type id=payment_type
 value=2
 label=Payment option 2
visible={(myfield.text == 'Yes')?true:false}/

cfinput type=radio name=payment_type id=payment_type
 value=3
 label=Payment option 3
visible={(myfield.text == 'No')?true:false}/
cfinput type=radio name=payment_type id=payment_type
 value=4
 label=Payment option 4
visible={(myfield.text == 'No')?true:false}/
 /cfform

 Cheers

 Andy J
 www.andyjarrett.co.uk



 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247436
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfcdev, cflib, my blog, etc

2006-07-23 Thread John C. Bland II
Ray, we use SmarterMail (from SmarterTools). We have no complaints but we
also don't have any high traffic lists.

On 7/23/06, Raymond Camden [EMAIL PROTECTED] wrote:

 All our down as I fight my mail server. Folks, whatever you do, do not
 buy MailEnable. Ever. What does it do when something goes wrong? It
 makes 125,000 mail messages in the queue.

 Can anyone recommend a Windows-based alternative that would support
 multiple domains and listservs?

 --

 ===
 Raymond Camden, Vice President of Technology for roundpeg

 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 AOL IM   : cfjedimaster

 My ally is the Force, and a powerful ally it is. - Yoda

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247437
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Paul Hastings
Dan Plesse wrote:
 thinking about all java API's not just one API and you implied it would work
 with all API's which is not true. I should have used java freeTTS Text to
 Speech as an example instead. I hope this clears it up.

dan, you claimed that jxl.workbook didn't work w/javaLoader when it fact it 
does. as to what i implied how on earth do you go from my one example showing 
javaLoader  jxl to all APIs. geez what a word wiggler.

as to why you're calling a protected class, well i'll leave that to others.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247450
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFCDev Notice

2006-07-23 Thread Raymond Camden
Unfortunately, the piece of crap known as MailEnable has decided that
it simply isn't happy unless it completely fills my hard drive. Those
of you who know me will note that I rarely, if ever, speak ill of
people/companies, so you can probably guess how mad I am.

I've had to disable the listserv/smtp service for the box. That means
the list is dead (for now), and no emails will come from the box.

I apologize for the mail dump folks had to deal with on the list.
I'm looking to switch to SmarterMail, and am looking for a corporate
sponsor for the license. (It's really pretty cheap.) If anyone is
interested, please email me, but use my company address (jedimaster at
roundpeg dot com).

Sorry for the off topic post folks!

-- 
===
Raymond Camden, Vice President of Technology for roundpeg

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
AOL IM   : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247451
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Dan Plesse
Paul,

  Again protected constructor not a class and the source says its empty
(I posted that too didn't you see it?) and its a default constructor i.e no
way around not calling it unless you use a static method.

Its was the fastest way I could provide an example without searching around
for a for a better example which showed an error while instantiating an
object which most people will do first
before calling a method.

Clear?





On 7/23/06, Paul Hastings [EMAIL PROTECTED] wrote:

 Dan Plesse wrote:
  thinking about all java API's not just one API and you implied it would
 work
  with all API's which is not true. I should have used java freeTTS Text
 to
  Speech as an example instead. I hope this clears it up.

 dan, you claimed that jxl.workbook didn't work w/javaLoader when it fact
 it
 does. as to what i implied how on earth do you go from my one example
 showing
 javaLoader  jxl to all APIs. geez what a word wiggler.

 as to why you're calling a protected class, well i'll leave that to
 others.

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247452
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Mark Mandel
On 7/24/06, Dan Plesse [EMAIL PROTECTED] wrote:
 Paul,

   Again protected constructor not a class and the source says its empty
 (I posted that too didn't you see it?) and its a default constructor i.e no
 way around not calling it unless you use a static method.

 Its was the fastest way I could provide an example without searching around
 for a for a better example which showed an error while instantiating an
 object which most people will do first
 before calling a method.

 Clear?


Not in the slightest.

What you call and error is not an error - it's a basic principle of a language.

In Java you cannot even *compile* a class that attempts to call a
private or protected method, so I can't see how this could be an
'error'.

I'm sorry, but unless you can explain yourself better, this isn't
making any sense to me at all.

Mark

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247453
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: I just made a new CFC it has to with the classpath

2006-07-23 Thread Dan Plesse
Paul,

 Can you check to see if this works on you machine?

 cfset Workbook = createObject(java, jxl.Workbook)

  I went back thinking maybe I was wrong and I was calling the static
methods like you
were like so

cfset Workbook = createObject(java, jxl.Workbook
).getWorkbook(FileInputStream)

until I loaded the line above and it worked! Maybe its not calling the
default constructor.

Please check! Thanks Dan


On 7/23/06, Paul Hastings [EMAIL PROTECTED] wrote:

 Dan Plesse wrote:
  Jexcel only works because of its static methods however not all class
 have
  these. Nice try however.

 i'm not following. you said it won't work while it actually does. what's
 so
 nice try about that?

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247454
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfcdev, cflib, my blog, etc

2006-07-23 Thread Mingo Hagen
Raymond Camden wrote:
 All our down as I fight my mail server. Folks, whatever you do, do not
 buy MailEnable. Ever. What does it do when something goes wrong? It
 makes 125,000 mail messages in the queue.

 Can anyone recommend a Windows-based alternative that would support
 multiple domains and listservs?

   
HMailServer, free, open, windows...

www.hmailserver.com

Using it in production now for two years, no complaints yet. Serving 
about a 100 domains.

Mingo.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247455
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4