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
chuckwalleychuckwalley 

Rerender not... well... rendering

I am building a dynamic picklist and cannot get the second picklist to rerender.

 

this is my page

<h1>THIS IS WHERE THE PROBLEM EXISTS</h1>
		
<apex:outputpanel id="USAT" rendered="{!isWeekend = false}">
  <apex:outputpanel >
   <apex:pageBlockSection columns="1">
     <apex:pageblockSectionItem >
         <apex:outputLabel value="Sales Team:" for="SalesTeam"/>
          <apex:selectList value="{!vChosenSalesTeam}" id="SalesTeamList" required="true" multiselect="false" size="1"  >
             <apex:selectOptions value="{!SalesTeams}"/>
             <apex:actionSupport event="onchange"  action="{!getTeamMembers}"  rerender="USAT" />
           </apex:selectList>
     </apex:pageblockSectionItem>	
				
     <apex:pageblockSectionItem >
       <apex:outputLabel value="Team Member:" for="TeamMembers"/>
         <apex:selectList id="TeamMemberList"  value="{!vChosenSalesPerson}" required="true" multiselect="false" size="1"  >
	   <apex:selectOptions value="{!TeamMembers}"/>
	 </apex:selectList>
     </apex:pageblockSectionItem>					
		 	
    </apex:pageBlockSection>
  </apex:outputpanel>
</apex:outputpanel>

 

this is the method in my controller

 

    public pageReference  getTeamMembers()
    
    {
       
       list<SelectOption> TeamMembers = new list<SelectOption>();
       
       TeamMembers.add(new SelectOption('- None -', '- None -')); 
       
          for (User UList : 
             [SELECT Id, Name
              FROM   User
              WHERE  Sales_Team__c = :vChosenSalesTeam
              AND    Sales_Team__c != null  
              AND    IsActive = true
              AND    AMS_Territory__c != null
              AND    Property__c in ('1531 - Republic Media', 'NST', 'USAT', 'USAT SPORTS', 'USA WEEKEND')   
              ORDER  BY Name
              LIMIT  125])
           {
             TeamMembers.add(new SelectOption(UList.Name, Ulist.Name));  
           }      

       return null;          
    } 

 Getters and Setters: 

 

     public boolean vIsClientCheckBox           {get; Set;}
     public boolean vIsDigitalAgencyCheckBox    {get; Set;}
     public boolean vIsPrintAgencyCheckBox      {get; Set;}
     public boolean vIsIntegratedSeller         {get; Set;}
     
     public string  vChosenSalesTeam            {get; Set;}
     public string  vChosenSalesPerson          {get; Set;} 
     public list<selectOption> TeamMembers      {get; Set;} 

 

The first picklist renders properly. The second -- nothing. My debug log shows the list is built. 

 

 

 

Any help is greatly appreciated. 

 

Thanks, 

 

Chuck

 



 

 

 

tukmoltukmol

your getTeamMembers() is processing nicely... but it returns null.