Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.1
  • 6.1.2
  • 6.1.5
  • 6.1.5.1
  • 7.0
  • Ajax
  • Alerts
  • Annotations
  • attachment
  • best practices
  • BlackBerry
  • builder
  • builder faq
  • builders
  • charts
  • Code samples
  • Connections
  • css
  • Custom builder
  • CustomBuilder
  • dashboard
  • Data Access
  • data access faq
  • Data and variables
  • Database
  • Databases
  • Debugging
  • demo
  • demo models
  • demo projects
  • demo widget
  • demos
  • deployment
  • deployment faq
  • Deployment scenarios
  • development
  • dojo
  • Domino
  • faq
  • fixpack
  • General FAQ
  • getting started
  • Help
  • HTML
  • html templates
  • ILOG
  • integration
  • iPhone
  • JViews
  • Learning
  • Logging
  • lotus connections
  • Lotus Widget Factory
  • media dashboard
  • media pf
  • media widget
  • mobile
  • mobile smartphone development
  • Model development
  • new
  • Notifications
  • overview
  • page automation
  • Portal
  • Portal Integration
  • portal integration faq
  • Portlet
  • Portlet Factory 7
  • presentation
  • presentation faq
  • Profiling
  • Quickr
  • REST
  • rest faq
  • REST Service Call
  • restructure handler
  • rich ui
  • sample
  • sample application
  • samples
  • schema
  • Security
  • Smartphones
  • SOA
  • social
  • Source Control
  • sql
  • summary and drilldown
  • Team development
  • Troubleshooting
  • ui
  • User Interface
  • video
  • web 2.0
  • Web Experience Factory
  • Web Experience Factory 8
  • Web Services
  • websphere dashboard framework
  • wef
  • wpf
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > FAQs > Why is it that my target portlet does not appear to be receiving events when using Smart Refresh/PPR or Client Side Aggregation?
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Why is it that my target portlet does not appear to be receiving events when using Smart Refresh/PPR or Client Side Aggregation? 

expanded Abstract
collapsed Abstract
When using Smart Refresh (new in WPF 7.0) or Partial Page Refresh in a model that is firing a Portlet Factory or Cooperative Portlet event only the source portlet UI will be refreshed as a result of the action. The event will have been received by the event handler in the target model, but there was nothing to tell it to refresh its page. There are a couple of ways to remedy this.
ShowTable of Contents
HideTable of Contents
    • 0.0.1 Portlet Factory Events
    • 0.0.2 Cooperative Portlet builder

Portlet Factory Events


When you use Smart Refresh (new in WPF 7.0) or Partial Page Refresh (or Portal's Client Side Aggregation support) in a model that is firing a Portlet Factory event, only the source portlet user interface (UI) will be refreshed as a result of the action. The event will have been received by the event handler in the target model, but there was nothing to tell it to refresh its page. There are a couple of ways to remedy this.

1) In the action UI builder (for example, the Link or Button builder) that is used to initiate the event, you can change the Post-Action Behavior to Always reload the top-most page after running action. To see this option, you will have to check the Show Advanced Option check box. This setting causes the entire portal page to refresh.

2) To avoid reloading the entire portal page, you can do the following. In your source and target models Event Declaration builders, check the Use Client-Side Delivery option. (Also keep the Fire Event on Server checked.) You may also want to specify a unique prefix in these builders as well. In the event target model, you will add a Client Event Handler builder to listen to the specified event, and have it invoke the desired page as its Action. One thing to be aware of: when you are firing a Portlet Factory event with client/server delivery, you should have the link/button/etc. target the event's "fire" method directly. If this cannot be done for some reason, and you need to have the link call some action that in turn fires the event. You will need to set the Post-Action Behavior of the link to Evaluate action results as JavaScript. You must arrange for the value returned by this action to be the value returned by the "fire" method. In an action list, the easiest way to do this is to have the fire method come last.

Here is an overview of the steps when using Factory Events with Smart Refresh:

    1. In your Event Declaration builder, check the Use Client-Side Delivery option. (Also keep the Fire Event on Server checked.)
    2. In the Target model, add an Event Handler and a Client Event Handler builder.
    3. The Event Handler action should only process the data passed to the event. This handler must not do any page processing.
    4. In the Client Event Handler, you should invoke an action that processes a page. Either directly call the page action, or call an action that does a process page.

Cooperative Portlet builder


When you use the Cooperative Portlet builder where the "type" is set to Property Broker Action (that is, you are creating your own action UI Button or Link), you will need to set the Post-Action Behavior to Always reload the top-most page after running action. To see this option, you will have to check the Show Advanced Option checkbox. This setting causes the entire portal page to refresh. In this use case, if you want to avoid the entire page being refreshed, you must change the Portal page to Client Side Aggregation.

expanded Article information
collapsed Article information
Category:
FAQs
Tags:
faq, presentation faq, portal integration faq, smart refresh faq, events faq, cooperative portlet faq

This Version: Version 5 February 2, 2012 10:09:25 AM by Lawrence P Sweeney  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (5)
collapsed Versions (5)
Version Comparison     
Version Date Changed by               Summary of changes
This version (5) Feb 2, 2012 10:09:25 AM Lawrence P Sweeney   Adding some commas, fixing some spelling
4 Jan 27, 2012 10:06:12 AM Thomas Beauvais  
3 Aug 1, 2011 10:37:57 AM Michael Burati  
2 Jul 24, 2011 11:03:59 AM Thomas Beauvais   Added section for Cooperative Portlets
1 Jun 3, 2011 2:55:35 PM Thomas Beauvais   Added new FAQ
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use