redhat-developer-demos / quarkus-petclinic

Apache License 2.0
18 stars 50 forks source link

[BUG] Some templates do not not work correctly with quarkus.qute.strict-rendering=true #12

Closed mkouba closed 1 year ago

mkouba commented 1 year ago

See https://quarkus.io/guides/qute-reference#strict_rendering.

For example, {#if errors['firstName'] != null} results in a template exception if no error with the key firstName is present.

Solutions:

  1. {#if errors.containsKey('firstName')} (preferred)
  2. {#if errors.['firstName'].or(false)}
  3. quarkus.qute.strict-rendering=false && {#if errors['firstName']}
geoand commented 1 year ago

Thanks, I'll have a look tomorrow