You need to sign in to do that
Don't have an account?
Problem with rendering outputpanel
Hi,
I am a newbie in VF. The requirement is to select category, then render subcategory, based on subcategory selected render Zip codes. We are using different objeccts and getting the data as query. Read in VF guide that we cant render the pageblocksectionitem, so put it under output pannel. Data should be shown as links. Pls help me identfying the problem:
<apex:pageblocksection >
<apex:pageblocksectionItem >
<b>Select categories::</b>
<apex:repeat value="{!categories}" var="cat" id="theRepeat1">
<apex:commandLink id="catlist" value="{!cat.name}" rerender="subcat1">
<apex:param name="selectedcat" value="{!cat.name}" assignTo="{!selectedcat}"/>
</apex:commandLink>
<apex:outputText > || </apex:outputText>
</apex:repeat> </apex:pageblocksectionItem></apex:pageblocksection>
<br></br>
<apex:pageblocksection ><apex:pageBlockSectionItem >
<apex:outputPanel id="subcat1">
<b>Sub-categories:</b>
<apex:repeat value="{!subcategories}" var="subcat" id="theRepeat2">
<apex:commandLink id="subcatlist" value="{!subcat.name}" rerender="zip1" >
<apex:param name="selectedsubcat" value="{!subcat.name}" assignTo="{!selectedsubcat}"/> </apex:commandlink>
<apex:outputText > || </apex:outputText>
</apex:repeat>
</apex:outputPanel></apex:pageBlockSectionItem> </apex:pageblocksection>
.
.
.
and similar for Zip codes...
Thanks in advance for your help
Hi, Any answers?
Try by adding the rendered option in <apex:outputPanel> tag similar to as shown below:
<apex:outputPanel id="softwareDevCategory" rendered="{!(selectedCat == 'Software Development')}">
.......
</apex:outputPanel>