You need to sign in to do that
Don't have an account?
Krishnan Mishra
Why my output panel is not rendered even if the condition is true?
I want my outputPanel with id = form to be rendred only if the condition is true,In the debug log i checked my condition is getting true but still i cannot see my output panel.Following is my code:
<apex:component controller="PaginationForComponent" > <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> function SuccessFailure(msg) { if(msg == '') { window.top.location.reload() } else { alert(msg); } } $(document).ready(function(){ funAtLast(); alert('document.ready called'); }); </script> <apex:attribute name="objectName" description="The object's name" type="String" required="true" assignTo="{!objName}"/> <apex:attribute name="fieldName" description="Fields to be displayed" type="String" required="true" assignTo="{!fieldNames}"/> <apex:form > <apex:actionFunction action="{!docReady}" name="funAtLast" reRender="none"/> <apex:commandButton value="Process" reRender="form,alpha,table,button"/> <apex:outputPanel id="form" rendered="{!allContactList.size!=0}"> <!-- For alphabetic search--> <apex:pageBlock id="alpha"> <div align="right"> <apex:panelGrid > <apex:repeat value="{!alphabet}" var="alph"> <apex:commandLink value="{!alph} | " action="{!alphaSearch}" reRender="table,button"> <apex:param name="a" value="{!alph}" assignTo="{!alphaSearchConct}"/> </apex:commandLink> </apex:repeat> </apex:panelGrid> </div> </apex:outputPanel> </apex:outputPanel> </apex:form > </apex:component>
Krishnan,
In your given code, close tag of '<apex:pageBlock>' was missing. I checked the rest of the code by reffering it inside a VF page and it was working fine.
Best regards
Sampath