Hi
I have some code. I use Cairngorm.
I create a simple command, controller, event, modelLocator, model and view.
In my view I have a textInput bind with a variable 'value' form my model
<s:TextInput id="textInputName" width="100%" text="{modelLocator.model.value}" valueCommit="modelLocator.model.value = textInputName.text"/>
<mx:HRule width="100%"/>
<s:Button width="100%" label="Reset" click="reset()"/>
When I start, the text of the textInput is the value of the 'value' of my model.
When I change the value of the textInput, it change 'value' of my model.
But when I'm doing reset, it send an event and the command set 'value' of model to "" but the text of the textInput doesn't change.
Why? Doesn't the value of the textInput change because the value of 'value' of the model change?
If not what do I have to do to do it?
Question Binding
190 Views Asked by Snote At
1
There are 1 best solutions below
Related Questions in APACHE-FLEX
- How to Run flash applications in any browsers with out adding manual extensions in 2023
- Error: Infra Phase complete, 0/0 resources updated in 02 seconds
- How to replace HTMLLoader to display PDF inside air application
- Air desktop application CSS file and image url
- Flex conditional statement: set VGroup height according to Label Text
- D365 - Azure Devops - Git Repo - How to check the history of a file which is stored in separate folders in the Main branch
- How to access data from row in Grid while selecting it so that further it can be used in Text Field below in Adobe Flex (ActionScript)?
- Actionscript: Access of possibly undefined property id
- Adobe flex in 2021
- How i can add cron entry without time using chef
- Equivalent of parent parentDocument from flex
- Captive runtime packaging issue (Failed to load the AIR Runtime) under Catalina 10.15.7 with ADT
- Getting error while running curl command via chef
- How can I create a context menu on the fly in a textArea in AS3/AIR?
- Flex SDK installer fails to download https://github.com/swfobject/swfobject/archive/2.2.zip
Related Questions in ACTIONSCRIPT-3
- [Actionscript]How to display the information inside an array of objects
- How to set a colour variable in JS
- When using INSERT OR REPLACE INTO in SQL is there any way to tell if a record was inserted as new or replaced in SQL for AS3?
- How to inject a bean in a view with Crux
- AS3 - Unable to resize Image width and height
- How do I move Pac-Man smoothly in AS3?
- Export Release Build is not working in Adobe Flash Builder, It does nothing on Finish button
- 1009 Error for a Character Skin Symbol in AS3
- Issue setting domain memory
- Implicit coercion of a value with static type Object to a possibly unrelated type Number
- Defer implementation of interface functions to child class
- Simple top 3 scores from an array to textfield
- Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip
- AS3 Caling MC on Parent Timeline from Child
- 2 error problems for simple music players
Related Questions in DATA-BINDING
- Binding forecolour and ToolTip to a DataGrid
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Binding data with unknown columns to a DataGrid in WinUI 3
- How to Display UserControl as SplitView Content? - Avalonia C#
- How to bind to the DataContext ViewModel of another view?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- The radgridview row data count in WPF
- Problem with the use of converters in WPF
- I'm having trouble binding one control to another. Why?
- Binding Multiple Classes to a WPF Treeview
- WinForms data binding without properties
- Error XFC0045 - How to bind a CarouselView to ObservableCollection in Maui?
- I cannot navigate to a second page more than once
- How to access fields of ObservableCollection<Object> in xaml file
- Synchronize a bindable property with a command
Related Questions in CAIRNGORM
- Definition mx.binding.utils.BindingUtils could not be found similar couple of imports not loading
- Maven compile error: unable to load SWC
- Flex 3 - ActionScript - Cairngorm DispatchEvents - How to know it's complete
- Conversion of Date into string in java when storing in database
- Can RemoteObjects be used with Granites´s Tide to enable Lazy Loading?
- AMF message error java.io.EOFException implementing graniteDS
- flex cairngorm addComand not work
- Method injection in Parsley
- MessageHandler captured in various tabs - Flex
- best MVC framework for Adobe Flex
- Cairgrom ModuleLoader memory leaks?
- cairngorm vs mate framework comparison in flex
- Not assigning data from java VO to Flex VO using cairngorm
- Error: cannot add .mxml file to project
- Unable to create SqlMap for PersistenceClient with Cairngorm Persistence Library
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Make sure that value is bindable in the model.
As a side note,instead of using a valueCommit event,you can use the bidirectional binding feature available in flex 4:
Whenever value is updated,text property is also updated(provided,value is bindable) and vice versa