Skip to content

Commit

Permalink
fixing checks to work with concurrenthashmaps (#627)
Browse files Browse the repository at this point in the history
* fixing checks to work with concurrenthashmaps

* fixing checks to work with concurrenthashmaps
  • Loading branch information
cram-cfa authored Dec 9, 2024
1 parent 78d74de commit 4b30379
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
th:with="
hasSubtext=${!#strings.isEmpty(subtext)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)}"
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)}"
th:assert="${!#strings.isEmpty(header)}"
class="form-card__header">
<h1 id="header" class="h2" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
hasHelpText=${!#strings.isEmpty(checkboxHelpText)},
hasIcon=${!#strings.isEmpty(checkboxIcon)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
name=${inputName} + '[]',
hasError=${
errorMessages != null &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/fragments/inputs/date.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Month', false)) ||
(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Day', false)) ||
(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Year', false)) ||
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName + 'Month', false)) ||
(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName + 'Day', false)) ||
(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName + 'Year', false)) ||
(required != null && required)},
hasAutoCompleteMonth=${!#strings.isEmpty(autoCompleteMonth)},
hasAutoCompleteDay=${!#strings.isEmpty(autoCompleteDay)},
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/money.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/number.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
hasAutoComplete=${!#strings.isEmpty(autoComplete)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/phone.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
hasAutoComplete=${!#strings.isEmpty(autoComplete)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
hasAutoComplete=${!#strings.isEmpty(autoComplete)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/ssn.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/inputs/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
hasAutoComplete=${!#strings.isEmpty(autoComplete)},
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
rows=${!#strings.isEmpty(rows)} ? ${rows} : '6',
maxLength=${!#strings.isEmpty(maxLength)} ? ${maxLength} : '500',
requiredInputsForFlow=${requiredInputs.get(flow)},
isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
Expand Down

0 comments on commit 4b30379

Please sign in to comment.