Restricting movability of portlet by width

In Setting width of portlet column in WebSphere Portal entry i did explain how to set width of vertical container, Now the next question is how do i make sure that if my portlet requires say 600px to display markup, user does not drag it into container which is only 300 px in size. In other words how do i restrict where user is able to drag the portlet.

By default the WPS wont check width of portlet before either adding or moving portlet to container so you will have to follow these steps to enable that support

First go the Configure Mode in the Edit layout portlet and check "Check portlets width before adding or moving portlets to a column" Check box like this

Then go the WebSphere Application Server Admin Console for WebSphere Portal server and go to Resource Environment Provider -> WP_ConfigService and add a Custom Property like this

Property Name -> PortletPlacementFilterImpl
Property Value ->

Save your changes and restart the WebSphere Portal Server

Follow the steps described in the Setting width of portlet column in WebSphere Portal entry to set width for the vertical column.

Last step would be to set what is the width of portlet or putting restrictions on the portlet, that you can do by setting a MAX_WIDTH preference like this

Now if you try, you wont be able to drag or add this portlet which has MAX_WIDTH set to 500px to any container with width less than 500 px. If you try that the portlet wont get dragged to the smaller container but no error is displayed to user, but if you look inside the SystemOut.log you will see this error


Vikas Chaudhary said...

Battery Mantra is Authorized exide car battery dealer in Noida and Greater Noida. We are providing our service in Indirapuram, Delhi, Ashok Nagar.

Exide Battery Dealer in Noida
Battery Dealer in Noida
Authorized Battery Dealer in Noida
Car Battery Dealer in Noida
Car Battery Dealer
Exide Battery Dealer

srjwebsolutions said...

We are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

EG MEDI said... is online medical store pharmacy in laxmi nagar Delhi. You can Order prescription/OTC medicines online.
Cash on Delivery available. Free Home Delivery

Online Pharmacy in Delhi
Buy Online medicine in Delhi
Online Pharmacy in laxmi nagar
Buy Online medicine in laxmi nagar
Onine Medical Store in Delhi
Online Medical store in laxmi nagar
Online medicine store in delhi
online medicine store in laxmi nagar
Purchase Medicine Online
Online Pharmacy India
Online Medical Store