You need to sign in to do that
Don't have an account?
dkorba2k5
Rerender Question
Wondering if someone can post a simple example of the following. I've got two picklists that I'm populating dynamically. I was able to get this to work within the pageBlockSection tags. However, I need this to work in terms of a spreadsheet-like/grid-entry. So I need to see how to do it using a dataTable tag instead. So it would look something like:
Row 1 Quantity -- Picklist 1 -- Picklist 2
Row 2 Quantity -- Picklist 1 -- Picklist 2
Where Picklist 2 re-renders based on Picklist 1 for each row independently
Thanks in advance
Row 1 Quantity -- Picklist 1 -- Picklist 2
Row 2 Quantity -- Picklist 1 -- Picklist 2
Where Picklist 2 re-renders based on Picklist 1 for each row independently
Thanks in advance
<apex:column width="10"><apex:facet name="header">Category</apex:facet>
<apex:selectList value="{!category}" size="1" id="category" styleClass="tabletext">
<apex:selectOptions value="{!categories}"/>
<apex:actionSupport event="onchange" rerender="family"/>
</apex:selectList>
</apex:column>
<apex:column width="10"><apex:facet name="header">Family</apex:facet>
<apex:outputPanel id="family">
<apex:selectList value="{!family}" size="1" styleClass="tabletext">
<apex:selectOptions value="{!families}"/>
</apex:selectList>
</apex:outputPanel>
</apex:column>
It's not re-rendering anything. Thanks for your help.
It also just hit me that this is actually a little more complicated that I thought as there will be many different picklists with many different values. Post your code if possible as this is probably going to require a wrapper class.
-Jason
So here's the VF page I have so far:
Here's the controller: