]> git.mxchange.org Git - jjobs-war.git/commit - src/java/org/mxchange/jjobs/converter/fax/JobsFaxNumberConverter.java
Please cherry-pick (Massive rewrite):
authorRoland Häder <roland@mxchange.org>
Mon, 24 Jul 2017 21:20:36 +0000 (23:20 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2017 19:35:05 +0000 (21:35 +0200)
commit27100e7dfbaee33ce63dd6b3c7e394115b24031f
tree17fe2ce600b39f4da5a3582f945bbce0327d1896
parenteab555ef0a6a0806cc0e8b4fc16a0b42e90c99ec
Please cherry-pick (Massive rewrite):

Only jcontacts-business-core:
- added administrative session-scoped bean (aka. "controller") for business
  data
- added initial JSF view and template for above bean, added also first form
  fields
- added option to enable (default) or disable business contacts in admin
  menu

In general:
- removed h:outputText where it was not needed as the parent JSF tag can
  do it, too
- still I'm a bit undecided about where the attribute styleClass is used
- fixed i18n key, was a copy-paste mistake
- added missing for-attribute
- phoneId was long time ago valid, now that there are 2 numbers,
  land-line and fax, the ids should be named accordingly
- added validator for email address validation
- removed id-attribute where it was not really needed or might cause
  harm to the rendering engine (?)
- h:message should be always outside, h:panelGroup, not really required
  by JSF but by design (consistency)
- added validatorMessage-attribute for email address fields
- added context parameter (thanks to BalusC for the idea) for making all
  empty strings being interpreted as null
- added missing i18n strings

Performance rewrites:
- rewrote converters and validators, they seem to be re-instanciated after
  each use, so the set EJB instances must be static to be loaded and set
  on-demand
- still this may ask for a lot room for improvement as the EJB is still called
  each time the converter/validator is being used
- also the Pattern instance for email validator should be "static cached"
  because it will use a lot CPU cycles and will then slow-down the application

Signed-off-by: Roland Häder <roland@mxchange.org>
39 files changed:
src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jjobs/beans/businesscontact/JobsAdminBusinessContactWebSessionController.java [new file with mode: 0644]
src/java/org/mxchange/jjobs/beans/businesscontact/JobsBusinessContactWebSessionBean.java
src/java/org/mxchange/jjobs/beans/businesscontact/JobsBusinessContactWebSessionController.java
src/java/org/mxchange/jjobs/converter/businesscontact/JobsBusinessContactConverter.java
src/java/org/mxchange/jjobs/converter/contact/JobsContactConverter.java
src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java
src/java/org/mxchange/jjobs/converter/fax/JobsFaxNumberConverter.java
src/java/org/mxchange/jjobs/converter/landline/JobsLandLineNumberConverter.java
src/java/org/mxchange/jjobs/converter/mobile/JobsMobileNumberConverter.java
src/java/org/mxchange/jjobs/converter/mobileprovider/JobsMobileProviderConverter.java
src/java/org/mxchange/jjobs/converter/user/JobsUserConverter.java
src/java/org/mxchange/jjobs/validator/emailaddress/JobsEmailAddressValidator.java
src/java/org/mxchange/jjobs/validator/user/JobsUserIdValidator.java
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/faces-config.xml
web/WEB-INF/templates/admin/admin_menu.tpl
web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
web/WEB-INF/templates/admin/contact_business/admin_form_contact_business_data.tpl [new file with mode: 0644]
web/WEB-INF/templates/admin/fax/admin_fax_links.tpl
web/WEB-INF/templates/admin/landline/admin_landline_links.tpl
web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl
web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl
web/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl
web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl
web/WEB-INF/templates/user/user_profile_link.tpl
web/WEB-INF/web.xml
web/admin/contact/admin_contact_show.xhtml
web/admin/contact/unlink/admin_contact_fax_unlink.xhtml
web/admin/contact/unlink/admin_contact_landline_unlink.xhtml
web/admin/contact/unlink/admin_contact_mobile_unlink.xhtml
web/admin/contact_business/admin_contact_business_list.xhtml [new file with mode: 0644]
web/admin/fax/admin_fax_list.xhtml
web/admin/fax/admin_fax_show.xhtml
web/admin/landline/admin_landline_list.xhtml
web/admin/landline/admin_landline_show.xhtml
web/admin/mobile/admin_mobile_list.xhtml
web/admin/mobile/admin_mobile_show.xhtml