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...
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 (hibernate) to use CHAR(2) as sql column type?
...
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.
...
What are the differences (if any) between New/CreateObject() to create an object vs EntityNew() to create an entity in CF9 for persistent CFC?
...
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?
...
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...
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-...
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: ...
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...
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?...
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...
What are some of the things you've observed in ColdFusion 9 with CF-ORM (Hibernate) that one should watch out for?
...
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=...
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 ...
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 ...
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...
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 :)
...
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
...
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...