Remove portlet button Maximize/Minimize

Pubblicato da lentux-informatica il

  •  
  •  
  •  
  •  
  •  

With this method you can remove portlet button from JBoss.

JBoss Portal provides an open source platform for hosting and serving a portal’s Web interface, publishing and managing its content, and customizing its experience.

It supports a wide range of features, including standard portlets, single sign-on, clustering, and internationalization.

With JBoss Portlet Tools you can easily create a Java, JSF and Seam portlet and deploy it to JBoss Portal.

JBoss Portlet Tools supports the JSR-168 Portlet Specification (Portlet 1.0) and JSR-286 Portlet Specification (Portlet 2.0).

He works with JBoss Portlet Bridge for supporting Portlets in JSF/Seam applications.

To enable these features, you need to add the JBoss Portlet facet to a new or an existing web project (see Chapter 2, JBoss Portlet Tools Tasks).

The project could be a non-WTP project, but you should know that if it does not have the proper portlet API JAR’s, the generated classes will have compile errors.

The next table lists key features supplied by JBoss Portlet Tools.




To remove the buttons from JBoss you are the top-right of portlet simply edit the css file used according to the buttons you want to delete.

 

I make the example for the Maximize button but the same is true for both the button and the Minimize button Normal.

.portlet-mode-maximized {
display:none;
visibility:hidden;
position:absolute;
left:-9999em;
}

Simply replace the “.portlet-mode-maximized” with :

".portlet-mode-minimized
" and ".portlet-mode-normal"


  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Categorie: Programmazione