*/
private final List<MobileProvider> allMobileProviders;
+ /**
+ * A list of filtered mobile providers
+ */
+ private List<MobileProvider> filteredMobileProviders;
+
/**
* Remote EJB for mobile providers (regular)
*/
return this.allMobileProviders;
}
+ /**
+ * Getter for filtered mobile provider list
+ * <p>
+ * @return Filtered mobile providers
+ */
+ @SuppressWarnings ("ReturnOfCollectionOrArrayField")
+ public List<MobileProvider> getFilteredMobileProviders () {
+ return this.filteredMobileProviders;
+ }
+
+ /**
+ * Getter for filtered mobile provider list
+ * <p>
+ * @param filteredMobileProviders Filtered mobile providers
+ */
+ @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter")
+ public void setFilteredMobileProviders (final List<MobileProvider> filteredMobileProviders) {
+ this.filteredMobileProviders = filteredMobileProviders;
+ }
+
/**
* Post-construction method
*/
@PostConstruct
- public void init () {
+ public void initCache () {
// Is cache there?
if (!this.mobileProviderCache.iterator().hasNext()) {
// Get whole list
*/
package org.mxchange.jfinancials.beans.profilemode;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
*/
private static final long serialVersionUID = 835_482_364_189L;
+ /**
+ * A list of all profile modes
+ */
+ private final List<ProfileMode> allProfileModes;
+
/**
* Default constructor
*/
public FinancialsProfileModeWebApplicationBean () {
// Call super constructor
super();
+
+ // Init list
+ this.allProfileModes = Arrays.asList(ProfileMode.values());
}
- @Override
- public ProfileMode[] getAllProfileModes () {
+ /**
+ * Getter for all profile modes as array
+ * <p>
+ * @return All profile modes as list
+ */
+ public List<ProfileMode> allProfileModes () {
// Return it
- return ProfileMode.values();
+ return Collections.unmodifiableList(this.allProfileModes);
}
-
}
package org.mxchange.jfinancials.beans.profilemode;
import java.io.Serializable;
-import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
/**
* An interface for data beans
*/
public interface FinancialsProfileModeWebApplicationController extends Serializable {
- /**
- * Getter for all profile modes as array
- * <p>
- * @return All profile modes as array
- */
- ProfileMode[] getAllProfileModes ();
-
}
ADMIN_MOBILE_NUMBER_LIST_EMPTY=Es befinden sich keine Mobilfunknummern in der Datenbank oder Ihre Suche ergab keine Uebereinstimmungen.
#@TODO Please fix German umlauts!
ADMIN_CONTACT_MOBILE_LIST_EMPTY=Es befinden sich keine Mobilfunknummern von Kontakten in der Datenbank oder Ihre Suche ergab keine Uebereinstimmungen.
+#@TODO Please fix German umlauts!
+ADMIN_MOBILE_PROVIDER_COUNTRY_REQUIRED=Bitte waehlen Sie ein Land fuer den Mobilfunkanbieter aus.
+#@TODO Please fix German umlauts!
+COUNTRIES=Laender
+#@TODO Please fix German umlauts!
+FILTER_BY_MULTIPLE_COUNTRY_TITLE=Liste durch Auswahl von ein oder mehr Laendern durchsuchen.
+ADMIN_LIST_MOBILE_PROVIDERS_HEADER=Liste aller Mobilfunkanbieter
+SELECT_SHOWN_COLUMNS=Angezeigte Spalten
ADMIN_LANDLINE_NUMBER_LIST_EMPTY=There are no land-line numbers in database. Or your search criteria doesn't match anything.
ADMIN_MOBILE_NUMBER_LIST_EMPTY=There are no mobile numbers in database. Or your search criteria doesn't match anything.
ADMIN_CONTACT_MOBILE_LIST_EMPTY=There are no mobile numbers of contacts in database. Or your search criteria doesn't match anything.
+ADMIN_MOBILE_PROVIDER_COUNTRY_REQUIRED=Please select a country for mobile provider.
+COUNTRIES=Countries
+FILTER_BY_MULTIPLE_COUNTRY_TITLE=Filter list by selecting one or more countries.
+ADMIN_LIST_MOBILE_PROVIDERS_HEADER=List of all mobile providers
+SELECT_SHOWN_COLUMNS=Shown columns
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block" rendered="#{empty rendered or rendered}">
- <fieldset class="fieldset" id="personal_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}" />
</legend>
</div>
<div class="table-right-medium">
- <p:selectOneMenu id="country" value="#{adminContactController.contactCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="country" value="#{adminContactController.contactCountry}"
</div>
</h:panelGroup>
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="landLineCountryCode" value="#{adminContactController.landLineCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="landLineCountryCode" styleClass="select divider-right" value="#{adminContactController.landLineCountry}" />
<p:inputText styleClass="input divider-right" id="landLineAreaCode" size="5" maxlength="10" value="#{adminContactController.landLineAreaCode}">
<f:validator for="landLineAreaCode" validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="faxCountryCode" value="#{adminContactController.faxCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="faxCountryCode" styleClass="select divider-right" value="#{adminContactController.faxCountry}" />
<p:inputText styleClass="input divider-right" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
<f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block" rendered="#{empty rendered or rendered == true}">
- <fieldset class="fieldset" id="fax_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_FAX_NUMBER_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_FAX_NUMBER_DATA_LEGEND}" />
</legend>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block" rendered="#{empty rendered or rendered == true}">
- <fieldset class="fieldset" id="landline_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_LAND_LINE_NUMBER_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_LAND_LINE_NUMBER_DATA_LEGEND}" />
</legend>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block" rendered="#{empty rendered or rendered == true}">
- <fieldset class="fieldset" id="mobile_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_MOBILE_NUMBER_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_MOBILE_NUMBER_DATA_LEGEND}" />
</legend>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block" rendered="#{not empty mode}">
- <fieldset class="fieldset" id="login_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_USER_DATA_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_USER_DATA_EMAIL_LEGEND}" />
</legend>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:p="http://primefaces.org/ui">
+
+ <p:selectOneMenu id="#{id}" value="#{value}" styleClass="#{empty styleClass ? 'select' : styleClass}" rendered="#{empty rendered or rendered}" required="#{empty required ? false : required}" requiredMessage="#{requiredMessage}">
+ <f:converter converterId="CountryConverter" />
+ <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" rendered="#{empty allowNull or allowNull}" />
+ <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
+ </p:selectOneMenu>
+</ui:composition>
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="faxCountry" value="#{targetController.faxCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="faxCountry" styleClass="select divider-right" value="#{targetController.faxCountry}" />
<p:inputText styleClass="input divider-right" id="faxAreaCode" size="5" maxlength="10" value="#{targetController.faxAreaCode}">
<f:validator validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="countryPhoneCode" value="#{targetController.landLineCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="landLineCountry" styleClass="select divider-right" value="#{targetController.landLineCountry}" />
<p:inputText styleClass="input divider-right" id="landLineAreaCode" size="5" maxlength="10" value="#{targetController.landLineAreaCode}">
<f:validator validatorId="PhoneNumberValidator" />
<div class="table-right-medium">
<p:selectOneMenu id="profileMode" value="#{targetController.userProfileMode}">
- <f:selectItems value="#{profileModeController.allProfileModes}" var="mode" itemValue="#{mode}" itemLabel="#{msg[mode.messageKey]}" />
+ <f:selectItems value="#{profileModeController.allProfileModes()}" var="mode" itemValue="#{mode}" itemLabel="#{msg[mode.messageKey]}" />
</p:selectOneMenu>
</div>
</h:panelGroup>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="basic_company_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_BASIC_COMPANY_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_BASIC_COMPANY_DATA_LEGEND}" />
</legend>
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="landLineCountry" value="#{adminCompanyDataController.landLineCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="landLineCountry" styleClass="select divider-right" value="#{adminCompanyDataController.landLineCountry}" />
<p:inputText styleClass="input divider-right" id="landLineAreaCode" size="5" maxlength="10" value="#{adminCompanyDataController.landLineAreaCode}">
<f:validator for="landLineAreaCode" validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="faxCountry" value="#{adminCompanyDataController.faxCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="faxCountry" styleClass="select divider-right" value="#{adminCompanyDataController.faxCountry}" />
<p:inputText styleClass="input divider-right" id="faxAreaCode" size="5" maxlength="10" value="#{adminCompanyDataController.faxAreaCode}">
<f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="admin_branch_office_basic">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_BRANCH_OFFICE_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_LEGEND}" />
</legend>
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="landLineCountry" value="#{adminBranchOfficeController.landLineCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="landLineCountry" styleClass="select divider-right" value="#{adminBranchOfficeController.landLineCountry}" />
<p:inputText styleClass="input divider-right" id="landLineAreaCode" size="5" maxlength="10" value="#{adminBranchOfficeController.landLineAreaCode}">
<f:validator for="landLineAreaCode" validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="faxCountry" value="#{adminBranchOfficeController.faxCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="faxCountry" styleClass="select divider-right" value="#{adminBranchOfficeController.faxCountry}" />
<p:inputText styleClass="input divider-right" id="faxAreaCode" size="5" maxlength="10" value="#{adminBranchOfficeController.faxAreaCode}">
<f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu id="branchCountry" value="#{adminBranchOfficeController.branchCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="branchCountry" value="#{adminBranchOfficeController.branchCountry}" />
</div>
</h:panelGroup>
</h:panelGroup>
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="country_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
</legend>
<?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"
</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>
</h:panelGroup>
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="personal_data">
+ <fieldset class="fieldset">
<legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.PERSONAL_DATA_LEGEND}" />
</legend>
</div>
</h:panelGroup>
- <h:panelGroup styleClass="error-container" layout="block">
- <p:message for="city" />
- </h:panelGroup>
+ <h:panelGroup styleClass="error-container" layout="block">
+ <p:message for="city" />
+ </h:panelGroup>
<h:panelGroup styleClass="table-row" layout="block">
<div class="table-left-medium">
</div>
</h:panelGroup>
- <h:panelGroup styleClass="error-container" layout="block">
- <p:message for="birthday" />
- </h:panelGroup>
+ <h:panelGroup styleClass="error-container" layout="block">
+ <p:message for="birthday" />
+ </h:panelGroup>
<h:panelGroup styleClass="table-row" layout="block">
<div class="table-left-medium">
</div>
<div class="table-right-medium">
- <p:selectOneMenu id="country" value="#{contactController.country}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector id="country" value="#{contactController.country}" />
</div>
</h:panelGroup>
- <h:panelGroup styleClass="error-container" layout="block">
- <p:message for="country" />
- </h:panelGroup>
+ <h:panelGroup styleClass="error-container" layout="block">
+ <p:message for="country" />
+ </h:panelGroup>
<h:panelGroup styleClass="table-row" layout="block">
<div class="table-left-medium">
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="landLineCountry" value="#{contactController.landLineCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector styleClass="select divider-right" id="landLineCountry" value="#{contactController.landLineCountry}" />
<p:inputText styleClass="input divider-right" id="landLineAreaCode" size="5" maxlength="10" value="#{contactController.landLineAreaCode}">
<f:validator validatorId="PhoneNumberValidator" />
</div>
<div class="table-right-medium">
- <p:selectOneMenu styleClass="select divider-right" id="faxCountry" value="#{contactController.faxCountry}">
- <f:converter converterId="CountryConverter" />
- <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
- </p:selectOneMenu>
+ <widgets:outputCountrySelector styleClass="select divider-right" id="faxCountry" value="#{contactController.faxCountry}" />
<p:inputText styleClass="input divider-right" id="faxAreaCode" size="5" maxlength="10" value="#{contactController.faxAreaCode}">
<f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
</h:panelGroup>
<h:panelGroup styleClass="para" layout="block" rendered="#{userController.isPublicUserProfileEnabled()}">
- <fieldset class="fieldset" id="profile_mode">
+ <fieldset class="fieldset">
<legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">
<h:outputText value="#{msg.USER_PROFILE_LEGEND}" />
</legend>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="terms_privacy">
+ <fieldset class="fieldset">
<legend title="#{msg.PRIVACY_TERMS_LEGEND_TITLE}">
<h:outputText value="#{msg.PRIVACY_TERMS_LEGEND}" />
</legend>
<h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}" />
</div>
- <fieldset class="fieldset" id="login_data">
+ <fieldset class="fieldset">
<legend title="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND}" />
</legend>
</div>
<div class="para">
- <fieldset class="fieldset" id="login_data">
+ <fieldset class="fieldset">
<legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
</legend>
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
<div class="para">
- <fieldset class="fieldset" id="login_data">
+ <fieldset class="fieldset">
<legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
</legend>
xmlns:p="http://primefaces.org/ui">
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="current_password">
+ <fieldset class="fieldset">
<legend title="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND_TITLE}">
<h:outputText value="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND}" />
</legend>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</attribute>
<attribute>
<name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine.</description>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
</tag>
+ <tag>
+ <tag-name>outputCountrySelector</tag-name>
+ <description>This tag renders a selection box for all available countries.</description>
+ <source>resources/tags/country/form_data/form_country_selector.tpl</source>
+ <attribute>
+ <name>rendered</name>
+ <description>Whether this tag is being rendered by JSF engine (default: true).</description>
+ <required>false</required>
+ <type>java.lang.Boolean</type>
+ </attribute>
+ <attribute>
+ <name>allowNone</name>
+ <description>Whether this tag allows NONE/null to be selected (default: true).</description>
+ <required>false</required>
+ <type>java.lang.Boolean</type>
+ </attribute>
+ <attribute>
+ <name>required</name>
+ <description>Whether this tag is required (default: false)</description>
+ <required>false</required>
+ <type>java.lang.Boolean</type>
+ </attribute>
+ <attribute>
+ <name>requiredMessage</name>
+ <description>Localizable message to be displayed when this field is required but not selected.</description>
+ <required>false</required>
+ <type>java.lang.String</type>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <description>Id of the JSF component.</description>
+ <required>true</required>
+ <type>java.lang.String</type>
+ </attribute>
+ <attribute>
+ <name>styleClass</name>
+ <description>CSS style class for this component, default: select.</description>
+ <required>false</required>
+ <type>java.lang.String</type>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <description>A target property to set the selected country in.</description>
+ <required>true</required>
+ <type>org.mxchange.jcountry.model.data.Country</type>
+ </attribute>
+ </tag>
</facelet-taglib>
</ui:define>
<ui:define name="content">
- <p:dataTable id="table_list_mobile" var="mobileNumber" value="#{phoneController.allMobileNumbers()}" tableStyleClass="table table-full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}" emptyMessage="#{msg.ADMIN_MOBILE_NUMBER_LIST_EMPTY}">
+ <p:dataTable id="table-list-mobile-provider" var="mobileNumber" value="#{phoneController.allMobileNumbers()}" tableStyleClass="table table-full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}" emptyMessage="#{msg.ADMIN_MOBILE_NUMBER_LIST_EMPTY}">
<p:column>
<f:facet name="header">
<h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
</ui:define>
<ui:define name="content">
- <p:dataTable id="table_list_mobile" var="mobileProvider" value="#{mobileProviderController.allMobileProviders()}" tableStyleClass="table table-medium" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}" emptyMessage="#{msg.ADMIN_MOBILE_PROVIDER_LIST_EMPTY}">
- <p:column sortBy="#{mobileProvider.providerId}">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
- </f:facet>
-
- <p:link outcome="admin_show_mobile_provider" title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}" value="#{mobileProvider.providerId}">
- <f:param name="providerId" value="#{mobileProvider.providerId}" />
- </p:link>
- </p:column>
-
- <p:column sortBy="#{mobileProvider.providerName}" priority="3">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" />
- </f:facet>
-
- <h:outputText value="#{mobileProvider.providerName}" />
- </p:column>
-
- <p:column sortBy="#{mobileProvider.providerDialPrefix}" priority="2">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX}" />
- </f:facet>
+ <h:form id="form-list-mobile-provider">
+ <p:dataTable
+ id="table-list-mobile-provider"
+ var="mobileProvider"
+ value="#{mobileProviderController.allMobileProviders()}"
+ widgetVar="mobileProviderTable"
+ filteredValue="#{mobileProviderController.filteredMobileProviders}"
+ tableStyleClass="table table-medium"
+ rows="10"
+ paginator="true"
+ paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
+ reflow="true"
+ resizableColumns="true"
+ rowsPerPageTemplate="5,10,20,50,100"
+ sortMode="multiple"
+ summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}"
+ emptyMessage="#{msg.ADMIN_MOBILE_PROVIDER_LIST_EMPTY}">
- <h:outputText value="#{mobileProvider.providerDialPrefix}" />
- </p:column>
-
- <p:column sortBy="#{mobileProvider.providerCountry.countryPhoneCode}" priority="4">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}" />
- </f:facet>
-
- <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
- </p:column>
-
- <p:column sortBy="#{mobileProvider.providerEntryCreated}" priority="5">
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_LIST_ENTRY_CREATED}" />
+ <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDERS_HEADER}" />
+ <p:commandButton id="toggler" type="button" value="#{msg.SELECT_SHOWN_COLUMNS}" styleClass="column-selector" />
+ <p:columnToggler datasource="table-list-mobile-provider" trigger="toggler" />
</f:facet>
- <h:outputText id="providerEntryCreated" value="#{mobileProvider.providerEntryCreated.time}" title="#{msg.ADMIN_MOBILE_PROVIDER_ENTRY_CREATED_TITLE}">
- <f:convertDateTime for="providerEntryCreated" type="both" timeStyle="short" dateStyle="short" />
- </h:outputText>
- </p:column>
-
- <p:column sortable="false" priority="6">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_ACTION_LINKS}" />
- </f:facet>
-
- <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
- </p:column>
- </p:dataTable>
+ <p:column filterBy="#{mobileProvider.providerId}" sortBy="#{mobileProvider.providerId}" headerText="#{msg.ADMIN_ID_NUMBER}">
+ <p:link outcome="admin_show_mobile_provider" title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}" value="#{mobileProvider.providerId}">
+ <f:param name="providerId" value="#{mobileProvider.providerId}" />
+ </p:link>
+ </p:column>
+
+ <p:column filterBy="#{mobileProvider.providerName}" sortBy="#{mobileProvider.providerName}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" filterMatchMode="contains">
+ <h:outputText value="#{mobileProvider.providerName}" />
+ </p:column>
+
+ <p:column filterBy="#{mobileProvider.providerDialPrefix}" sortBy="#{mobileProvider.providerDialPrefix}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX}" filterMatchMode="contains">
+ <h:outputText value="#{mobileProvider.providerDialPrefix}" />
+ </p:column>
+
+ <p:column filterBy="#{mobileProvider.providerCountry}" sortBy="#{mobileProvider.providerCountry.countryPhoneCode}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}" filterMatchMode="in">
+ <f:facet name="filter">
+ <p:selectCheckboxMenu filter="true" label="#{msg.COUNTRIES}" onchange="PF('mobileProviderTable').filter()" updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}">
+ <f:converter converterId="CountryConverter" />
+ <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{msg[country.countryI18nKey]}" />
+ </p:selectCheckboxMenu>
+ </f:facet>
+
+ <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
+ </p:column>
+
+ <p:column sortBy="#{mobileProvider.providerEntryCreated}" headerText="#{msg.ADMIN_LIST_ENTRY_CREATED}">
+ <h:outputText id="providerEntryCreated" value="#{mobileProvider.providerEntryCreated.time}">
+ <f:convertDateTime for="providerEntryCreated" type="both" timeStyle="short" dateStyle="short" />
+ </h:outputText>
+ </p:column>
+
+ <p:column sortable="false" headerText="#{msg.ADMIN_ACTION_LINKS}">
+ <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
+ </p:column>
+ </p:dataTable>
+ </h:form>
<h:form id="form_add_mobile_provider">
<h:panelGroup styleClass="table table-medium" layout="block">
<!-- Whether select contact data .. //-->
<h:panelGroup id="admin_user_personal_data_option_1" styleClass="para" layout="block">
- <fieldset class="fieldset" id="user_contact">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}" />
</legend>
<h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
</div>
- <fieldset class="fieldset" id="login_data">
+ <fieldset class="fieldset">
<legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
</legend>
<h:outputText value="#{msg.GUEST_RESEND_LINK_TITLE}" />
</div>
- <fieldset class="fieldset" id="email_address_notice">
+ <fieldset class="fieldset">
<legend title="#{msg.RESEND_CONFIRMATION_LINK_LEGEND_TITLE}">
<h:outputText value="#{msg.RESEND_CONFIRMATION_LINK_LEGEND}" />
</legend>
<h:panelGroup styleClass="table-row" layout="block">
<div class="table-left">
- <p:outputLabel for="resendEmailAddress" value="#{msg.GUEST_RESEND_LINK_ENTER_EMAIL_ADDRESS}" />
+ <p:outputLabel for="emailAddress" value="#{msg.GUEST_RESEND_LINK_ENTER_EMAIL_ADDRESS}" />
</div>
<div class="table-right">
- <p:inputText styleClass="input" id="resendEmailAddress" size="20" maxlength="255" value="#{userResendConfirmationController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
+ <p:inputText styleClass="input" id="emailAddress" size="20" maxlength="255" value="#{userResendConfirmationController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
<f:validator validatorId="EmailAddressValidator" />
</p:inputText>
</div>
</fieldset>
<h:panelGroup styleClass="error-container" layout="block">
- <p:message for="resendEmailAddress" />
+ <p:message for="emailAddress" />
</h:panelGroup>
<h:panelGroup styleClass="table-row" layout="block">
#footer::after {
clear: both;
}
+
+.column-selector {
+ float: right;
+}
</div>
<h:form id="form_user_change_email_address">
- <fieldset class="fieldset" id="change_email">
+ <fieldset class="fieldset">
<legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
</legend>
<h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
</div>
- <fieldset class="fieldset" id="change_password">
+ <fieldset class="fieldset">
<legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
<h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
</legend>