problem with calendar popup on DATEFIELD

2011-08-06 Thread derek felsher

Hi folks

Sorry if this is a repeat, seems I hit the send button to fast on the prev 
post. 

I am trying to use the cfinput datefield in CF8. Everything works fine except 
when the calendar opens, the month and year do not show at the top of the 
popup. 
When I move the mouse over the area and click where they should display, then 
they appear???

Many thanks in advance 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346566
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OO ColdFusion, somebody tell me if this is overkill

2011-08-06 Thread Russ Michaels

I would personally say having more files is less complex and far easier to
manage and I have been of that opinion for a long time since I worked with
monolithic files (I once thought that was a good idea too).
There are of course some caveats to that,
The more files approach would have to actually be to aid others than just
yourself.
The files would need to be aptly named as would the functions in order to
make them less complex and easier to use, you have to assume that another
developer would have no clue how your app worked.
Having tons of files with meaningless names is no better than 1 huge file
really, it all needs to be blatantly obvious to a newcomer, which is where I
feel a lot of the frameworks fall down as well.
I have worked with some big apps where every file, function name and
variable meant nothing to anyone except the guy who wrote it, and even that
is debatable.


Russ


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346565
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 9 ODBC data source with Windows 2008 64-bit

2011-08-06 Thread Dave Watts

> Actually what I am trying to do is to use JDBC by choosing "Other"
> rather than "ODBC Socket" on CF Admin data source setup page, and what I
> need are the values/syntax for these entries:
>
> JDBC URL:
> Driver Class:
> Driver Name:
>
> I looked the documentation but still don't know what to enter. Has
> anyone done this before?

The driver and class name will be drawn directly from the
documentation. The documentation will contain examples of the JDBC
URL, which you'll then have to change for your specifics (server name,
port, username/password). Here's what I found from a Google search of
"datadirect jdbc oracle example":

http://media.datadirect.com/download/docs/connectsqlxml/jdbcug/jquiksta.htm

JDBC URL:
jdbc:datadirect:oracle://server_name:1521

Driver class:
com.ddtek.jdbc.oracle.OracleDriver

I don't think it matters what you enter for driver name, but I could
be wrong there.

Now, in addition to installing the driver, you have to actually set it
up in the classpath for CF to be able to use it as well. And the
DataDirect drivers aren't free - if you're using CF Standard, I
recommend that you use Oracle's own JDBC driver instead.

http://blog.razuna.com/2008/01/25/configure-the-jdbc-driver-for-oracle-on-coldfusion-8-standard-edition/

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346564
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OO ColdFusion, somebody tell me if this is overkill

2011-08-06 Thread Dave Watts

> This is exactly what I'm doing. I'm rebuilding the app that I use for my
> blog. It was running with one monolithic cfc (over a thousand lines of
> code), that contained public and administrative functionality.
>
> My plan is twofold, separate the monolith into individual components based
> on functionality, and secondly secure the administrative functions by moving
> them into a password protected part of the site, so they're not accessible
> from the outside, and also,  by making them private,  ensuring that they'll
> only be accessible from inside the app.

Given that description, I don't see a clear value to taking the
private methods and moving them outside of the components that will
call them, if those methods don't logically belong to a separate
object. It definitely makes sense for those methods to be private, but
going back to your original question I don't see the benefit in
creating a separate class just with those methods in it for each
public class that would end up extending that class.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346563
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OO ColdFusion, somebody tell me if this is overkill

2011-08-06 Thread Dave Watts

> Oh Dave, you're such a literalist and a pessimist.

I'm neither, but you'll just have to take my word for that.

> I disagree with what you said about reducing complexity. Reducing the number
> of methods in a component and reducing the number of lines in a file, does
> reduce the complexity of the file, which can be a serious problem in a lot
> of applications. If the file is getting unwieldy and excessively large,
> splitting out functionality (in a logical way) is always a good
> idea. However it does add another complexity of having more files.

So, if you reduce complexity in one place by moving it to another
place, does that necessarily reduce complexity? I don't think so. It
boils down to how you move things from one file to another. I think
you probably agree with that.

Trust me when I say I'm well aware of the problems of having too much
in a single file - I regularly have to work with files of up to 4,500
lines simply because I have no choice in the weird, wacky environment
I'm working in. But it's not as simple as "lots of little files are
collectively less complex than fewer larger files".

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346562
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: RETS - Real Estate Standards Organization - XML feed - anyone have any experience

2011-08-06 Thread Wil Genovese

Wayne,

I spent over 5 years working with Real Estate data and the RETS servers.  The 
misfortunate part of RETS is that there is NOT a standard.  Every MLS market 
implements RETS differently.  I've written a RETS client in ColdFusion once.  
It's market specific and the client owns the code. The best I can suggest is to 
look at phRets and decided if you want to use that or rewrite that to 
ColdFusion.

The thing to remember it that it's all XML.  NExt you have to make http calls 
to get the meta data, then parse that out then do another http call to get the 
next level meta data and parse that out. You keep doing this until you have all 
the meta data that describes the entire data structure. Then create the 
structure in your DB. Then you start doing http calls to get the data.  If the 
market is a large MLS market, you may have problems with memory limits in the 
JVM. I've had to run upwards of 4Gb or more in the heap and setup fairly 
aggressive garbage collections.  Your server side needs to be fast. The process 
of RETS means the code will be running for maybe an hour or more (depending on 
the data set) and could be making hundreds of HTTP calls. 

