+ Start a Discussion
pradyprady 

Rerendering a block section having a Apex:repeat generating junk code on the page

Hi,

 

I am having a strange behaviour where i am rerending a pageblocksection  with apex:repeat in it.

There is a lot of code which gets displayed on the page before the rerendered block.

 

Here is the VF code

<apex:pageblocksection id="tableApp" >
    
<table >

<apex:repeat var="slot" value="{!LstString}">
    <tr>
        <td><apex:outputText value="{!slot}"/></td>
    </tr>   
</apex:repeat>
 </table>
</apex:pageblocksection>  

 LstString is just a string list with values 'Hello1' and 'Hello', these do get displayed after all the code. Below is just someportion of the code

window.parent.ViewstateInspectorComponent.reload([{"displayName": "View State","name": "View State","viewstateSize": 6.94,"percentOfParent": 100.0,"percentOfTotalViewstate": 100.0,"leaf": false,"isGroupable": false,"identityCode": "6e523dd735efff132c1e67c5262c35e","children": [{"displayName": "Component Tree","name": "Component Tree","viewstateSize": 0.86,"percentOfParent": 12.0,"percentOfTotalViewstate": 12.0,"leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "17edd43e203dfc18ed7fe6e7be261c5e"},{"displayName": "State","name": "State","viewstateSize": 6.31,"percentOfParent": 91.0,"percentOfTotalViewstate": 91.0,"leaf": false,"isGroupable": false,"identityCode": "af39ef0b8654ec315b38a3ef99899c9b","children": [{"displayName": "Expressions","name": "Expressions","viewstateSize": 0.78,"percentOfParent": 12.0,"percentOfTotalViewstate": 11.0,"leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "1323ef8c11294a914f516bc978c31c0c"},{"displayName": "Controllers","name": "Controllers","viewstateSize": 1.38,"percentOfParent": 22.0,"percentOfTotalViewstate": 20.0,"leaf": false,"isGroupable": false,"identityCode": "942eb2063c41d08a0ca6aa51b630f33a","children": [{"displayName": "AppointmentController","name": "AppointmentController","type": "Page appointment Controller","viewstateSize": 1.38,"percentOfParent": 100.0,"percentOfTotalViewstate": 20.0,"leaf": false,"iconCls": "task","isGroupable": false,"identityCode": "cb8e372ef47deb542dbcebdaee026829","children": [{"displayName": "Appointment","name": "Appointment","type": "Appointment__c","viewstateSize": 0.19,"percentOfParent": 14.0,"percentOfTotalViewstate": 3.0,"leaf": false,"iconCls": "task","isGroupable": false,"identityCode": "51de7edfe97fcac51452a095ab7244ad","children": [{"displayName": "Start_Date__c","name": "Start_Date__c","type": "String","viewstateSize": 0.09,"percentOfParent": 47.0,"percentOfTotalViewstate": 1.0,"value": "2011-09-21 00:00:00","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "9f2e82e5ee05b1612b4b0e104b950d4e"},{"displayName": "Appointment_Type__c","name": "Appointment_Type__c","type": "String","viewstateSize": 0.09,"percentOfParent": 47.0,"percentOfTotalViewstate": 1.0,"value": "Call","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "c2a482f6a7d9d08c4e338be5698d53ee"}]},{"displayName": "liTimeSlots [49]","name": "liTimeSlots","type": "LIST<CTimeSlot>","viewstateSize": 0.78,"percentOfParent": 57.0,"percentOfTotalViewstate": 11.0,"leaf": false,"isGroupable": true,"identityCode": "4cf2c84fcc6526b648d786e5180b5958","children": [{"displayName": "0","name": "0","type": "CTimeSlot","viewstateSize": 0.42,"percentOfParent": 54.0,"percentOfTotalViewstate": 6.0,"leaf": false,"iconCls": "task","isGroupable": false,"identityCode": "ecccf8b9fdd988110f245cdf7067b688","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "00:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "fe9f7f6e17d0e09e87406e8c0621e0b7"}]},{"displayName": "1","name": "1","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "434a8ceb403bf52a35d322bfda862e12","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "00:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "cf22d004c7e93a056aa8bfeef3c3d43e"}]},{"displayName": "2","name": "2","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "f04f2b7ceb7384a827ab61fbb16ce1e1","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "01:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "b2ead991fa0073694cb96c81e70d9c66"}]},{"displayName": "3","name": "3","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "d96887ed3f3e01b2af3ad8f361ff127","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "01:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "c95d7a06e01707c1c67926dc265d4d68"}]},{"displayName": "4","name": "4","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "303f199faa0a1412b0e3e3e9954832a","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "02:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "b523c7859ebb7048a82df3447c0b12a6"}]},{"displayName": "5","name": "5","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "a3f05f83896e248caa050d001b222805","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "02:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "b9a6561c069c868c004105262f40836b"}]},{"displayName": "6","name": "6","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "69035039797c57bacf3d6d423a69f3d1","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "03:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "eab55fe7d97a051b82d78ee560dd52a3"}]},{"displayName": "7","name": "7","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "9c2f261a3b5349edd6e037f232c4c727","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "03:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "d3dfa08fe4f3e18facf33636d53d7831"}]},{"displayName": "8","name": "8","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "6a7cfb1d612512041ffd0f04717eddac","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "04:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "7a04e9d2ae70ef5c2bf881fd6bed0331"}]},{"displayName": "9","name": "9","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "3a37ba26fac5a158fe8ac81fb22b2f7d","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "04:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "79be268a2b6a200b1dff17b9a32d8c"}]},{"displayName": "10","name": "10","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "fde751be537d352a9ba9f5b94a8b8fa9","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "05:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "93f1ac3f145420e128765e941e722a41"}]},{"displayName": "11","name": "11","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "1840cc8e032fb7658f3aba9dbaee22a0","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "05:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "5bbbdc2060d533d98c368a34b62baaf0"}]},{"displayName": "12","name": "12","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "b78688f33675536eb5b442c04069e920","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "06:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "75153027f0121aa66fd4ed94ac93a892"}]},{"displayName": "13","name": "13","type": "CTimeSlot","viewstateSize": 0.42,"percentOfParent": 54.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "245ca246e80cf21f9b5e40b9341fffd7","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "06:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "af51dc4b91db493758245f0ac9fbef9e"}]},{"displayName": "14","name": "14","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "9984ce868e0f11e0aba0e88c600dc613","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "07:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "ea5a84d019379fa4f9f88c465e9b4cb8"}]},{"displayName": "15","name": "15","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "cfc0a2f1cab0fca5003b24947cea83a9","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "07:30:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "7c4b0ff21b98653fbb7b133aa74cf1d9"}]},{"displayName": "16","name": "16","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": "ea81f1b209799f8bb720d1d4ce92ea6c","children": [{"displayName": "tStart","name": "tStart","type": "Time","viewstateSize": 0.06,"percentOfParent": 14.0,"percentOfTotalViewstate": 0.9,"value": "08:00:00.000Z","leaf": true,"iconCls": "task","isGroupable": false,"identityCode": "506f3082e8fe83e8cb532e23e56606c3"}]},{"displayName": "17","name": "17","type": "CTimeSlot","viewstateSize": 0.44,"percentOfParent": 56.0,"percentOfTotalViewstate": 6.0,"leaf": false,"isGroupable": false,"identityCode": 

 Any idea why this is happening

Best Answer chosen by Admin (Salesforce Developers) 
Richie DRichie D

Hi,

 

Looks a bit like the code from having development mode turned on for your user. Is this the case? Just look for the 'Development mode checkbox against your user account.

 

Your VF code looks ok and should only be generating the html you would be expecting.

Regards,

Rich.

All Answers

Richie DRichie D

Hi,

 

Looks a bit like the code from having development mode turned on for your user. Is this the case? Just look for the 'Development mode checkbox against your user account.

 

Your VF code looks ok and should only be generating the html you would be expecting.

Regards,

Rich.

This was selected as the best answer
pradyprady

Thanks a lot...

I was breaking my head against the wall .. you just made my day