function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ETFETF 

Duplicate field display when including apex:detail inside apex:tab

We started using tabbed VF pages using code similar to the following:
 
Code:
<apex:page standardController="Contact" showHeader="true" tabStyle="Contact" >
   <apex:tabPanel switchType="client" selectedTab="Details" id="theTabPanel">
      <apex:tab label="Contact Details" name="Details" id="tabdetails">
         <apex:detail relatedList="false" title="true"/>
      </apex:tab>
      <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt">
         <apex:relatedList subject="{!Contact}" list="NotesAndAttachments" />
      </apex:tab>
   </apex:tabPanel>
</apex:page>

This looks nice and is much more readable, but the problem is that the detail tab has duplicate fields displayed - any required field is displayed at its layout location as well as at the end of the section.  This is happening with both custom and regular objects.
 
Any idea why this is happening?
 
Thanks! 
 

 
 
 
 
vfundvfund

It doesn't seem related, but if there are relatedList tags on the page, removing the subject fixes this problem - from <apex:relatedList subject="{!Contact}" list="" />  to <apex:relatedList list="" /> .



Message Edited by vfund on 12-02-2008 07:16 AM