// Default is to check on existing names
Boolean checkExisting = Boolean.TRUE;
- // Is attribute "allowEmptyRequiredData" set?
+ // Is attribute "checkExisting" set?
if (component.getAttributes().containsKey("checkExisting")) { //NOI18N
// Get attribute
final Object attribute = component.getAttributes().get("checkExisting"); //NOI18N
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
- // Is the instance there?
- if (null == BASIC_DATA_LIST_CONTROLLER) {
- // Get bean from CDI directly
- BASIC_DATA_LIST_CONTROLLER = CDI.current().select(JobsBasicDataListWebViewBean.class).get();
- }
-
// All accepted, required fields
final String[] requiredFields = {"companyShortName"}; //NOI18N
// Default is to check on existing names
Boolean checkExisting = Boolean.TRUE;
- // Is attribute "allowEmptyRequiredData" set?
+ // Is attribute "checkExisting" set?
if (component.getAttributes().containsKey("checkExisting")) { //NOI18N
// Get attribute
final Object attribute = component.getAttributes().get("checkExisting"); //NOI18N
checkExisting = Boolean.parseBoolean((String) attribute);
}
+ // Is the instance there?
+ if (null == BASIC_DATA_LIST_CONTROLLER) {
+ // Get bean from CDI directly
+ BASIC_DATA_LIST_CONTROLLER = CDI.current().select(JobsBasicDataListWebViewBean.class).get();
+ }
+
// Check if name is already used
final Boolean nameExists = BASIC_DATA_LIST_CONTROLLER.isCompanyShortNameUsed(companyShortName);
ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX=Vorwahl:
ADMIN_LIST_MOBILE_PROVIDER_COUNTRY=Land:
ENTRY_CREATED_HEADER=Erstellt:
+ENTRY_UPDATED_HEADER=Aktualisiert:
ADMIN_LINK_EDIT_DELETE_MOBILE_PROVIDER_TITLE=Editieren oder l\u00f6schen des Handyanbieters
ADMIN_USER_DATA_ENTER_PASSWORD=Passwort eingeben:
ADMIN_USER_DATA_ENTER_PASSWORD_REPEAT=Passwort wiederholen:
ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX=Dial prefix:
ADMIN_LIST_MOBILE_PROVIDER_COUNTRY=Country:
ENTRY_CREATED_HEADER=Created:
+ENTRY_UPDATED_HEADER=Updated:
ADMIN_LINK_EDIT_DELETE_MOBILE_PROVIDER_TITLE=Edit or delete mobile provider
ADMIN_USER_DATA_ENTER_PASSWORD=Enter password:
ADMIN_USER_DATA_ENTER_PASSWORD_REPEAT=Repeat password:
</p:column>
<p:column
- headerText="#{msg.ADMIN_CONTACT_USAGE}"
- sortable="false"
- filterable="false"
+ headerText="#{msg.ENTRY_CREATED_HEADER}"
+ sortBy="#{contact.contactCreated}"
+ filterBy="#{contact.contactCreated}"
+ filterMatchMode="contains"
>
- <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
+ <h:outputText value="#{contact.contactCreated}">
+ <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
+ </h:outputText>
</p:column>
<p:column
- headerText="#{msg.ENTRY_CREATED_HEADER}"
- sortBy="#{contact.contactCreated}"
- filterBy="#{contact.contactCreated}"
+ headerText="#{msg.ENTRY_UPDATED_HEADER}"
+ sortBy="#{contact.contactUpdated}"
+ filterBy="#{contact.contactUpdated}"
filterMatchMode="contains"
>
- <h:outputText id="contactCreated" value="#{contact.contactCreated}">
+ <h:outputText value="#{contact.contactUpdated}">
<f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
</h:outputText>
</p:column>
+ <p:column
+ headerText="#{msg.ADMIN_CONTACT_USAGE}"
+ sortable="false"
+ filterable="false"
+ >
+ <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
+ </p:column>
+
<p:column
headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
sortable="false"