flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santanu Karar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35048) [FlexJS] Binding not works expectedly
Date Tue, 22 Mar 2016 05:37:25 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15205840#comment-15205840
] 

Santanu Karar commented on FLEX-35048:
--------------------------------------

I believe it's 0.6.0 Nightly build; does it works with 0.5.0 too (?) as it's the version which
publicly distributing now.

> [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