IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Script Blocks Question

    Posted Tue October 18, 2011 05:24 PM

    Hello guys

    Is there any relationship between CAF sections (view root, form) and the final html sections (head, body)?

    Can I include script blocks in CAF for the head tag in html?

    Sorry by my english.

    Regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Script Blocks Question

    Posted Tue October 18, 2011 06:14 PM

    The portlet’s view file won’t be rendered until well after the “html” and “head” tag are rendered. They are executed while the “body” tag is being rendered.

    The only mechanism that you currently have for modifying the contents of the head tag are by modifying the html_head.nbsp file. This file is located in MWS/server//deploy/portal.war/ui/system/html_head.nbsp

    MWS will not pay attention to any modifications to this file unless you start in debug mode. (I’d recommend making a backup before making any changes).
    Once you restart in debug mode (and after many other files are recompiled) you can make changes to this file and each browser request will force a recompile.

    Please note that any upgrade is likely to revert any of your changes and you’ll need to re-apply them.
    Hope this helps,
    –mark


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: Script Blocks Question

    Posted Tue October 18, 2011 06:50 PM

    Thanks Mark.

    A friend is trying to implement jquery on image clasification. I have not experience on jquery but looking on the example he gave me, the jquery scripts are located in the head sections. That was the reason of my post. I’d attached the example, please take a look on it (if you can) and tell me if its possible to do it.

    regards.
    jqueryExample.zip (109 KB)


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 4.  RE: Script Blocks Question

    Posted Tue October 18, 2011 07:12 PM

    I know that others have integrated JQuery js libs with CAF. You can certainly include all of the css, images and javascript files into the section of the page. I don’t think that i can commit to spending the time on this JQuery example though to help you fully integrate it.

    –mark


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 5.  RE: Script Blocks Question

    Posted Thu October 20, 2011 01:28 PM

    Thanks Mark. It was not my intention you help me to implement, I’ve attached the example to be more clear in my question.

    When you say: “You can certainly include all of the css, images and javascript files into the section”, I assume that you refer to the first mail where you say about modify the file is located in MWS/server//deploy/portal.war/ui/system/html_head.nbsp. Is that ok?

    Regards.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine