Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
Community Articles > WebSphere Portal > Developing > Developing Themes for WebSphere Portal > Add service to Live Object Framework aka LOF at runtime
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Dilip Sa Kumar
Contribution Summary:
  • Articles authored: 1
  • Articles edited: 6
  • Comments Posted: 7

Recent articles by this author

Add service to Live Object Framework aka LOF at runtime

Portal provides a markup parsing framework. User of this framework can use this to add their own service.

Community articleAdd service to Live Object Framework aka LOF at runtime

Added by Dilip Sa Kumar | Edited by IBM contributor Dilip Sa Kumar on July 9, 2012 | Version 3
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
Portal provides a markup parsing framework. User of this framework can use this to add their own service.
Tags: LOF

In Portal Using JS Object SemTagSvcPortal developers can now register their service. All they have to ensure is that their js script gets loaded before window.onLoad.

Steps are

1. Write a JS file in following format.

 

var YourObjectName ={
callbackFunc: function(  ) {
    var relevantObjects = this;

now do what is required for each node.

 }

}

Add Following line at the end of your JS

SemTagSvcPortal.registerService({"id":"yourhandlerid" Use com.ibm..yourhandlerid to make this unique,"test" :"","callback": YourObjectName.callbackFunc,"classnames":[your selector detail for node e.g if you want to work on nodes which have class camMenuAction then ".camMenuAction" ]} );

LOF uses CSS Selectors.

Above is applicable for Portal 8001 Fix pack release.

 

Once JS is written. Add this to a module and include the module in your profile which You will have apply to your page. If module is new then after these steps you will have to restart the Portal.

 

 

 

 


  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (3)Jul 9, 2012 1:29:19 AMDilip Sa Kumar  IBM contributor
2Jul 9, 2012 1:26:54 AMDilip Sa Kumar  IBM contributor
1Jul 9, 2012 1:25:33 AMDilip Sa Kumar  IBM contributor
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 ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use