Use [ code ] some HTML [/ code] (with no spaces in the "tags" when you want to put some HTML code in this forum.
see the rendering features (documention).
there are rendering option, to change the way the html is produced.
for rewritting your own,
see RegionTagHandler.java class for the jsp tag.
and then DivRegionRenderer.java or EmptyRegionRenderer.java as some example of renderer.
check in the xml descriptor file, where the type of renderer can be set.
(This names are for 2.6... some may have change since 2.4... a few changes have been done, for better portal api).
This is quiet easy.
I did a PortletRenderer that show no border etc....
but it still put the html tag of decoration (with "no visible" css styles),
So that the shape and size is exactly the same as if there was the decoration.
EmptyRenderer do some "no html tag at all".
It is not the same : no table tag etc... and the portlet is not in the same alignement, not the same borders etc.... with the others in the same region.
thx, i would like to remove the render of the following code:
<div id='top'> <div class="portlet-container"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="portlet-content-left"> </td> <td class="portlet-body"> <div class="portlet-content-center">
If you remove this you need to adapt the theme accordingly.
The empty td, does something it has a CSS class associated that includer the left border of the window.
As Antoine mentioned you can create your own Renderer (and if you build a cool one, please share it). See the reference documentation,
This very specific markup is built by the following class: