ColdFusion 11 Questions

I have a few questions about CF 11. I have just installed CF 11 on a Windows 8 server. This
is an all new server and software installation. It isn’t to where it can be
viewed outside of our network just yet until we have everything installed and
running properly on it. When it is all complete we will turn off the current
server and change the name of this one and make it public. We have the
certificate on it from the live site. So the name of the certificate and the
name of the server do not match.I have had my websites on CF 7, CF 8 and CF 9
servers previously.
We have used mappings on all of our previous versions with image tags and ahref tags. Have
things changed in CF 11 to not allow this anymore? An example is <img
src="/PACTlogin/loginIMages/LoginPicture1.jpg" alt="Login Image"
/>.(/PACTlogin is the mapping) We use the mappings like this because we have
dynamic pages being built. The same goes for ahref tags. An example of it is <a
href="/pact/pactacademy/Index.cfm">PACT Academy</a> (/pact
is the mapping). I have the mapping set up in the administrator just like I
have used on all previous versions of CF. On CF 11 it says the image is
missing. When you right click on the image it is actually looking for the image
in a folder called PACTlogin or pact. Which doesn’t actually exist because it
is a mapping. The mappings continue to work as expected in CF tags like
cflocation or cfinclude. What is the work around to get this to work again? Do
you create an application variable in the Application.cfc and use it in the tag
like <img src="<cfoutput>#application.Addr#</cfoutput>/login/loginIMages/LoginPicture1.jpg"
alt="" />? Is there a better way to do this? What are some ideas?
I have googled lots of things and haven’t come up with much except that CF is being
used with HTML 5 and since HTML tags like img and ahref are not cf tags it
doesn’t recognize the link as a mapping as it did before. Is this correct?
I have taken and created an application variable on Application.cfc and used it in place of
the mappings and it still isn’t working. An example is <img src="<cfoutput>#application.Addr#</cfoutput>/login/loginIMages/LoginPicture1.jpg"
alt="login Image" />. Any ideas on why this won’t work either?
Here is what my page looks like now.
This is what the page looks like when I go directly to the image in the browser.
It is totally blank. Not even an X…
I would appreciate any help or ideas. Thank you in advance.

If your HTML <IMG> tag is pointing to a normal image (PNG, JPG, GIF, etc...) then ColdFusion is not involved whatsoever.  Only the webserver, IIS, serves images using the code you've entered.  IIS has no idea what your CF Mappings are.  CFLocation and CFInclude, however, are CF tags and so are processed by CF and are aware of the CF mappings.
What I imagine has happened is your old servers has Virtual Directories defined in IIS that were identical to your CF Mappings.  Compare you directory structures in IIS between your old and new servers to see if this is the case.

