+ Start a Discussion
Keaton KleinKeaton Klein 

actionsupport renderer="picklist1; picklist2"

I have a picklist which gives the option to select an object (contact, lead, account, etc).  I have a second and third picklist which allow you to pick a field (depending on the object selected in the previous picklist). 

The object picklist has an action support tag which updates the field picklist when the object picklist is updated, this works great.

 <apex:actionSupport event="onchange" rerender="picklist1" />

What i would like is to have 2 field picklists, both of which are updated depending on the object picklist being changed.  Something like...

 <apex:actionSupport event="onchange" rerender="picklist1; picklist2" />

Any input would be appreciated.  Thank you :)


 
Best Answer chosen by Keaton Klein
Boris BachovskiBoris Bachovski
You can certainly reRender multiple components, thought the names have to be comma separated rather than semi-colon separated. Try
rerender="picklist1, picklist2"

 

All Answers

Boris BachovskiBoris Bachovski
You can certainly reRender multiple components, thought the names have to be comma separated rather than semi-colon separated. Try
rerender="picklist1, picklist2"

 
This was selected as the best answer
Keaton KleinKeaton Klein
That does the trick!  I had actually tried this but didn't realize it was case sensitive.  After switching to a comma and correcting a capital letter i am good to go.  Thank again.