Andrew Clarke

systems architecture, e-commerce & database consultant

Andrew Clarke

New CFScaffold release: 201100510

May 10, 2011 · 4 Comments

I've released the latest version of CFScaffold.  Here are some of the main changes:

You can pass in a SmartList to the MetaData object.  There's an example of this in the advanced demo.

I added a couple more CSS classes: linkBackToEntityList, linkHome

I added an "advanced" example, to show some of the non-default options with CFScaffold.  This example uses FW/1 in the background.  The default example was dumbed down to be completely default.  For example, the entities no longer have toString() functions.

I significantly rewrote layouts to modularise the different types of layout components (dropdowns, textareas, etc.) This is still a work in progress. It works, but it's not as clean as I'd like.

settings.ini has a new option: URL_layouts.  See the docs.

layouts/default/includes/displayProperty.cfm

- If a user's permissions do not allow a field to be displayed or edited, the form field value is passed as a hidden field. This has the side-effect of allowing a user who does not have permission to view a field's value to be able to "view source" of the page and see the value ... I think. I need to look back over the code more.

- Account for null sub-object relationships. Previously there would be an error if the foreign key was null.

layouts/default/listObjectInEntity.cfm

- URL_base_edit

/layouts/default/includes/edit_textarea.cfm

- Use textarea instead of cftextarea due to lack of cftextarea support in Railo

/CFCs/CFScaffold.cfc

- Fixed a problem with file uploads on new entities.

- Start allowing blank values (null) in integer fields.

- Fixed spelling error for "associations"

If some of this doesn't make sense, I'm sorry.  I'm sick and I'll try to come back and clean this post up later!

Tags: CFScaffold · ColdFusion · Hibernate · ORM · Railo

4 responses so far ↓

  • 1 Joseph Swenson // May 25, 2011 at 1:53 PM

    Great project!! Running CF 9.0.1 - Getting this error when dropin to a folder:
    "Could not find the ColdFusion component or interface ca.clarke.Factory."
    If I remove the "extends" in the Factory.cfc I get:
    "Either there are no methods with the specified method name and argument types or the init method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity." - Init method not found.
  • 2 Andrew Clarke // Jun 7, 2011 at 10:40 AM

    Hi. Sorry for the delay in getting back to you. I was on vacation when you posted the message.

    Do you have this resolved? It looks like you might have to map "ca" in the ColdFusion Administrator, so that the code knows where to find "ca.clarke.Factory".

    - Andrew.
  • 3 Joseph Swenson // Jun 7, 2011 at 1:08 PM

    Ok, mapping "/ca/clarke/" to the CFCs directory get's a "The ca.clarke.Factory component or interface cannot extend itself."
    The Factory.cfc lookst like it is extending "ca.clarke.Factory" but that isn't in the zip. Thanks in advance!
  • 4 Andrew Clarke // Jun 7, 2011 at 1:15 PM

    You're absolutely right. I just looked at the latest version I uploaded, and it's missing some objects. I'll get those to you separately, and update RIAForge too.

    Thanks for letting me know about that.

Leave a Comment

Leave this field empty