当我点击联系人时,未显示联系人的详细信息,请告知我们要进行的更改。
<apex:page sidebar="false" showHeader="false" standardController="Account">
<apex:form >
<apex:pageBlock title="Hello {!$User.FirstName}!">
You are displaying contacts from{!account.name} name.
click a Contact's name to view his or her details.
</apex:pageBlock>
<apex:pageBlock title="contacts">
<apex:dataTable value="{!Account.contacts}" var="ac">
<apex:column >
<apex:commandLink reRender="details">
{!ac.name}
<apex:param name="cid" value="{!ac.id}" />
</apex:commandLink>
</apex:column>
</apex:dataTable>
</apex:pageBlock>
<apex:outputPanel id="details">
<apex:actionStatus startText="Requesting...">
<apex:facet name="stop">
<apex:detail subject="{!$CurrentPage.Parameters.acid}" relatedList="false" title="false"/>
</apex:facet>
</apex:actionStatus>
</apex:outputPanel>
</apex:form>
</apex:page>
这是我的VFpage的屏幕截图:
chrome-extension://mcbpblocgmgfnpjjppndjkmgjaogfceg/fsCaptured.html
答案 0 :(得分:0)
正确的代码如下:
<apex:detail subject="{!$CurrentPage.Parameters.cid}" relatedList="false" title="false"/>
必须通过名称来调用顶点参数。
VFpage的屏幕截图
铬扩展://mcbpblocgmgfnpjjppndjkmgjaogfceg/fsCaptured.html