]> git.mxchange.org Git - jfinancials-war.git/commit
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>
Mon, 24 Jul 2017 21:49:09 +0000 (23:49 +0200)
commit4e6fd8144883e55abc21df97b28145cfd025c26b
treec73fea6f3b24cf6425e7a96859fbd23b09b7ef26
parent2eec9d01320e9bc94022df334c5857577a937adb
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>
43 files changed:
src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsAdminBusinessContactWebSessionController.java [new file with mode: 0644]
src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionBean.java
src/java/org/mxchange/jfinancials/beans/businesscontact/FinancialsBusinessContactWebSessionController.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java
src/java/org/mxchange/jfinancials/beans/financial/receipt/FinancialsReceiptWebSessionBean.java
src/java/org/mxchange/jfinancials/converter/businesscontact/FinancialsBusinessContactConverter.java
src/java/org/mxchange/jfinancials/converter/contact/FinancialsContactConverter.java
src/java/org/mxchange/jfinancials/converter/country/FinancialsCountryConverter.java
src/java/org/mxchange/jfinancials/converter/fax/FinancialsFaxNumberConverter.java
src/java/org/mxchange/jfinancials/converter/landline/FinancialsLandLineNumberConverter.java
src/java/org/mxchange/jfinancials/converter/mobile/FinancialsMobileNumberConverter.java
src/java/org/mxchange/jfinancials/converter/mobileprovider/FinancialsMobileProviderConverter.java
src/java/org/mxchange/jfinancials/converter/user/FinancialsUserConverter.java
src/java/org/mxchange/jfinancials/validator/emailaddress/FinancialsEmailAddressValidator.java
src/java/org/mxchange/jfinancials/validator/user/FinancialsUserIdValidator.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
web/user/financials/login_financials_add_receipt.xhtml