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
bond006bond006 

How can we convert Apex Pageblock Table to HTML Table

Hi,

I have a Apex pageblock table and I want to convert that into HTML table as my VF page is facing the View state size/stack problem. Can somebody convert the below code from Apex Pageblock table to HTML Table?

My Page block Table:
 
<apex:pageBlockTable styleClass="teststyle" id="tables" value="{!EcpieceList}" var="ec2">
      <apex:column style="white-space: nowrap;" width="30px"><apex:facet name="header">MPM:{!mpmNames}</apex:facet>{!ec2.EC_Name__c} <br/> {!ec2.Name}</apex:column>
      <apex:repeat value="{!TitlesecondList}" var="tit2">
          <apex:column ><apex:facet name="header"><apex:outputPanel >{!tit2.Video_Version__c}<br/>{!tit2.Name} <br/><apex:inputCheckbox /> </apex:outputPanel></apex:facet>
                  <apex:repeat value="{!displayECT}" var="ect4">
                        <apex:outputPanel rendered="{!AND(ect4.ecname = ec2.EC_Name__c,ect4.VideoVersion = tit2.Video_Version__c)}" >
                                                  <apex:inputCheckbox value="{!ect4.check}"/>
                         </apex:outputPanel>
                  </apex:repeat>
         </apex:column>
     </apex:repeat>
</apex:pageBlockTable>


The I have tried to create which is not working:
<table> 
                  
                  <tc>
                      <td>MPM:{!mpmNames}</td>
                       <apex:repeat value="{!EcNameList}" var="ec3">
                           <td>
                           <apex:outputText value="{!ec3}"></apex:outputText> 
                           </td>
                       </apex:repeat>
                       
                   </tc>
                   <apex:repeat value="{!TitleList}" var="tit2">
                    <tc>
                     <td>
                        {!tit2.Video_Version__c}<br/>{!tit2.Name} <br/> <apex:inputCheckbox /><apex:actionSupport event="onclick" 
                                action="{!updateAll}" 
                                rerender="table" >
                                <apex:param name="q" value="{!tit2.Video_Version__c}"/>
                                </apex:actionSupport>
                               
                    </td>
                        
                    <apex:repeat value="{!displayECT}" var="ect4" id="rpt">
                    <td>
                     <apex:inputCheckbox value="{!ect4.check}" rendered="{!AND(ect4.VideoVersion = tit2.Video_Version__c)}"/>
                    </td>
                    </apex:repeat>
                         
                   </tc>
                  </apex:repeat> 
            </table>

 
Tejpal KumawatTejpal Kumawat
Hello Bond,

Can you replace :

<tc> with <th>
</tc> with </th>


If this answers your question mark Best Answer it as solution and then hit Like!