
|
If you were logged in you would be able to see more operations.
|
|
|
Flex SDK
Created: 10/06/07 05:25 AM
Updated: 10/17/07 03:02 AM
|
|
| Component/s: |
Data Binding
|
|
Security Level:
|
Public
(All JIRA Users
)
|
|
| Severity: |
Incorrectly Functioning with Workaround
|
| Reproducibility: |
Every Time
|
| Discoverability: |
Medium
|
| Found in Version: |
2.0.1 English (Released)
- 54321
|
| Milestone: |
|
| Affected OS(s): |
All OS Platforms
- All
|
| Steps to Reproduce: |
Steps to reproduce:
1. Enter a binding expression which includes a logical operator in MXML e.g.
<mx:Button enabled="{!this.model.user.authorized && this.creditCardForm.valid}"/>
Actual Results:
The compiler raises the following error:-
"The entity name must immediately follow the '&' in the entity reference."
Expected Results:
You would expect logical operators to be valid inside {} otherwise you'd expect the documentation at least to say they were not valid.
Workaround (if any):
Wrap the logical expression in a function and call the function from the binding expression e.g.
<mx:Button enabled="{this.logicalAnd(!this.model.user.authorized, this.creditCardForm.valid)}"/>
Steps to reproduce:
1. Enter a binding expression which includes a logical operator in MXML e.g.
<mx:Button enabled="{!this.model.user.authorized && this.creditCardForm.valid}"/>
Actual Results:
The compiler raises the following error:-
"The entity name must immediately follow the '&' in the entity reference."
Expected Results:
You would expect logical operators to be valid inside {} otherwise you'd expect the documentation at least to say they were not valid.
Workaround (if any):
Wrap the logical expression in a function and call the function from the binding expression e.g.
<mx:Button enabled="{this.logicalAnd(!this.model.user.authorized, this.creditCardForm.valid)}"/>
|
| Language Found: |
English
|
| Bugbase Id: |
none
|
| Triaged: |
Yes
|
| Regression: |
No
|
| QA Owner: |
Gaurav Jain
|
| Resolved by: |
Lauren Park
|
| Participants: |
Gaurav Jain, Graeme Harker, Kristen Sindac, Lauren Park, Paul Reilly and Steve Breinberg
|
| JDK: |
Sun 1.6.x
|
|
All
|
Comments
|
|
Sort Order:
|
|
Logical OR operator works in the same scenario. It's the use of '&&' that causes the compiler error.
Another workaround is to use '&&'
<mx:Button label="Test" enabled="{this.authorized && this.cc}" />