<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:body>
<h:form>
<h2>Şimdiki Yerellik</h2>
Dil Kodu : <h:outputText value="#{localeSessionBean.currentLocale.language}"/> <br/>
<h2>Yerellik Seçimi</h2>
Yerellik Seçiniz :
<h:selectOneMenu value="#{localeSessionBean.selectedLocaleCode}">
<f:selectItems
value="#{localeSessionBean.supportedLocaleList}" var="locale"
itemValue="#{locale.language}_#{locale.country}"
itemLabel="#{locale.displayLanguage} (#{locale.displayCountry})"/>
</h:selectOneMenu><br/>
<h:commandButton value="Yerellik Değiştir" action="#{localeSessionBean.changeCurrentLocale()}"/>
</h:form>
</h:body>
</html>
Dosyayı İndir