Similar Messages

  • New to ColdFusion - Question regarding best practice

    Hello there.
    I have been programming in Java/C#/PHP for the past two years or so, and as of late have really taken a liking to ColdFusion.
    The question that I have is around the actual seperation of code and if there are any best practices that are preached using this language. While I was learning Java, I was taught that it's best to have several layers in your code; example: Front end (JSPs or ASP) -> Business Objects -> Daos -> Database. All of the code that I have written using these three languages have followed this simple structure, for the most part.
    As I dive deeper into ColdFusion, most of the examples that I have seen from vetrans of this language don't really incorporate much seperation. And I'm not referring to the simple "here's what this function does" type of examples online where most of the code is written in one file. I've been able to see projects that have been created with this language.
    I work with a couple developers who have been writing in ColdFusion for a few years and posed this question to them as well. Their response was something to the affect of, "I'm not sure if there are any best practices for this, but it doesn't really seem like there's much of an issue making calls like this".
    I have searched online for any type of best practices or discussions around this and haven't seen much of anything.
    I do still consider myself somewhat of a noobling when it comes to programming, but matters of best practice are important to me for any language that I learn more about.
    Thanks for the help.

    Frameworks for Web Applications can require alot of overhead, more than you might normally need programming ColdFusion, I have worked with Frameworks, including Fusebox, what I discovered is when handing a project over to a different developer, it took them over a month before they were able to fully understand the Fusebox framework and then program it comfortably. I decided to not use Fusebox on other projects for this reason.
    For maintainability sometimes its better to not use a framework, while there are a number of ColdFusion developers, those that know the Fusebox framework are in the minority. When using a framework, you always have to consider the amount of time to learn it and succesfuly implement it. Alot of it depends on how much of your code you want to reuse. One thing you have to consider, is if you need to make a change to the web application, how many files will you have to modify? Sometimes its more files with a framework than if you just write code without a framework.
    While working on a website for Electronic Component sourcing, I encountered this dynamic several times.
    Michael G. Workman
    [email protected]
    http://www.usbid.com
    http://ic.locate-ic.com

  • Spry and Coldfusion question

    I have a query that I am displaying on the page, but I would
    also like to
    use some of the Spry functionality to use the blind effect. I
    have a feeling
    though that each <div> needs to be numbered seperately
    for spry to work on
    each item.
    How would you have your <cfoutput> and also have a
    different <div ID> ? Loop
    over the ID adding a different number to each one?

    Yes. Just output some value from the query as the ID, and
    then use that same ID in your Spry Effect constructor.
    id="id_#rs.CurrentRow#
    or whatever query value you want.

  • Splitting a room at the Coldfusion Conferance

    Hello,
    So I know this isn't the standard coldfusion question people ask around here but with the annoucement of the Coldfusion Conferance dates and hotel rooms I figured might as well check. I want to go and the Mandalay Bay Resort says the room comes with two queen beds. Is anyone interested in possible splitting the cost of a room?

    Never mind - found it:   http://cfsummit.adobeevents.com/

  • IFS with Coldfusion

    Hi,
    I'm a beginner with IFS and I have many problems.
    I need to connect to a IFS server with Coldfusion. Is this possible?
    I know that there is some java API we can use to connect to the server and I read that I need to copy the oracle/ifs/server/properties/IfsDefault.properties in the classpath of the Client application. Is that correct?
    My DBA tell me that this file doesn't exist on his server. Is this possible?

    I don't know about the coldfusion question, but as long as you can run Java code from your server, you should be able to do it. Now on to connection issue.
    If the version installed on the server is officially the Content Management SDK version and not the previous one called IFS, then the documentation you have for connecting to IFS is out of date. (I found this out recently as well since we just upgraded)
    You need to make sure that these jar files are in your classpath:
    cmsdk.jar
    mcsdk_client.jar
    Tell your admin that those files are in the home directory of CMS under the lib directory.
    Here is also some sample java code on how to connect to the repository. As you'll see we created a Connector class.
    import oracle.ifs.beans.*;
    import oracle.ifs.common.ConnectOptions;
    import oracle.ifs.common.Credential;
    import oracle.ifs.common.CleartextCredential;
    public class Connector
    public static LibrarySession getLibrarySession(String username, String password,
    String serviceName, String schemaPassword, String serviceConfigurationName
    , String domainName) throws Exception {
    try {
    LibraryService service = null;
    try {
    service = LibraryService.findService(serviceName);
    } catch (Exception ex) {
    //start the service because it probably wasn't found to be running
    //service = LibraryService.startService(serviceName, servicePassword);
    service = LibraryService.startService(serviceName
    , schemaPassword
    , serviceConfigurationName
    , domainName);
    CleartextCredential me = new CleartextCredential(username,password);
    ConnectOptions connect = new ConnectOptions();
    LibrarySession ifsSession = service.connect(me,connect);
    return ifsSession;
    } catch (Exception e) {
    throw e;
    To find out what to pass to this class. check the javadoc of the oracle content management. Look at the LibraryService class. In there is a good explanation of how to use the startService method.
    Hope this helps.

  • Quotation Marks display as boxes

    I need to figure out why in some instance quotation marks
    display as boxes.
    This may also be a ColdFusion question but I'll start here:
    I have a site that displays articles from a coldfusion
    database. The articles display fine. There is no css or font tag
    applied to the text (so basically displaying default fonts).
    Now, I gave the page a new name and surrounded the code with
    formatting css. All quotation marks display as square box. I
    thought it may depend on the font that I chose (Ariel). So I
    removed the css style sheet for a moment but the quotation marks
    still show as box. Since I have the same code to pull the data,
    same browser, same computer, this is puzzling.
    Any idea what is causing this?
    Thanks.

    Are the quotes 'straight' quotes, or 'curly' quotes? Although
    both straight
    and curly quotes are special characters (&quot; and
    &#8220; respectively) a
    ' " ' (i.e. straight quote) will usually appear as a straight
    quote when put
    directly in the code, but I have never had curly quotes
    appear correctly. I
    guess this is because quotes are used within attributes and
    so on in regular
    HTML.
    If this isn't your problem then someone else will answer
    better than I
    have...
    Regards,
    Bruce
    "weblinkstudio" <[email protected]> wrote in
    message
    news:gnv4mg$82f$[email protected]..
    >I need to figure out why in some instance quotation marks
    display as boxes.
    > This may also be a ColdFusion question but I'll start
    here:
    >
    > I have a site that displays articles from a coldfusion
    database. The
    > articles
    > display fine. There is no css or font tag applied to the
    text (so
    > basically
    > displaying default fonts).
    >
    > Now, I gave the page a new name and surrounded the code
    with formatting
    > css.
    > All quotation marks display as square box. I thought it
    may depend on the
    > font
    > that I chose (Ariel). So I removed the css style sheet
    for a moment but
    > the
    > quotation marks still show as box. Since I have the same
    code to pull the
    > data,
    > same browser, same computer, this is puzzling.
    > Any idea what is causing this?
    > Thanks.
    >

  • Freetext search in sql server

    Hello all-
    This is much more a SQL Server question than a ColdFusion
    question- but I'm not using Transact SQL, so the SQL Server
    resources aren't really telling me anything I need to know.
    I'm using FREETEXT for full-text searching on SQL Server
    2000. (CF8 on Windows) Currently this gives me an 'OR' search.
    So if I put in 3 words such as: 'web policy manual' the
    search will come back with anything that contains ANY of those
    words.
    Does anyone know how to change that to an AND search that
    will return only the documents that contain all three?
    Thanks for any help-
    Karl

    I did end up using CONTAINS, but it took me a few tries to
    get it right.
    Contains with an 'OR' is easy, but contains with 'AND' means
    that each word in your search criteria needs to be in a different
    function. And none of those functions can fail, or the whole thing
    will fail.
    So first I had to clean up the search critiera, then do the
    search itself. I have attached code samples below.
    Thanks for the suggestions-

  • Cf7 / jrun / apache2 - 404 error handling

    Hello,
    As I understand it with a CF7 / jrun / Apache setup, when a
    404 occurs Apache sets a 404 code in the header and passes the 404
    off to ColdFusion for handling. I would like to leverage the power
    of Apache's mod_rewrite module for 404 errors btu am running into
    some troubles. I have not been able to find a way to stop Apache
    from passing 404 errors off to ColdFusion and so far, my
    mod_rewrite rules in a virtualhost block are being skipped over
    when a 404 occurs.
    Perhaps this is not a ColdFusion question but a jrun or
    Apache one. If anyone's reading this and has a similar server setup
    and uses Apache for 404 handling of cfm files, please share how
    you're doing it. Or if anyone knows of a better place to post this,
    I'm all ears.
    Thanks everyone!
    -Matt MacDougall

    Try doing the settings in the Administrator once again. You never know.
    On the page Debug Output Settings, tick the checkbox Enable Robust Exception Information. Press the button to Submit Changes.
    On the page Debugging IP Addresses, verify that your IP (for example, 127.0.0.1) has been added. If not, add it.

  • Displaying images at a fraction of the size

    This may not be a coldfusion question but I'm going to ask it
    here anyway because cfml developers are the smartest. :)
    I have a table that stores images paths and in my cfm file I
    pull the path and display the image. What I want to do is take that
    image and display it at a fraction of the size without harcoding
    the height and width parts of the img tag. Can I do this? Is there
    a way to detect the width and height of an image before displaying
    it?
    Thanks

    Here is one way:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_39.html#5 171309
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com
    "idesdema" <[email protected]> wrote in
    message news:g5gn1h$sr3$[email protected]..
    > This may not be a coldfusion question but I'm going to
    ask it here anyway
    > because cfml developers are the smartest. :)
    >
    > I have a table that stores images paths and in my cfm
    file I pull the path and
    > display the image. What I want to do is take that image
    and display it at a
    > fraction of the size without harcoding the height and
    width parts of the img
    > tag. Can I do this? Is there a way to detect the width
    and height of an image
    > before displaying it?
    >
    > Thanks
    >

  • Dreamwaever/CF Form Display Issue

    This is a comnination Dreamweaver/Coldfusion question.  I'll post to both forums.
    I just noticed that when I use <CFFORM>...</CFFORM> tags in Dreamweaver, Dreamweaver shows the form (in display mode) with an extra whitespace above the form. It doesn't display on the Web but it makes the document look different. If I temporarily change the CFFORM to HTML FORM tags, the space goes away.
    The form is between 2 tables - but it seems to happen no matter where I move it.
    Anything I am missing on this?  I am using DW CS3.
    Thanks,
    hefterr

    Hi Kash,
    I have worked on this 2 weeks back.
    Please do the follwoing things...
    1)   In SE71 do copy from client for QM_CERT* from client 000 to whichever client u r working on right.
    2)   Of which particularly QM_CERT_01 sap script you should copy to create your custom sap script layout.
    3)   Well now comes the assignment of this layout to the standard driver program.
    It is actually a very different process.
    There is something called as Certificate profiles to which these certificates (layouts) are attached. Over there you simply need to replace the standard script QM_CERT_01, by ur custom script.
    4)  Now lets see how to attach it, follow this process.
    Go to SAP EASY ACCESS MENU
    click on drop down Logistics --> Quality Management --> Quality Certificate -->Output -->Certificate Profile --> Assignment --> Change
    there u'll see the condition type...on top click on header data.
    u'll be taken to another window.
    there u'll be able to see the standard sap script name QM_CERT_01.
    simply remove that name...enter the name of ur custom sap script and save the profile.
    that's it...now whenever u'll execute the standard transaction QC21, u'll see ur layout.
    later u can debug, if some values are not seen...but i'm sure overall layout will be the one that u have designed.
    I'm sure it'll help you, do let me knw...All The Best
    Regards,
    RadhikaS

  • What does this do - TestThis(hello)

    I was recently asked a ColdFusion question during a job
    interview. I was asked as to what this line of code does.
    <CFSET SomeVariable = TestThis(hello)>
    My first thought was that this creates a structure with
    "hello" as a key. But then I started to think that this is sending
    "Hello" into a custom tag. Can anyone shed some light on this. I
    just want to know if my initial response was correct since I was
    just guessing. Thanks!

    My take - a variable named "hello" is being passed into a
    function named "TestThis". The "TestThis" function returns a value
    which is stored in a variable named "SomeVariable".

  • Coldfusion8 internal server error

    I can not loging into coldfusion administrator page.
    I get an internal server error 500
    Need Help,
    GEORGES,

    Hi georgeslys,
    You may be new to ColdFusion, that's why you don't know CF is
    the abbreviation for ColdFusion
    Questions:
    1. When you installed CF, did you specify Built-in web server
    or did you choose IIS as your web server DURING installation?
    2. If you've installed it as the Built-in server, could you
    log into your CF Admin page via the link
    http://127.0.0.1:8500/cfide/administrator/
    3. Did you make sure that the IIS connector is properly
    installed? If not, please click on the Web Server connector tool
    under Start-> Programs -> Macromedia (or Adobe) ->
    ColdFusion -> Web Server Configuration Tool. Any Configured web
    server will be listed. If none is listed, click on Add and proceed.
    Then restart your Web server and CF.
    That should do the trick.
    Regards,
    Yogesh

  • Updating from Version 5 to 10

    Hello everyone,
         I am looking into upgrading from Coldfusion 5 to 10 and was wondering if anyone knows first off if this can be accomplished and if it can if there are any issues/bugs that I might need to be aware of. We have some code that is already there and working but wanted to get to the most current version so any help would be much appreciated.
    Thanks in advance

    No it is not.  I am sorry I just registered and was in a Coldfusion question and it must have moved me when I logged in.  My appologies.

  • CFFORM/Dreamweaver Display Issue

    This is not exactly a Coldfusion question - but is sort of is
    I just noticed that when I use <CFFORM>...</CFFORM> tags in Dreamweaver, Dreamweaver shows the form (in display mode) with an extra whitespace above the form. It doesn't display on the Web but it makes the document look different. If I temporarily change the CFFORM to HTML FORM tags, the space goes away.
    The form is between 2 tables - but it seems to happen no matter where I move it
    Anything I am missing on this?
    Thanks,
    hefterr

    This is not exactly a Coldfusion question - but is sort of is
    I just noticed that when I use <CFFORM>...</CFFORM> tags in Dreamweaver, Dreamweaver shows the form (in display mode) with an extra whitespace above the form. It doesn't display on the Web but it makes the document look different. If I temporarily change the CFFORM to HTML FORM tags, the space goes away.
    The form is between 2 tables - but it seems to happen no matter where I move it
    Anything I am missing on this?
    Thanks,
    hefterr

  • ColdFusion 11: custom serialisers. More questions than answers

    G'day:
    I am reposting this from my blog ("ColdFusion 11: custom serialisers. More questions than answers") at the suggestion of Adobe support:
    @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85) April 29, 2014
    This particular question is not regarding <cfclient>, hence posting it on the regular forum, not on the mobile-specific one as Anit suggested. I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.
    G'day:
    I've been wanting to write an article about the new custom serialiser one can have in ColdFusion 11, but having looked at it I have more questions than I have answers, so I have put it off. But, equally, I have no place to ask the questions, so I'm stymied. So I figured I'd write an article covering my initial questions. Maybe someone can answer then.
    ColdFusion 11 has added the notion of a custom serialiser a website can have (docs: "Support for pluggable serializer and deserializer"). The idea is that whilst Adobe can dictate the serialisation rules for its own data types, it cannot sensibly infer how a CFC instance might get serialised: as each CFC represents a different data "schema", there is no "one size fits all" approach to handling it. So this is where the custom serialiser comes in. Kind of. If it wasn't a bit rubbish. Here's my exploration thusfar.
    One can specify a custom serialiser by adding a setting to Application.cfc:
    component {     this.name = "serialiser01";     this.customSerializer="Serialiser"; }
    In this case the value - Serialiser - is the name of a CFC, eg:
    // Serialiser.cfccomponent {     public function canSerialize(){         logArgs(args=arguments, from=getFunctionCalledName());         return true;     }     public function canDeserialize(){         logArgs(args=arguments, from=getFunctionCalledName());         return true;     }     public function serialize(){         logArgs(args=arguments, from=getFunctionCalledName());         return "SERIALISED";     }     public function deserialize(){         logArgs(args=arguments, from=getFunctionCalledName());         return "DESERIALISED";     }     private function logArgs(required struct args, required string from){         var dumpFile = getDirectoryFromPath(getCurrentTemplatePath()) & "dump_#from#.html";         if (fileExists(dumpFile)){             fileDelete(dumpFile);         }         writeDump(var=args, label=from, output=dumpFile, format="html");     } }
    This CFC needs to implement four methods:
    canSerialize() - indicates whether something can be serialised by the serialiser;
    canDeserialize() - indicates whether something can be deserialised by the serialiser;
    serialize() - the function used to serialise something
    deserialize() - the function used to deserialise something
    I'm being purposely vague on those functions for a reason. I'll get to that.
    The first [issue] in the implementation here is that for the custom serialisation to work, all four of those methods must be implemented in the serisalisation CFC. So common sense would dictate that a way to enforce that would be to require the CFC to implement an interface. That's what interfaces are for. Now I know people will argue the merit of having interfaces in CFML, but I don't really give a [monkey's] about that: CFML has interfaces, and this is what they're for. So when one specifies the serialiser in Application.cfc and it doesn't fulfil the interface requirement, it should error. Right then. When one specifies the inappropriate tool for the job. What instead happens is if the functions are omitted, one will get erratic behaviour in the application, through to outright errors when ColdFusion goes to call the functions and cannot find it. EG: if I have canSerialize() but no serialize() method, CF will error when it comes to serialise something:
    JSON serialization failure: Unable to serialize to JSON.
    Reason : The method serialize was not found in component C:/wwwroot/scribble/shared/git/blogExamples/coldfusion/CF11/customerserialiser/Serialiser .cfc.
    The error occurred inC:/wwwroot/scribble/shared/git/blogExamples/coldfusion/CF11/customerserialiser/testBasic.c fm: line 4
    2 : o = new Basic();
    3 :
    4 : serialised = serializeJson(o);5 : writeDump([serialised]);
    6 :
    Note that the error comes when I go to serialise something, not when ColdFusion is told about the serialiser in the first place. This is just lazy/thoughtless implementation on the part of Adobe. It invites bugs, and is just sloppy.
    The second [issue] follows immediately on from this.
    Given my sample serialiser above, I then run this test code to examine some stuff:
    o = new Basic(); serialised = serializeJson(o); writeDump([serialised]); deserialised = deserializeJson(serialised); writeDump([deserialised]);
    So all I'm doing is using (de)serializeJson() as a baseline to see how the functions work. here's Basic.cfc, btw:
    component { }
    And the test output:
    array
    1
    SERIALISED
    array
    1
    DESERIALISED
    This is as one would expect. OK, so that "works". But now... you'll've noted I am logging the arguments each of the serialisation methods receives, as I got.
    Here's the arguments passed to canSerialize():
    canSerialize - struct
    1
    XML
    My reaction to that is: "[WTH]?" Why is canSerialize() being passed the string "XML" when I'm trying to serialise an object of type Basic.cfc?
    Here's the docs for canSerialize() (from the page I linked to earlier):
    CanSerialize - Returns a boolean value and takes the "Accept Type" of the request as the argument. You can return true if you want the customserialzer to serialize the data to the passed argument type.
    Again, back to "[WTH]?" What's the "Accept type" of the request? And what the hell has the request got to do with a call to serializeJson()? You might think that "Accept type" references some HTTP header or something, but there is no "Accept type" header in the HTTP spec (that I can find: "Hypertext Transfer Protocol -- HTTP/1.1: 14 Header Field Definitions"). There's an "Accept" header (in this case: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"), and other ones like "Accept-Encoding", "Accept-Language"... but none of which contain a value of "XML". Even if there was... how would it be relevant to the question as to whether a Basic.cfc instance can be serialised? Raised as bug: 3750730.
    serialize() gets more sensible arguments:
    serialize - struct
    1
    https://www.blogger.com/nullserialize - component scribble.shared.git.blogExamples.coldfusion.CF11.customerserialiser.Basic
    2
    JSON
    So the first is the object to serialise (which surely should be part of the question canSerialize() is supposed to ask, and the format to serialise to. Cool.
    canDeserialize() is passed this:
    canDeserialize - struct
    1
    JSON
    I guess it's because it's being called from deserializeJson(), so it's legit to expect the input value is indeed JSON. Fair enough. (Note: I'm not actually passing it JSON, but that's beside the point here).
    And deserialize() is passed this:
    deserialize - struct
    1
    SERIALISED
    2
    JSON
    3
    [empty string]
    The first argument is the value to work on, and the second is the type of deserialisation to do. I have no idea what the third argument is for, and it's not mentioned directly or indirectly on that docs page. So dunno what the story is there.
    The next issue isn't a code-oriented one, but an implementation one: how the hell are we expected to work with this?
    The only way to work here is for each function to have a long array of IF/ELSEIF statements which somehow identify each object type that is serialisable, and then return true from canSerialise(), or in the case of serialize(), go ahead and do the serialisation. So this means this one CFC needs to know about everything which can be serialised in the entire application. Talk about a failure in "separation of concerns".
    You know the best way of determining if an object can be seriaslised? Ask it! Don't rely on something else needing to know. This can be achieved very easily in one of two ways:
    Check to see if the object implements a "Serializable" interface, which requires a serialize() method to exist.
    Or simply take the duck-typing approach: if a CFC implements a serialize() method: it can be serialised. By calling that method. Job done.
    Either approach would work fine, keeps things nicely encapsulated, and I see merits in both. And either make far more sense than Adobe's approach. Which is like something from the "OO Failures Special Needs" class.
    Deserialisation is trickier. Because it relies on somehow working out how to deserialise() an object. I'm not sure of the best approach here, but - again - how to deserialise something should be as close to the thing needing deserialisation as possible. IE: something in the serialised data itself which can be used to bootstrap the process.
    This could simply be a matter of specifying a CFC type at a known place in the serialised data. EG: Adobe stipulates that if the serialised data is JSON, and at the top level of the JSON is a key eg: type, and the value is an extant CFC... use that CFC's deserialize() method. Or it could look for an object which contains a type and a method, or whatever. But Adobe can specify a contract there.
    The only place I see a centralised CFC being relevant here is for a mechanism for handling serialised data that is neither a ColdFusion internal type, nor identifiable as above. In this case, perhaps they could provide a mechanism for a serialisation router, which basically has a bunch of routes (if/elseifs if need be) which contains logic as to how to work out how to deserialise the data. But it should not be the actual deserialiser, it should simply have the mechanism to find out how to do it. This is actually pretty much the same in operation as the deserialize() approach in the current implementation, but it doesn't need the canDeserialize() method (it can return false at the end of the routing), and it doesn't need to know about serialising. And also it's not the main mechanism to do the deserialisation, it's just the fall back if the prescribed approach hasn't been used.
    TBH, this still sounds a bit jerry-built, and I'm open for better suggestions. This is probably a well-trod subject in other languages, so it might be worth looking at how the likes of Groovy, Ruby or even PHP (eek!) achieve this.
    There's still another issue with the current approach. And this demonstrates that the Adobe guys don't actually work with either CFML applications or even modern websites. This approach only works for a single, stand-alone website (like how we might have done in 2001). What if I'm not in the business of building websites, but I build applications such as FW/1 or ColdBox or the like? Or any sort of "helper" application. They cannot use the current Adobe implementation of the customserializer. Why? Because the serialisation code needs to be in a website-specific CFC. There's no way for Luis to implement a custom serialiser in ColdBox (for example), and then have it work for someone using ColdBox. Because it relies on either editing Application.cfc to specify a different CFC, or editing the existing customSerializer CFC. Neither of which are very good solutions. This should have been immediately apparent to the Adobe engineer(s) implementing this stuff had they actually had any experience with modern web applications (which generally aren't just a single monolithic site, but an aggregation of various other sub applications). Equally, I know it's not a case of having thought about this and [I'm just missing something], because when I asked them the other day, at first they didn't even get what I was asking, but when I clarified were just like "oh yeah... um... err... yeah, you can't do that. We'll... have to... ah yeah". This has been raised as bug 3750731.
    So I declare the intent here valid, but the implementation to be more alpha- / pre-release- quality, not release-ready.
    Still: it could be easily deprecated and rework fairly easily. I've raised this as bug 3750732.
    Or am I missing something?
    Adam

    Yes, you can easily add additional questions to the Lookup.WebClient.Questions Lookup to allow some additional choices. We have added quite a few additional choices, we have noticed that removing them once people have selected them causes some errors.
    You can also customize the required number of questions to select when each user sets them up as well as the number required to be correct to reset the password, these options are in the System Configuration settings.
    If you need multi-language versions of the questions, you will also need to modify the appropriate language resource file in the xlWebApp.war file to provide the necessary translations for the values entered into the Lookup.

Maybe you are looking for

  • Can someone help me with a problem I have publishing photos to Facebook and Flickr

    I am using LR4.4 on my HP laptop (Windows 7 Home premium) with Mozilla Firefox as my default browser. I was able to publish some photos from LR to my Facebook account early in October. I have some new photos to publish, but find I now can no longer p

  • Photo Booth Crashes Every Time I Attempt To Open It

    Okay Group, Here's another one for you.  Starting last week Photo Booth crashes everytime I attempt to open it.  Here's the report Process:         Photo Booth [31941] Path:            /Applications/Photo Booth.app/Contents/MacOS/Photo Booth Identifi

  • How do I delete songs that will not let me swipe to the left and delete?

    There are two songs in my iTunes library that I cannot delete.  I have tried swiping to the left to delete but nothing will work.  I have also tried to delete them off my playlist on my mac, but they do not show up on the computer playlist

  • 11.5.7 form in 11.5.10.2 environment??

    Hello All, We did a migrate from 11.5.7 to 11.5.10.2 a while back. The user's are claiming/compalining that at least 2 of the forms are not behaving as they used to. One of them is the Supplier Inquiry form (APXVDMVD.fmb). There was a mod to it where

  • Worst online shopping experience of my entire life. Hands down.

    I ordered a pc from bestbuy.com on 4/28. on 5/5, I received an email stating they had cancelled my order. I have called 1-800bestbuy at least a dozen times now. Between getting transferred randomly and disconnected, I have been given the run around a