[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:09:33 EST 2014
[ https://issues.jboss.org/browse/WFLY-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Otávio Garcia updated WFLY-2714:
--------------------------------
Description:
I have a class with BigDecimal attribute:
{code:java}
public class Foo {
private BigDecimal value;
}
{code}
This code works fine
{code:xml}
<p>${foo.value lt 0}</p>
{code}
And this code too:
{code:xml}
<p>${foo.value lt 0 ? 'negative' : 'positive'}</p>
{code}
But when I use the expression in the attribute, I get the errot bellow:
{code:xml}
<p class="${foo.value lt 0 ? 'negative' : 'positive'}">text</p>
{code}
The class 'Foo' does not have the property 'valuelt0'.
was:
I have a class with BigDecimal attribute:
{code:java}
public class Foo {
private BigDecimal value;
}
{code}
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'.
> 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
> Labels: el, wildfly
>
> I have a class with BigDecimal attribute:
> {code:java}
> public class Foo {
> private BigDecimal value;
> }
> {code}
> This code works fine
> {code:xml}
> <p>${foo.value lt 0}</p>
> {code}
> And this code too:
> {code:xml}
> <p>${foo.value lt 0 ? 'negative' : 'positive'}</p>
> {code}
> But when I use the expression in the attribute, I get the errot bellow:
> {code:xml}
> <p class="${foo.value lt 0 ? 'negative' : 'positive'}">text</p>
> {code}
> 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