Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2714

EL Comparison don't works in attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 8.0.0.CR1
    • Web (Undertow)

      I have a class with BigDecimal attribute:

      public class Foo {
          private BigDecimal value;
      }
      

      This code works fine

      <p>${foo.value lt 0}</p>
      

      And this code too:

      <p>${foo.value lt 0 ? 'negative' : 'positive'}</p>
      

      But when I use the expression in the attribute, I get the errot bellow:

      <p class="${foo.value lt 0 ? 'negative' : 'positive'}">text</p>
      

      The class 'Foo' does not have the property 'valuelt0'.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              garcia-jj Otávio Garcia (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: