|
We use a dirty flag. We set it to true
whenever some data changes. This data change is detected by registering
for control events that change data (focusOut for TextInput, selectedDate !=
null for DateChooser, etc.). These events change the data if applicable,
and set the dirty flag.
Other components can bind to the dirty flag and
take appropriate actions, whether via a getter / setter or the binding
tag.
----- Original Message -----
From: hank williams
Sent: Tuesday, July 11, 2006 9:20 AM
Subject: [flexcoders] viewstack design pattern issue I want to trigger the screen to go out and get new data only when: 1. the user enters the specific viewstack sub screen, and 2. when the data for that screen is dirty, based on some bound data that has triggered a change So as I see it, the screen needs to keep track of when the bound field has changed which should cause a call to get fresh data. This means that the screen must keep track of whether it is dirty. This seems like it must be a common scenario, and I am curious about how other people handle it. My first instinct was to create a base screen class from which all my screens could inherit. But I am curious whether cairngorm already handles this or whether this is even part of the scope of what it tries to cover. I am not using cairngorm right now, but may in the future. But understanding what is and isnt in its scope is important for me to start to understand. So anyway, this is a 2 part question. 1. how do people handle this situation 2. does cairngorm have some pre-packaged solution to this issue. Hank __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- Re: [flexcoders] viewstack design pattern issue JesterXL
- Re: [flexcoders] viewstack design pattern issue hank williams
- RE: [flexcoders] viewstack design pattern issue Jason Hawryluk
- Re: [flexcoders] viewstack design pattern issue hank williams
- Re: [flexcoders] viewstack design pattern issue JesterXL
- RE: [flexcoders] viewstack design pattern issu... Jason Hawryluk
- Re: [flexcoders] viewstack design pattern ... JesterXL
- RE: [flexcoders] viewstack design pat... Jason Hawryluk
- Re: [flexcoders] viewstack design... JesterXL
- RE: [flexcoders] viewstack de... Jason Hawryluk

