]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / admin / mobile_provider / admin_form_mobile_provider.tpl
index 156b795db513a22ba1f59d24ad73ec4a03e12290..194d90fcd1db9f187364599a0d6f205b73130d28 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <ui:composition
        xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:widgets="http://mxchange.org/jsf/core/widgets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
@@ -11,7 +12,7 @@
        </h:panelGroup>
 
        <h:panelGroup styleClass="para" layout="block">
-               <fieldset class="fieldset" id="mobile_provider">
+               <fieldset class="fieldset">
                        <legend title="#{msg.ADMIN_MOBILE_PROVIDER_LEGEND_TITLE}">
                                <h:outputText value="#{msg.ADMIN_MOBILE_PROVIDER_LEGEND}" />
                        </legend>
                                </div>
 
                                <div class="table-right-medium">
-                                       <p:selectOneMenu id="providerCountry" value="#{adminMobileProviderController.providerCountry}">
-                                               <f:converter converterId="CountryConverter" />
-                                               <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
-                                       </p:selectOneMenu>
+                                       <widgets:outputCountrySelector id="providerCountry" value="#{adminMobileProviderController.providerCountry}" required="true" requiredMessage="#{msg.ADMIN_MOBILE_PROVIDER_COUNTRY_REQUIRED}" allowNone="false" />
                                </div>
                        </h:panelGroup>
                </fieldset>