Monday, August 12, 2013

Changing or setting up Page Title of a JSR-286 Portlet dynamically

Hello Friends,

To write into the HTML head section of your JSR 286 portlet, for example, to change a page title, use the addProperty method on the PortletResponse.

Invoke the addProperty method to modify the HTML head section.

PortletReponse.addProperty(String key, org.w3c.dom.Element element)

Note: When modifying the HTML head section, you must invoke the addProperty method before the response headers are committed. This should occur no later than during the render headers sub phase of the render lifecycle phase.

Example:

protected void doHeaders(RenderRequest request, RenderResponse response)
{
    Element title = response.createElement("title");
    title.setTextContent("My Portal Page Title");
    response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, title);
}

Thanks,
Chirag

Setting headers for a JSR 286 portlet

Hello Friends,


To set HTTP header information in your JSR 286 portlet, use the setProperty and addProperty methods of the PortletResponse.

Specify the appropriate method, depending on whether you want to overwrite or append key values.

setProperty(String key, String value): Overwrites all previous values for the given key.
addProperty(String key, String value): Attempts to append the key value.

When setting headers in the render lifecycle phase, portlets should set the header in the render headers part or simply override the GenericPortlet.doHeaders method to make sure the server's response headers have not already been committed. Note, however, that the delivery of HTTP headers to the client cannot be guaranteed, because other portlets on a page might override it or the setting of some header attributes might be against the portal's policy.

Thanks,
Chirag

Two-Phase rendering support in IBM WebSphere Portal 7.0 and 8.0 with JSR 286 Portlets.

Hello Friends,

When you work on portlets there are certain challenges when it comes to setting up cookies, http headers or changing the page title dynamically. IBM WebSphere Portal with JSR-286 portlets can solve this problem by enabling Two-Phase Rendering.

By default, two-phase rendering is turned off. To enable two-phase rendering for a portlet, you must update the portlet.xml deployment descriptor for the portlet.

Add the following entry to the file:

<portlet>
...
<container-runtime-option>
<name>javax.portlet.renderHeaders</name>
<value>true</value>
</container-runtime-option>
</portlet>

Enjoy,
Chirag Rana




Wednesday, December 12, 2012

Win A Free Copy of IBM Websphere Portal 8: Web Experience Factory and the Cloud e-book


Hello Friends,

Packt Publishing is organizing a give away especially for you. All you need to do is just comment below the post and win a free copy of IBM WebSphere Portal 8: Web Experience Factory and the Cloud. Two lucky winners stand a chance to win an e-copy of the book. Keep reading to find out how you can be one of the Lucky One. Here is the link to the book.



Overview of IBM Websphere Portal 8: Web Experience Factory and the Cloud eBook
  1. The only book that explains the various phases in a complete portal project life cycle
  2. Full of illustrations, diagrams, and tips with clear step-by-step instructions and real time examples
  3. Take a deep dive into Portal architectural analysis, design and deployment 
How to Enter?
  1. Simply post your expectations from this book in comments section below. 
  2. Follow this blog.
  3. You could be one of the 2 lucky participants to win the e-copy.
DeadLine:
The contest will close on 12/31/2012 . Winners will be contacted by email, so be sure to use your real email address when you comment!

Thanks & Regards,
Chirag.

Monday, November 5, 2012

IBM Websphere Portal 8: Web Experience Factory and the Cloud

Hello Friends,


I was looking for a book on IBM WebSphere Portal 8 sometime back. I came across this book. This book describes the Hands on experience on IBM WebSphere Portal 8. With the release of WebSphere Portal 8, IBM recently added a newer member in WebSphere Portal Family.

As I am PRO in WebSphere Portal and IBM Web Content Management, I found this book very helpful. This book have configurations and code which would help anyone who is looking forward to implement or migrate portal application in the industry. I would surely recommend this book to all who wants to checkout WebSphere Portal 8 and WEF cloud.

Here is the link to access the book
http://www.packtpub.com/ibm-websphere-portal-8-web-experience-factory-cloud/book

Hope you guys will enjoy reading the book.

Thanks,
Chirag.


Saturday, October 13, 2012

IBM withdrawing Support for IBM WebSphere Portal 6.1.x

Hello Friends,

Just for your information that IBM is withdrawing Marketing support for WebSphere Portal 6.1.x effective from 14th November 2012.

The technical support will be provided till 14th November 2014.
This means that any industry using Portal 6.1 should think of upgrading to IBM WebSphere Portal 7 or IBM WebSphere Portal 8.0 in couple of years .

Here is the detail schedule on IBM Website.
http://www-01.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_ca/4/897/ENUS912-154/index.html&lang=en&request_locale=en

Thanks & Regards,
Chirag.

Thursday, May 3, 2012

IBM WebSphere Portal 8 has been released finally

Hello Friends,

IBM has finally released WebSphere Portal 8 version. It was in Beta stage since long time and recently a stable version has been released. 

The following updates are major enhancements to the new version:
  • Better integration with IBM Web Content Management:  WCM is truly becoming a integrated part of WebSphere Portal.  New features include Managed Pages where Portal Pages are tied directly to WCM site areas.  The new version creates WCM site areas and content when a new portal page is created.  Portal pages can be included with WCM projects so they can go through approval workflows and get published through the syndication process.
  • A new optimized theme.  Portal themes have been undergoing constant changes in the past versions.  I'm hoping that this latest version is really optimized.
  • New Community Pages that integrate IBM Connections more closely into WebSphere Portal.  When creating a community page, you can specify which Connections community is associated with that page and both Connections and WCM will understand that context.
  • OpenID authentication which lets you use external systems like Facebook to authenticate users.
  • Web analytics overlays allow you to see usage analytics right on your pages without having to generate reports.
  • New installation process using IBM's Installation Manager.  This feature promises easier and faster installs of the portal servers.



Enjoy!

Chirag.