[jboss-jira] [JBoss JIRA] (WFLY-2714) EL Comparison don't works in attributes
Otávio Garcia (JIRA)
issues at jboss.org
Mon Jan 6 14:05:32 EST 2014
Otávio Garcia created WFLY-2714:
-----------------------------------
Summary: EL Comparison don't works in attributes
Key: WFLY-2714
URL: https://issues.jboss.org/browse/WFLY-2714
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.0.0.CR1
Environment: OpenJDK Runtime Environment (fedora-2.4.3.0.fc18-x86_64 u45-b15)
Wildfly 8.0.0 CR1
Reporter: Otávio Garcia
Assignee: Stuart Douglas
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'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list