locale.jsp 1.2 KB

12345678910111213141516171819202122
  1. <%@ page contentType="text/html; charset=UTF-8" %>
  2. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  3. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  4. <%@ include file="../../upper.jsp"%>
  5. <f:loadBundle basename="jsf.locale.bundle.Resource" var="bundle"/>
  6. <f:view>
  7. <h:form id="memberForm">
  8. <h2><h:outputText value="#{bundle.title}" /></h2>
  9. <h:outputText value="#{bundle.keyword}" /><br><hr><br><br>
  10. <h:outputText value="#{bundle.message}" /><br><br>
  11. <h:commandButton id="English" action="changelocale" value="English" actionListener="#{changeLocale.chooseLocale}" />
  12. <h:commandButton id="France" action="changelocale" value="France" actionListener="#{changeLocale.chooseLocale}" />
  13. <h:commandButton id="Korea" action="changelocale" value="Korean" actionListener="#{changeLocale.chooseLocale}" />
  14. <h:commandButton id="Japan" action="changelocale" value="Japanese" actionListener="#{changeLocale.chooseLocale}" />
  15. <h:commandButton id="China" action="changelocale" value="China" actionListener="#{changeLocale.chooseLocale}" />
  16. <h:commandButton id="German" action="changelocale" value="German" actionListener="#{changeLocale.chooseLocale}" />
  17. </h:form>
  18. </f:view>
  19. <%@ include file="../../footer.html"%>