Getting images is almost as fun. But I found I could get them with ColdFusion 
via RETS and save them to a drive rather quickly. The data is in binary format 
and may not seem obvious at first when you make the first RETS object call. But 
ColdFusion will process the data and you can save the image.

I just looked in my "junk" code folder where I keep all sorts of test code 
snippets.  I found some RETS test code that may help you.  I'll send it 
privately.


Good Luck!


Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Aug 6, 2011, at 2:36 PM, Wayne Gregor wrote:

> 
> I need to convert over a couple of real estate website that 
> are currently receiving MLS data via an hourly FTP feed.  
> The new system handed down by the National Association of 
> Realtors is RETS .
> 
> Do any of you know if there are any CFC functions out there 
> that would make it easier for me to interface with this new 
> system?
> 
> 
> -- 
> *Wayne Gregori*
> Office: 510-895-1066
> Cell: 510-219-3887
> w...@sfnet.com
> 
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346561
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Run a class file generated with CF outside of CF

2011-08-06 Thread Nathan Strutz

Yeah, it's probably not going to happen. I mean, I am getting famous for
saying that it's software, so we can do anything, but the problem is the
amount of work it takes to do a thing. In this case you have to load a good
amount of the CF server into memory, all the other related classes (one
.class for the cfc, one for each cffunction, etc.), then fake a request &
response object, or whatever servlets do (I knew at one point). Your best
bet is to not do this.

It would be much easier to call your CF server rather than try to use the
generated code out of context. There are many ways to call into CF from
Java. The easiest one would be to hit it via a HTTP URI. Second easiest
would be a web service. Third, you can use the CF services gateway - you can
set up a local socket listener, which should be really performant. Also, I
think Terrence Ryan had a project on RIAForge that lets you call it via the
command line console.

I wonder, what is the underlying reason for wanting to call the generated
classes? Sort of an odd request. Why are you doing this? Maybe there's a
better way to accomplish your end goal.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sat, Aug 6, 2011 at 10:53 AM, Brook Davies  wrote:

>
> Hey, I don't know if this is possible. I want to take a class file from the
> cfclasses/ directory and run it from the command line outside of the CF
> server.  It complains about not being able to find some cf related classes.
> I assume this is not at all possible since the classes include lots of CF
> specific classes for various functions. Is that right? Is this not
> possible?
>
>
>
> Brook
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346560
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RETS - Real Estate Standards Organization - XML feed - anyone have any experience

2011-08-06 Thread Wayne Gregor

I need to convert over a couple of real estate website that 
are currently receiving MLS data via an hourly FTP feed.  
The new system handed down by the National Association of 
Realtors is RETS .

Do any of you know if there are any CFC functions out there 
that would make it easier for me to interface with this new 
system?


-- 
*Wayne Gregori*
Office: 510-895-1066
Cell: 510-219-3887
w...@sfnet.com


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346559
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Run a class file generated with CF outside of CF

2011-08-06 Thread Brook Davies

Hey, I don't know if this is possible. I want to take a class file from the
cfclasses/ directory and run it from the command line outside of the CF
server.  It complains about not being able to find some cf related classes.
I assume this is not at all possible since the classes include lots of CF
specific classes for various functions. Is that right? Is this not possible?

 

Brook




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346558
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF 9 ODBC data source with Windows 2008 64-bit

2011-08-06 Thread Nathan Chen

Actually what I am trying to do is to use JDBC by choosing "Other"
rather than "ODBC Socket" on CF Admin data source setup page, and what I
need are the values/syntax for these entries:

JDBC URL: 
Driver Class: 
Driver Name: 

I looked the documentation but still don't know what to enter. Has
anyone done this before?

Nathan Chen



-Original Message-
From: Nathan Chen [mailto:nathan.c...@cu.edu] 
Sent: Thursday, August 04, 2011 1:08 PM
To: cf-talk
Subject: RE: CF 9 ODBC data source with Windows 2008 64-bit


Dave and All:

I downloaded and installed JDBC 4.2 from DataDirect site. Now I am not
sure what the strings on the CF Admin data source setup page should look
like. I select "Other" on the driver drop-down and on the second page:
should I enter these?

JDBC URL: jdbc:oracle:@myDBServer.myDomain.com:ORCL
Driver Class: oralce.jbdc.OracleDriver
Driver Name: oracle.jar

How about the connection string field in the advanced settings section?
Can someone who has done this before help me out? I am using Oracle 10g
and Win 2008 R2 64-bit.

Nathan

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, July 25, 2011 11:20 AM
To: cf-talk
Subject: Re: CF 9 ODBC data source with Windows 2008 64-bit


> I am guessing this issue has been discussed but I just haven't
followed
> it. In my production server(Windows 2008 R2 64-bit), I installed
Oracle
> 11g client and I was able to connect to my Oracle 10g DB via the odbc
> DSN I created. But when I went to CF Admin and tried to create a DSN
> using ODBC Socket driver, it gives me this mismatch error.

Is it possible for you to use the JDBC driver instead - either CF
(DataDirect) or Oracle?

If not, you'll need to download and install a 64-bit Oracle ODBC
driver, if such a thing exists. But I'd recommend using JDBC if at all
possible.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346557
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm