如何在apex outputLink标记中使用html dd标记

时间:2019-04-19 06:44:07

标签: apex visualforce

我在Salesforce视觉力页面中新增了

im,我有一个视觉力页面,当我将dd标签用于apex:outputLink时,我看不到结果输出:注意:我需要在dd标签内设置输出值。

VF.page

<div>
  <ul>
    <li><dl class="Menu">
      <dt><a href="#"><span>City URL</span></a></dt>
      <apex:repeat var="x" value="{!cityObjects}" rendered="{!cityObjects!=null && cityObjects.size>0}">
      <apex:outputPanel rendered="{!!(x.objects==null||x.objects.size=0)}">
      <apex:repeat var="y" value="{!x.objects}" rendered="{!x.objects!=null && x.objects.size>0}">
     <!-- This doesn't work -->
     <dd> <apex:outputLink> <a href="{!y.Url__c}!" class="txt_link_style">TEST</a> </apex:outputLink> </dd>
     <!-- This works -->
     <apex:outputLink> <a href="{!y.Url__c}!" class="txt_link_style">TEST</a> </apex:outputLink>
      </apex:repeat>
      </apex:outputPanel>
      </apex:repeat>
      <!-- HTML output -->
      <dd><a href="#!" class="txt_link_style">URL01</a></dd>

      </dl>      
  </ul>
</div>

0 个答案:

没有答案