/
JSP Guidelines

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.

 

 

 

 

 

 

 

 

 

 

 

Related content

Inline Mode Requirements
Inline Mode Requirements
More like this
Example Design Layout
Example Design Layout
More like this
More Component Types
More Component Types
More like this
XperienCentral JSPs
XperienCentral JSPs
More like this
Adding an Input Field to a Component
Adding an Input Field to a Component
More like this