My requirement is when we select language from drop down that language related information should appear.I tried this way its not getting my requirement..

<apex:page controller="pages" language="{!selected}">
<apex:form >
<div >
<apex:actionRegion >
<apex:actionFunction name="RefreshRole" rerender="sam" status="checkboxtc">
<apex:param name="firstParam" assignTo="{!selected}" value=""/>
Language:<apex:selectList id="subroleList" value="{!selected}" onchange="RefreshRole(this.value)" size="1" >
<apex:selectOption itemLabel="----------------" itemValue="none"></apex:selectOption>
<apex:selectOption itemLabel="nl" itemValue="nl"></apex:selectOption>
<apex:selectOption itemLabel="de" itemValue="de"></apex:selectOption>       
 <div class="item-label" id="sam">{!$Label.sample}</div> 
  • I would recommend to make it URL param, and on selection -- just redirect to page with language param. if that still fill your requirements
    – kurunve
    Mar 11, 2016 at 7:49
  • can you provide any reference site please?
    – user28833
    Mar 11, 2016 at 8:07
  • It is different my requirement different can you please help on when we select language in dropdown how it will add in url...
    – user28833
    Mar 11, 2016 at 9:35
  • generate the url in your controller. There you have the 'selected' variable. Mar 11, 2016 at 15:04

1 Answer 1


Rerender should contain Salesforce Id for Apex Component like

You can't put DOM element id in Rerender.

I mean you may put but it wouldn't work unless that DOM element Id matches some Apex Component Id, which should be the parent element for the stuff you want to rerender

You must log in to answer this question.