coldfusion-9

Can function argument have hint in cfscript (CF9)?

Can function argument have hint in cfscript (CF9)? CFML style: <cffunction name="myFunc" output="false" returntype="void"> <cfargument name="arg1" type="arg1" default="default" hint="my hint"> ... </cffunction> CF9 cfscript style: public void function myFunc(string arg1='default') { ... } Where to specify hint of the argumen...

Coding conventions for writting cfc's in CF9?

With the new ways of writing CFC in CF9, what are some of the coding convention new to CF9? Here are some I can think of... always use LOCAL scope always include init() method that returns itself, since New will call init() if found. do not put required arguments in init() if it is an ORM entity, otherwise expect Exceptions... always ...

How to ask CF9 ORM to use CHAR(2)?

How to ask CF9 ORM (hibernate) to use CHAR(2) as sql column type? ...

How to define a Not Null column in CF9 ORM?

I tried added @required true to a property, but the table generated by CF9 ORM is still Nullable. Any way to make a column a non-nullable column? Thanks. ...

Differences between New/CreateObject() vs EntityNew() in CF9 for persistent CFC?

What are the differences (if any) between New/CreateObject() to create an object vs EntityNew() to create an entity in CF9 for persistent CFC? ...

Can you split a PDF 'package' into separate files with CF8 or CF9?

The cfpdf tag has lots of options but I can't seem to find one for splitting apart a PDF package into separate files which can be saved to the file system. Is this possible? ...

Remoting options between flex and IIS6 running ASP

We're getting a custom RIA built using flex/flash for the front-end, the display is a scrollable timeline that shows about 100 out of 8,000 total results at a time. Results can be filtered by one of 4-5 criteria. So as a user filters and/or scrolls, we expect a remote call/pagination of some sort for another 100 or so results, each recor...

CF9 ORM Replicate Left Outer Join

Hi there I am using the ORM features in CF9 and am just a bit stuck on how to replicate a left outer join query.. I have a TaskList CFC component output="false" persistent="true"{ property name="iTaskListID" fieldtype="id" generator="native"; property name="sTitle" ormtype="string" length="50"; property name="task" fieldtype="one-to-...

CF9 EntityDelete: How to delete entities

If I have an array of entities, whats the easiest way of deleting the entire array of entities (or to put it this way, the entire ORM table)? I have: <cfset allUsers = EntityLoad("User", {}, false)/> Now to delete all the entities, would I use some sort of a loop? If so, how do I access individual entity primary keys within? I tried: ...

Flex HTTPService: SOAP Response cannot be decoded. Raw response:

Hi guys, I am trying to connect my flex app to a CFC I have which calls a method. It's to test a login control, and when i put the correct credentials in, it comes back with the error: "SOAP Response cannot be decoded. Raw response: ". The CFC method is: <!--- Array of Users is called ---> <cfset user = En...

How to get list of scheduled tasks and last run results in ColdFusion?

We're trying to build a dashboard for our chron jobs -- CF, Java, SQLServer, etc. so that we can see when things were run last, what the result was, and when they're scheduled to run next. Is there a way with the CFAdmin API or some undocumented <cfschedule> trick to get a list of: What tasks are scheduled? What the last run time was?...

bi-directional o2m/m2o beats uni-directional o2m in SQL efficiency?

Use these 2 persistent CFCs for example: // Cat.cfc component persistent="true" { property name="id" fieldtype="id" generator="native"; property name="name"; } // Owner.cfc component persistent="true" { property name="id" fieldtype="id" generator="native"; property name="cats" type="array" fieldtype="one-to-many" cfc="cat" casc...

Things to watch out for in ColdFusion 9 with CF-ORM

What are some of the things you've observed in ColdFusion 9 with CF-ORM (Hibernate) that one should watch out for? ...

CF9 HQL Statement for many-to-many and Multiple Criteria

I have the following setup: Listing.cfc component persistent="true" { property name="ListingId" column="ListingId" type="numeric" ormtype="int" fieldtype="id" generator="identity"; ... property name="Features" type="array" hint="Array of features" singularname="Feature" fieldtype="many-to-many" cfc="Feature" linktable=...

How to setup CF9 with IIS7 (multiple instance, virtual hosting by hostname)

I'm used to setting up CF9 (Dev edition) on my Windows using Apache. I would like to try using IIS7 that comes with Win7 Pro. What are the steps to set it up so that I can have: www.siteA.dev www.siteB.dev Both of these point to 127.0.0.1 via windows host file. I would like siteA.dev & siteB.dev to use 2 different CF instances. I ...

error : java.lang.String cannot be cast to coldfusion.cfc.CFCBeanProxy anyone know about this ?

Does anyone know about this error I get when I try to insert a foreign key value in my entry entity using ColdFusion 9 Hibernate integration? java.lang.ClassCastException: java.lang.String cannot be cast to coldfusion.cfc.CFCBeanProxy Root cause :org.hibernate.HibernateException: java.lang.ClassCastException: java.lang.String ...

Coldbox Security Interceptor

Hi I am new to coldbox and working on a guestbook messaging forum. does anyone know how I can apply some rule in coldbox to show edit and delete for specified users of admin or user in the edit page. I am not sure how to specify this as I already have my rules here as shown in securityRules.xml: SecurityRules.XML ehSecurity\.dspLo...

single sign on using coldfusion with IIS version 5 using NTLM

Hi can anybody direct me on this and how does this get setup. I basically have an application that I want users to be automatically logged into when logging in windows using there id and password so basically they get authenticated to using my coldfusion application ? Any pointers would be greatly appreciated. Thanks :) ...

How to use custom1,custom2,custom3,custom4 in <cfsearch> w/ Solr?

do custom1, custom2, custom3, custom4 attribute of <cfsearch> work with Solr? The documentation said they're only for Verity MATCHES operator. How to use customX with Solr in <cfsearch>? Thanks ...

regenerating url in cf9/Coldbox

Hi I am wondering if there is a way to regenerate the URL when any page is loaded in coldbox/CF9 when using event.buildLink ? Currently I get http://cawksd05.codandev.local:8080/entries/editor when using event.buildlink. But the correct url should have /index.cfm added to it as shown below: /index.cfm/entries/editor Is there a way to...