[ECOMMERCE-420] Implement validator for NewProductChooserField class Created: 14/Jun/21  Updated: 27/Jun/21  Resolved: 22/Jun/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.3

Type: Task Priority: Neutral
Reporter: Antonín Juran Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 5d 40m
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: New Product Chooser 1.3
Sprint: Content Mngmt 6
Story Points: 8

 Description   

Implement validator for NewProductChooserField class. The validation will work:

  • if enabledProductView==true && enabledCategoryView==true => product has to be selected (NewProductChooserBean.productId is not empty)
  • else if enabledCategoryView==true => category has to be selected (NewProductChooserBean.categoryId is not empty)
  • else => connection has to be selected (NewProductChooserBean.connection is not empty)
    The validator could be implemented by overriding getDefaultValidator() method in NewProductChooserField class.
    As part of the ticket is CSS styling of an error message to be visible on the field.

Generated at Mon Feb 12 01:43:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.