flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-35048) [FlexJS] Binding not works expectedly
Date Wed, 16 Mar 2016 19:34:33 GMT

     [ https://issues.apache.org/jira/browse/FLEX-35048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Harui resolved FLEX-35048.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Apache FlexJS 0.6.0

Seems to be working in the nightly builds.

> [FlexJS] Binding not works expectedly
> -------------------------------------
>
>                 Key: FLEX-35048
>                 URL: https://issues.apache.org/jira/browse/FLEX-35048
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Santanu Karar
>            Assignee: Alex Harui
>             Fix For: Apache FlexJS 0.6.0
>
>         Attachments: TestFlexJSTableForAlex.zip
>
>
> [This issue also discussed at: http://apache-flex-users.2333346.n4.nabble.com/Binding-not-works-expectedly-td12171.html]
> Version: Apache FlexJS 0.5.0
> Output platform: HTML
> IDE: Flash Builder 4.7, Moonshine
> I am having trouble binding a ValueObject to UI elements (i.e. text input, label) which
updates by DataGrid.selectedItem upon application State change - DataGrid and UI elements
are exists in different States. Upon DataGrid.selectedItem, application change it's State,
update the ValueObjects field which is binded to UI elements.
> By saying that:
> 1. State A has DataGrid
> 2. State B has a ViewBase component (VB)
> 3. When clicked on DataGrid row it's change handler function called 
> 5. In change handler function application first changed it's State to B - component 'VB'
became visible. Then injects DataGrid.selectedItem to component 'VB's [Bindable]ValueObject
property
> 7. Said ValueObject has it's own GET/SET method along with 'changed' event dispatcher
> {code}
> private var _selectedAgent:AgentChain; 
>                         
> [Bindable("selectedAgentChanged")] 
> public function get selectedAgent():AgentChain 
> { 
>         return _selectedAgent; 
> } 
> public function set selectedAgent(value:AgentChain):void 
> { 
>         if (value != _selectedAgent) 
>         { 
>                 _selectedAgent = value; 
>                 dispatchEvent(new Event("selectedAgentChanged")); 
>         } 
> }
> {code}
> 8. Even application State changed and ValueObject's SET method called, it's bindable
UI elements never updated. Note: This problem specifically in HTML output nor SWF.
> I am attaching herewith a POC project to describe my problem - TestFlexJSTableForAlex.ZIP.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message