I've a problem with the legend of my application<br>I'm not able to enable/disable layers!<br><br>i've added this in my template...<br>&lt;cwc2 type=&quot;LegendTemplate&quot; visible=&quot;true&quot; embedded=&quot;true&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template=&quot;legend_template.html&quot; popupstyleresource=&quot;TextButtons&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; popupheight=&quot;500&quot; popupwidth=&quot;300&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status=&quot;true&quot; menubar=&quot;true&quot; controlvisibility=&quot;false&quot;/&gt;
<br><br>and this is the legend layer!<br>[leg_layer_html order=ascending opt_flag=15]<br>&nbsp; &lt;tr bgcolor=&quot;#fcf8c9&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;td align=&quot;center&quot; width=20&gt;&lt;input type=&quot;checkbox&quot; name=&quot;legendlayername[]&quot; 
<br>value=&quot;[leg_layer_name]&quot;<br>&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq value=1]CHECKED[/if]<br>&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq value=2]CHECKED[/if]&gt;<br>&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;img src=&quot;farm.png&quot; width=&quot;18&quot; height=&quot;18&quot; /&gt;&lt;/td&gt;
<br>&nbsp;&nbsp;&nbsp; [if name=wms_name oper=isnull]<br>&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;a href=&quot;#&quot; onclick=&quot;javascript:LegendTemplateLayerInfo('[leg_layer_name]');&quot;&gt;&lt;span class=&quot;label&quot;&gt;[leg_layer_name]&lt;/a&gt;&lt;/td&gt;
<br>&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; [/if]<br>&nbsp;&nbsp;&nbsp; [if name=wms_name oper=isset]<br>&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;a href=&quot;#&quot; onclick=&quot;javascript:LegendTemplateLayerInfo('[leg_layer_name]');&quot;&gt;&lt;span class=&quot;label&quot;&gt;[metadata name=WMS_TITLE]&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
<br>&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; [/if]<br>[/leg_layer_html]<br><br><br>what is Wrong??<br><br>Thank you in advance <br>