[jboss-jira] [JBoss JIRA] (WFLY-2714) EL Comparison don't works in attributes

Otávio Garcia (JIRA) issues at jboss.org
Fri Jan 10 15:08:32 EST 2014


    [ https://issues.jboss.org/browse/WFLY-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935118#comment-12935118 ] 

Otávio Garcia commented on WFLY-2714:
-------------------------------------

Thank you Stuart. I'll do a reproducer as soon as possible. Best regards.
                
> 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