Roland Häder [Sun, 2 Oct 2022 17:42:56 +0000 (19:42 +0200)]
Please cherry-pick:
- these checks on if registered or not or provided or not makes here no sense
and has caused forms not accepting email addresses
- renamed template
- added country Hungary
Roland Häder [Wed, 28 Sep 2022 17:10:11 +0000 (19:10 +0200)]
Product-only:
- introduced validator JSF tags for product and category
- edit views must bypass duplicate i18n key check
- ops, had to rename wrongly named template
Roland Häder [Sun, 25 Sep 2022 20:36:04 +0000 (22:36 +0200)]
Please cherry-pick:
- branch offices have optional email addresses (finally found the bug that you
always must enter an email address while the form field is not marked as
required)
Roland Häder [Sun, 25 Sep 2022 20:21:32 +0000 (22:21 +0200)]
Please cherry-pick:
- removed duplicate validator for branch office's email address
- validators should check specific fields, not generic
- arranged code a bit for better readability
- renamed private method
Roland Häder [Fri, 23 Sep 2022 16:52:47 +0000 (18:52 +0200)]
Please cherry-pick:
- cannot copy whole user instance to RequestScoped bean as this is being
forgotten on next request, SessionScoped will be a little overdose + it can
be solved by taking the user instance already set in beanHelper bean
Roland Häder [Thu, 15 Sep 2022 05:11:31 +0000 (07:11 +0200)]
Don't cherry-pick:
- moved i18n BARCODE_NUMBER_HEADER to project file
- also renamed it to BARCODE_HEADER as the actual bar code is being rendered
- added missing i18n strings
Roland Häder [Mon, 1 Jun 2020 13:37:44 +0000 (15:37 +0200)]
Don't cherry-pick:
- renderReceipt() does now require a second parameter showReceiptPaymentType
which can be used to include or exclude the payment type in views. For all
selection boxes, this feature has been disabled (in views) or else the
selection box becomes very wide
Roland Häder [Mon, 1 Jun 2020 13:35:31 +0000 (15:35 +0200)]
Product-only:
- show tax rate to user and format the number as a float when entered
- renamed NO_PRODUCT_NUMBER_ASSIGNED to ADMIN_NO_PRODUCT_NUMBER_ASSIGNED
- added missing i18n key for the case when no FSC number is entered
Roland Häder [Mon, 1 Jun 2020 13:32:24 +0000 (15:32 +0200)]
Please cherry-pick:
- all extra email address validators (so not the generic one) have no attribute
"allowEmptyRequiredData" anymore as the email address for them (e.g. branch
office) is always optional
- converted own JSF tag core:outputAdminContactDataFormFields to template again
- reformatted some JSF tags to have each attribute in a single line
- the gender-specific backing bean was superflous since there is a "static
data" backing bean
- added missing i18n string COUNTRY_POLAND (country was added in JFinancials)
- fixed tpzo in i18n key
Roland Häder [Wed, 20 May 2020 17:51:29 +0000 (19:51 +0200)]
Product-only:
- renamed adminCategoryController to adminProductCategoryController
- added column with filter for categoryShownInStatistics flag
- added missing i18n key
Roland Häder [Wed, 20 May 2020 16:42:59 +0000 (18:42 +0200)]
Please cherry-pick:
- renamed userCreated -> userEntryCreated
- renamed userUpdated -> userEntryUpdated
- updateUserData() may throw a checked UserNotFoundException, let's catch it
here and throw a FacesException with it as cause
- same with confirmAccount()
Roland Häder [Mon, 11 May 2020 01:12:04 +0000 (03:12 +0200)]
Please cherry-pick:
- since departments, headquarters and branch offices cannot link to employes,
so also the view navigation rules must reflect this. Employees can have a
relationship to any these 3 entities and would lead to endless loop
- introduced adminDepartmentActionController instead of without "Action", let
us keep these empty ("dead") backing beans around, they may one day be filled
with life again. Or they will be removed if no purpose could be found.
- closed some TODOs in views where p:fieldset allows a title attribute
- also a ui:fragment can be avoided when p:fieldset allows a render attribute
- added view for administrative editing of departments
- removed double // NOI18N strings (ops?) which is for some language string
scanning and translation tools to ignore these lines (exception messages
should normally not show up to the user).
Roland Häder [Thu, 30 Apr 2020 21:41:37 +0000 (23:41 +0200)]
Don't cherry-pick:
- renamed class field financialBean to financialIncomeBean as this reflects
the real purpose of the EJB.
- exposed incomeEnabled flag in admin-add-income form
- removed some needless tags as it can be done easier in PrimeFaces
- added missing i18n strings
Roland Häder [Tue, 28 Apr 2020 21:03:01 +0000 (23:03 +0200)]
Please cherry-pick:
- added javax.faces.FACELETS_SKIP_COMMENTS to let JSF +2.1 (2.3 is used anyway)
engines ignore commented out JSF tags (and the EL code inside it). With this
option, the developer has what he needs, IMO as this allowws temporary
removing JSF tags from the component tree as the developer desires. Okay,
ui:remove is also around ...
Roland Häder [Sat, 25 Apr 2020 16:54:17 +0000 (18:54 +0200)]
Don't cherry-pick:
- introduced administrative action backing bean for receipt items
- introduced converter for receipt items
- introduced uniqueAddReceiptItem() and CDI observers for updating cache/lists
- introduced findReceiptItemById()
- let's distinguish between administrative and user events
- updateReceipt returns now a redirection outcome (back to admin-list-receipts
view)
- reformatted Java code a bit for having all parameter of huge constructors
in a separate line
- added missing navigation rules from edit -> list views
- added missing i18n strings
Roland Häder [Sat, 25 Apr 2020 16:48:28 +0000 (18:48 +0200)]
Product-only
- admin_product_price_input_panel_grid.tpl to a ui:include with fixed backing
bean reference for type-safety
- decimalSeparator and thousandSeparator are both not localizable, let's dump
them then and current user's locale will handle it
- FSC number exposed in product list and modal
- categoryEntryUpdated exposed in admin-list-category view
- removed unneeded id attribute
- removed product.jsf.taglib.xml
Roland Häder [Sat, 25 Apr 2020 16:41:39 +0000 (18:41 +0200)]
Please cherry-pick:
- introduced new administrative action backing bean (add/update/delete being
done here)
- land-line, fax and mobile instances must be intialized with null first, then
check all respective backing bean properties if they all exist. This fixes
the NPEs coming from updated constructors
- check Country instance against the interface Country and not not being null
- added missing i18n string
Roland Häder [Fri, 24 Apr 2020 12:47:09 +0000 (14:47 +0200)]
Product-only:
- added navigation rule from admin-edit-generic-product to admin-list-generic-products
- added returned outcome when a product has been successfully updated (admin)
- renamed outcome admin_list_product to admin_list_generic_products
- renamed outcome admin_list_category to admin_list_product_categories
- if the product data has not been updated, output a proper warning message
- added missing i18n strings
Roland Häder [Fri, 24 Apr 2020 03:05:31 +0000 (05:05 +0200)]
Please cherry-pick:
- added view admin-edit-branch-office view including backing bean action method
- added navigation rule from admin-edit-branch-office to
admin-list-branch-offices view, including redirect
- added event observer for when an administrator has updated a branch office
- renamed adminBranchOfficeController to adminBranchOfficeActionController
- added many missing i18n strings
- renamed i18n string
Roland Häder [Thu, 23 Apr 2020 01:29:33 +0000 (03:29 +0200)]
Don't cherry-pick:
- some renderFoo() methods have extra parameters, added
- in converters/validators now the FOO_LIST_CONTROLLER static instance shall
always be initialized directly before the try{} block
Roland Häder [Thu, 23 Apr 2020 00:29:42 +0000 (02:29 +0200)]
Please cherry-pick:
- got rid of admin_form_basic_data.tpl, now moved back to original view, I guess
I will do that for all forms, which would lead to "duplicate" forms elements
butter with no targetController which was never resolvable anyway.
- added showEmailAddress boolean flag to many renderFoo() methods to whether
show email address which is mostly not wanted in selection boxes ...
- added companyRoadNumber to basic-data backing bean and proper forms/list view
- in converters/validators now the FOO_LIST_CONTROLLER static instance shall
always be initialized directly before the try{} block
Roland Häder [Sun, 19 Apr 2020 16:58:49 +0000 (18:58 +0200)]
Please cherry-pick:
- rewrote to not use fax_input_table_row.tpl
- realigned JSF tags to have attributes in a separate line
- got rid of some old tags from pre-PrimeFaces times
Roland Häder [Sun, 19 Apr 2020 00:07:53 +0000 (02:07 +0200)]
Please cherry-pick:
- got rid of admin-contact-links menu template
- reformatted a lot templates
- got rid of some core:outputMessageBox as p:growl does it already
- implemented missing deleteContactData() action method
- also implemented missing even observer for updating cache and list
- replaced FaceletException with FacesException
- renamed variables
Roland Häder [Fri, 17 Apr 2020 14:59:29 +0000 (16:59 +0200)]
Don't cherry-pick:
- heavy rewrite on (almost?) all admin-list-foo views, to use @ViewScoped beans
and working JSR107 caching
- also sorted out mixed usage of userController (or so?) as the login and
register backing beans can surely have their own properties
- rewrote web/WEB-INF/resources/tags/admin/dropdown/ to have it included back
in views again, was a bad idea
Roland Häder [Fri, 17 Apr 2020 14:58:31 +0000 (16:58 +0200)]
Product-only:
- heavy rewrite on (almost?) all admin-list-foo views, to use @ViewScoped beans
and working JSR107 caching
- also sorted out mixed usage of userController (or so?) as the login and
register backing beans can surely have their own properties
- rewrote web/WEB-INF/resources/tags/admin/dropdown/ to have it included back
in views again, was a bad idea
Roland Häder [Fri, 17 Apr 2020 14:54:20 +0000 (16:54 +0200)]
Please cherry-pick:
- heavy rewrite on (almost?) all admin-list-foo views, to use @ViewScoped beans
and working JSR107 caching
- also sorted out mixed usage of userController (or so?) as the login and
register backing beans can surely have their own properties
- rewrote web/WEB-INF/resources/tags/admin/dropdown/ to have it included back
in views again, was a bad idea
Roland Häder [Fri, 10 Apr 2020 19:38:06 +0000 (21:38 +0200)]
Please cherry-pick:
- WIP: rewrote admin-list-users view into ViewScoped
- added missing "global search" to it
- added initial p:dialog box to it
- also output userLastLock[Reason] and userMustChangePassword
- added/removed/renamed some i18n strings
- rewrote cache initialization to avoid a local List<Entity> copy
Roland Häder [Fri, 10 Apr 2020 04:13:21 +0000 (06:13 +0200)]
Please cherry-pick:
- updated PrimeFaces JAR from 6.2 to 8.0
- updated OmniFaces JAR from 2.7.2 to 2.7.3
- still OmniFaces causes a NPE in container startup
Roland Häder [Fri, 10 Apr 2020 04:12:46 +0000 (06:12 +0200)]
Don't cherry-pick:
- updated PrimeFaces 8.0 doesn't have pm:x around? Id references such as
":master:foo:bar" won't work then anymore, but "foo:bar" still does
Roland Häder [Fri, 10 Apr 2020 04:11:15 +0000 (06:11 +0200)]
Product-only:
- updated PrimeFaces 8.0 doesn't have pm:x around? Id references such as
":master:foo:bar" won't work then anymore, but "foo:bar" still does
Roland Häder [Fri, 10 Apr 2020 04:05:27 +0000 (06:05 +0200)]
Please cherry-pick:
- upgraded PrimeFaces to 8.0
- there is no more pm:x available in latest PrimeFaces, so ":master:foo:bar"
doesn't work but "foo:bar" does
- also the language selector may work now?
Roland Häder [Wed, 8 Apr 2020 18:59:27 +0000 (20:59 +0200)]
Don't cherry-pick:
- created "admin-receipt-action" controller for add/edit (later delete, too)
actions
- this change made the "admin-generic-receipt" controller empty for now, but
that is so far okay here.
- added admin-receipt-edit view
- reformatted p:panelGrid/p:outputLabel/p:inputText to have each attribute in a
separate line
- added missing i18n strings
Roland Häder [Wed, 8 Apr 2020 18:39:21 +0000 (20:39 +0200)]
Product-only:
- renamed adminGenericProductActionController.product ->
adminGenericProductActionController.currentProduct
- p:message is here not required as p:growl does the job nicely already
- reformatted p:outputLabel/p:inputText to have each attribute in separate line
Roland Häder [Wed, 8 Apr 2020 18:29:11 +0000 (20:29 +0200)]
Please cherry-pick:
- reformatted some p:outputLabel/p:inputText to have all attributes in single
line
- as jcoreee's showFacesMessage() methods require severity now, added
FacesMessage.SEVERITY_* to those method calls, strange that still it still
shows no effect? Where is the bug here?
Roland Häder [Thu, 2 Apr 2020 16:29:54 +0000 (18:29 +0200)]
Please cherry-pick:
- rewrote admin-headquarters-list to have filters and sorting (newer approach)
- added p:panelGrid around reset/submit buttons, still administrative contact
list is not being updated on record insert
- used beanHelper.renderEmployee() to render department leader (employee
instance again)
- fixed some wrong references due to last rewrite for departments
- added missing i18n key
Roland Häder [Thu, 2 Apr 2020 13:38:24 +0000 (15:38 +0200)]
Please cherry-pick:
- rewrote admin-departments-list view to have working filters and sorting
(wasn't done correctly)
- also included a "global" search (all columns)
- moved isDepartmentAlreadyAdded() to departmentListController to avoid getter
for allDepartments being exposed in interface
Roland Häder [Wed, 1 Apr 2020 18:24:20 +0000 (20:24 +0200)]
Please cherry-pick:
- rewrote admin-countries-list view to more modern approach with filters and
sorting
- rewrote many while(iterator) implementations to use for(item:List/Map.Entry)
instead
- added some missing i18n keys
Roland Häder [Wed, 1 Apr 2020 00:13:14 +0000 (02:13 +0200)]
Please cherry-pick:
- initialize BASIC_DATA_LIST_CONTROLLER (and others, too) only right before it
is needed.
- added contactUpdated to "admin-contacts-list" view
- contact usage (user/no user) is now pre-last column
- added missing i18n string