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.  Reset preferences

    Posted Wed August 11, 2010 06:45 PM

    Hi All,
    I have a portlet bean which is in session scope. I have created preferences in my portlet A, to wire information to other portlet B.

    I want to refresh the preferences to empty values, at the time of loading the page. There is a catch here. I will do a async refresh of my portlet A on a user action.

    Can any body suggest me how to do it?

    Thanks in advance,

    • Kumar

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


  • 2.  RE: Reset preferences

    Posted Thu August 12, 2010 12:28 PM

    Hi
    one option would be to create a method that sets the preference values to empty Strings (or whatever type you used) and stores those preferences. You place then an Async Hidden Command in your view and an Script Block. In the script block you would “click” the Async Hidden Command (using CAF JavaScript) reacting to the event “load” of the view (you can google for a sample on how to do this).

    hope this helps,
    Javier


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