[jboss-user] [JBoss Portal] - Re: How to set empty renders for portlets
vivek_saini07
do-not-reply at jboss.com
Sat Apr 18 06:04:35 EDT 2009
anonymous wrote :
| 2) Is it possible to prevent the drag and drop functionalities in left region only ?.
I achived this by modifying renderHeader of DynaRegionRenderer.java
Region for which DnD to be disabled, region name will contain "NonDnD".
| if (options.isDnDEnabled())
| {
| List win =(List)rrc.getWindows();
| boolean isDnD=false;
| Iterator it=win.iterator();
| while(it.hasNext())
| {
|
| WindowContext po=(WindowContext)it.next();
| if(po.getRegionName().indexOf("NonDnD")==-1)
| {
| markup.print("<div class=\"dnd-region\" id=\"");
| markup.print(rrc.getId());
| markup.print("\">");
| }
| Map mapObj=po.getProperties();
|
|
|
|
| }
| // markup.print("<div class=\"dnd-region\" id=\"");
| // markup.print(rrc.getId());
| // markup.print("\">");
| }
| }
| else
| {
| delegate.renderHeader(rendererContext, rrc);
| }
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226311#4226311
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226311
More information about the jboss-user
mailing list