JSP Guidelines

Do not Place HTML Inside the wm:editable Tag

When you develop JSP's using a <wm:editable> tag, do not render the content of the content holder within the tag itself. For example, render content as follows:


<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"></wm:editable>

 

This implementation ensures that personalizations and variants for content elements are rendered correctly.

 

The following are examples of incorrect usage of <wm:editable> tags:


<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div">
   <wm:render presentationName="freestylepresentation content" object="${contentholder}" startSeparator="0" endSeparator="1"/>
</wm:editable>
 <wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"><wm:render object="${contentholder}"/></wm:editable>

 

The <wm:render> tags shown in the examples above may not be used in a <wm:editable> tag.