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

EL Comparison don't works in attributes

    XMLWordPrintable

Details

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

    Description

      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'.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: