<div dir="ltr"><div><div><div><div><div><div>Hi Thomas,<br><br></div>You cannot pass objects as request parameters (that's what cms:param tag does).<br></div>Instead you could either store your object in request scope and then access it in your included JSP.<br>
<br></div>Including JSP:<br><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt;font-family:Consolas;color:teal"><</span><span style="font-size:10pt;font-family:Consolas;color:rgb(63,127,127);background:none repeat scroll 0% 0% silver">cms:contentloop</span><span style="font-size:10pt;font-family:Consolas">
<span style="color:rgb(127,0,127)">element</span><span style>=</span><i><span style="color:rgb(42,0,255)">"options"</span></i><span style="color:teal">></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Consolas">      
</span><span style="font-size:10pt;font-family:Consolas;color:teal"><</span><span style="font-size:10pt;font-family:Consolas;color:rgb(63,127,127)">cms:contentaccess</span><span style="font-size:10pt;font-family:Consolas">
<span style="color:rgb(127,0,127)">var</span><span style>=</span><i><span style="color:rgb(42,0,255)">'optionContent'</span></i> scope="request"
<span style="color:teal">/></span></span></p>
<p class="MsoNormal" style="text-autospace:none">                <span style="font-size:10pt;font-family:Consolas;color:teal">
<</span><span style="font-size:10pt;font-family:Consolas;color:rgb(63,127,127);background:none repeat scroll 0% 0% silver">cms:include</span><span style="font-size:10pt;font-family:Consolas">
<span style="color:rgb(127,0,127)">file</span><span style>=</span><i><span style="color:rgb(42,0,255)">"/system/modules/cn.bmw.opencms.mysql.ecrm/templates/option.jsp"</span></i><span style="color:teal">/></span></span><span style="font-size:10pt;font-family:Consolas;color:teal"></span></p>

<span style="font-size:10pt;font-family:Consolas;color:teal"></</span><span style="font-size:10pt;font-family:Consolas;color:rgb(63,127,127)">cms:contentloop</span><span style="font-size:10pt;font-family:Consolas;color:teal">></span> <br>
<br></div>Included JSP (no contentload needed!):<br><br></div><c:if test="${optionContent.hasValue['value']"><br>  ${optionContent.value.value}<br>...<br></div></c:if><br><div><div><div><div>
<c:if test="${optionContent.hasValue['text']"><br>  ${optionContent.value.text}<br>...<br></div><div></c:if><br><br></div><div>or you could pass your string values as request parameters:<br></div>
<div><cms:include ...><br>  <cms:param name="optionValue" value="${optionContent.value.value}"/><br>  <cms:param name="optionText" value="${optionContent.value.text}"/></div>
<div> <br></div><div></cms:include><br></div><div><br></div><div>and access them as follows:<br></div><div>${param.optionValue}<br></div><div>${param.optionText}<br><br></div><div>HTH,<br>Stephan<br></div></div></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-07 1:49 GMT+01:00 Thomas Adams <span dir="ltr"><<a href="mailto:thomas.adams@interone.cn" target="_blank">thomas.adams@interone.cn</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Dear all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I try to apply a JSP template to nested content.<u></u><u></u></p>
<p class="MsoNormal">I have a XSD  like :<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:schema
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">xmlns:xsd="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue"><a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a></span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">elementFormDefault="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">qualified</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://opencms-xmlcontent.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://system/modules/cn.opencms.mysql.ecrm/schemas/formfields/option.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">Selects</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsSelects</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">       …….<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:complexType
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsSelect</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:sequence><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">                     <xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">options</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOption</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">0</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">unbounded</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">              </xsd:sequence><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">              <xsd:attribute
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">language</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsLocale</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">use="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">optional</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"></xsd:complexType><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"></xsd:schema><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><u></u> <u></u></span></p>
<p class="MsoNormal">With the CmsOption XSD:<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:schema
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">xmlns:xsd="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue"><a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a></span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">elementFormDefault="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">qualified</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://opencms-xmlcontent.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">Options</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOptions</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">       ….<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:complexType
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOption</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:sequence></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">value</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsString</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">text</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsString</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">              </xsd:sequence></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><xsd:attribute
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">language</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsLocale</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">use="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">optional</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f007f">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">/></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"></xsd:complexType></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"></xsd:schema><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f"><u></u> <u></u></span></p>
<p class="MsoNormal">And the option template option.jsp as :<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">cms:contentload</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">collector</span><span style>=</span><i><span style="color:#2a00ff">'singleFile'</span></i>
<span style="color:#7f007f">param</span><span style>=</span><i><span style="color:#2a00ff">'%(opencms.filename)'</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentaccess</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionContent'</span></i>
<span style="color:teal">/></span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:template</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">element</span><span style>=</span><i><span style="color:#2a00ff">"option"</span></i><span style="color:teal">><u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal">              <</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionValue'</span></i>
<span style="color:#7f007f">value</span><span style>=</span><i><span style="color:#2a00ff">''</span></i><span style="color:teal">/></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">ifexists</span><span style>=</span><i><span style="color:#2a00ff">'optionContent.value'</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionValue'</span></i><span style="color:teal">><</span><span style="color:#3f7f7f">cms:contentshow</span>
<span style="color:#7f007f">element</span><span style>=</span><i><span style="color:#2a00ff">'optionContent.value'</span></i>
<span style="color:teal">/></</span><span style="color:#3f7f7f">c:set</span><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:if</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">test</span><span style>=</span><i><span style="color:#2a00ff">'</span></i><span style>${!</span><b><span style="color:#7f0055">empty
</span></b><span style>optionValue}</span><i><span style="color:#2a00ff">'</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionValue'</span></i>
<span style="color:#7f007f">value</span><span style>=</span><i><span style="color:#2a00ff">' value="</span></i><span style>${value}</span><i><span style="color:#2a00ff">"'</span></i><span style="color:teal">/></span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:if</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionText'</span></i>
<span style="color:#7f007f">value</span><span style>=</span><i><span style="color:#2a00ff">''</span></i><span style="color:teal">/></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">ifexists</span><span style>=</span><i><span style="color:#2a00ff">'optionContent.text'</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionText'</span></i><span style="color:teal">><</span><span style="color:#3f7f7f">cms:contentshow</span>
<span style="color:#7f007f">element</span><span style>=</span><i><span style="color:#2a00ff">'optionContent.text'</span></i>
<span style="color:teal">/></</span><span style="color:#3f7f7f">c:set</span><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
<span style="color:teal"><</span><span style="color:#3f7f7f;background:silver">option</span><span style="color:teal"><</span><span style="color:#3f7f7f">c:out</span>
<span style="color:#7f007f">escapeXml</span><span style>=</span><i><span style="color:#2a00ff">'false'</span></i>
<span style="color:#7f007f">value</span><span style>=</span>'<span style>${optionClass}${optionId}${optionDisabled}${optionSelected}${optionValue}</span>'
<span style="color:teal">/>><</span><span style="color:#3f7f7f">c:out</span> <span style="color:#7f007f">
value</span><span style>=</span><i><span style="color:#2a00ff">"</span></i><span style>${optionText}</span><i><span style="color:#2a00ff">"</span></i><span style="color:teal">/></</span><span style="color:#3f7f7f;background:silver">option</span><span style="color:teal">></span><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:template</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:teal"></cms:contentload>  
</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For both XSD I have setup corresponding resourcetypes and corresponding templates JSP’s<u></u><u></u></p>
<p class="MsoNormal">Within the template for the select now I want to apply the template of the options resource like:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">cms:contentloop</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">element</span><span style>=</span><i><span style="color:#2a00ff">"options"</span></i><span style="color:teal">></span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentaccess</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">var</span><span style>=</span><i><span style="color:#2a00ff">'optionContent'</span></i>
<span style="color:teal">/></span></span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">                <span style="font-size:10.0pt;font-family:Consolas;color:teal">
<</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">cms:include</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">file</span><span style>=</span><i><span style="color:#2a00ff">"/system/modules/cn.bmw.opencms.mysql.ecrm/templates/option.jsp"</span></i><span style="color:teal">></span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:param</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7f007f">name</span><span style>=</span><i><span style="color:#2a00ff">"optionContent"</span></i>
<span style="color:#7f007f">value</span><span style>=</span><i><span style="color:#2a00ff">"</span></i><span style>${optionContent}</span><i><span style="color:#2a00ff">"</span></i><span style="color:teal">/></span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f;background:silver">cms:include</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f7f7f">cms:contentloop</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span>     
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">But in the end the options get not correctly rendered the [text] and [value] are missing:<u></u><u></u></p>
<p class="MsoNormal">It renders something like:<u></u><u></u></p>
<p class="MsoNormal"><select …..><u></u><u></u></p>
<p class="MsoNormal">                <option></option> <u></u><u></u></p>
<p class="MsoNormal">                <option></option><u></u><u></u></p>
<p class="MsoNormal">                <option></option><u></u><u></u></p>
<p class="MsoNormal"><select><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">With empty options, Is there any way to achieve this  and to avoid to repeat<u></u><u></u></p>
<p class="MsoNormal">Template code from the option template in the select template again?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Thomas Adams</span></b><b><span style="font-size:9.0pt;font-family:SimSun" lang="ZH-CN">德勤</span></b><span style="font-size:8.5pt;color:#515151"><br>

</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">DIRECTOR APPLICATION DEVELOPMENT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<img alt="io" width="114" height="24"><br>
<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">INTERONE CHINA // AN AGENCY OF BBDO WORLDWIDE<br>
1604, E -TOWER, 12 GUANGHUA ROAD, CHAOYANG DISTRICT, BEIJING 100020, CHINA</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">北京天一国际广告有限公司</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">光华路丙</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif"">12</span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">号数码</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif"">01</span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">大厦</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif"">1604</span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">室,</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif"">100020 </span><span style="font-size:8.5pt;font-family:SimSun" lang="ZH-CN">北京,朝阳区</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>

<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">PHONE</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif""> <a href="tel:%2B86%2010.65%2091%203792" value="+861065913792" target="_blank">+86 10.65 91 3792</a> <b>EXT.</b> -3026 <b>// MOBILE</b></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">+86
 139 1059 0750</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<br>
</span><span style="color:#1f497d"><a href="https://mail.weboutlook.hk/owa/redir.aspx?C=4f9ed844d60c4108874abc272e3662e9&URL=http%3a%2f%2fwww.interone.cn%2f" target="_blank"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">WWW.INTERONE.CN</span></b></a></span><b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>

<br>
</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#515151">PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS E-MAIL.</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>