[flexcoders] Reload (reinitialize) application

2007-04-20 Thread roman_dolgov
What is best way to reload / reinitialize the whole flex application from code? I want to be able to reset state of my application on timeout event, it seems that the easiest way is to somehow recreate the whole app or at least main view. Something like: Application.application = new

[flexcoders] Re: DataGrid paging?

2007-03-07 Thread roman_dolgov
I am facing similar problem and wrote a blog entry on similar topic: http://blog.widget-labs.com/?p=7 (The main idea is to implement custom IList data provider that relies on ItemPendingError for delayed loading) regards rd --- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote:

[flexcoders] Re: observing a model change in cairngorm

2007-02-17 Thread roman_dolgov
Looks like you need to define a custom 'DataChange' event on your data model, and then listen for this event in your view classes and once event received redraw view based on new data. (something similar to ArrayCollection/DataGrid behavior - you can check ListCollectionView, see

[flexcoders] Re: Propogating exception info from Web Service to Flex

2007-02-15 Thread roman_dolgov
I posted a blog entry with more details just in case: http://stackoverflowexception.blogspot.com/2007/02/handing-web-service-exception-in-flex.html --- In flexcoders@yahoogroups.com, roman_dolgov [EMAIL PROTECTED] wrote: Looks like servlet filter is the way to go. See related discussion

[flexcoders] Re: Propogating exception info from Web Service to Flex

2007-02-14 Thread roman_dolgov
for adding more details to the Exception that get passed on the response. Check out the javadoc for more details. http://envoisolutions.com/xfire/api/org/codehaus/xfire/fault/XFireFaul t.html pd --- In flexcoders@yahoogroups.com, roman_dolgov roman_dolgov@ wrote: Does anybody

[flexcoders] Propogating exception info from Web Service to Flex

2007-02-13 Thread roman_dolgov
Does anybody has an example (using XFire WS implementation but really any similar env would be helpful too) how to properly pass exception information from web services to flex and make sure that fault handler receives faultDetail/faultString populated with meaningful data (some application

[flexcoders] Flex Builder launch application from Additional source folder

2007-01-26 Thread roman_dolgov
Is it possible to launch application located in additional source folder? For ex. I have two source folders in Flex Builder Project /src /test I have main app in src file. I would like have FlexUnit app/launcher in /test folder. The problem that I cannot launch FlexUnit runner. Looks like Flex

[flexcoders] How to run code from Flex Library Project

2007-01-22 Thread roman_dolgov
Hi All, How can I run code from Flex Library Project? For example I want to add some test files (MXML Application Components) and be able to run them form Flex Library Project. Unfortunately it looks like you can not do it, so right now I just created another project (Flex Project) and run

[flexcoders] Remote list (data provider)

2007-01-21 Thread roman_dolgov
FYI: Just to share a sample implementation of IList that supports remote paging and works well with DataGrid. (You don't need it if you are using FDS, otherwise I could not find much info how to do it without FDS) I tried two approaches: - using event notification - using ItemPendingError The

[flexcoders] Re: Does DataGrid properly support ItemPendingError?

2007-01-18 Thread roman_dolgov
Just in case: Found a good article on similar subject: http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets.cfm it's about Flex 1.5, but the same idea can be applied to the Flex 2.0. --- In flexcoders@yahoogroups.com, roman_dolgov [EMAIL PROTECTED] wrote: I am trying

[flexcoders] Does DataGrid properly support ItemPendingError?

2007-01-17 Thread roman_dolgov
I am trying to implement a collection that supports remote lazy loading. I've extended IList interface and added the following code for getItemAt(): public function getItemAt(index:int, prefetch:int=0.0):Object { if (needsToBeFetched(index)) { fetchDataFromRemoteLocation(); // using web

[flexcoders] Flex Builder 2.0.1 crashe

2007-01-07 Thread roman_dolgov
FYI: I've noticed that Flex Builder 2.0.1 doesn't handle well library dependency in one case: If you create a Flex Library Project, then create a folder inside of the project, add a library file (swc) inside of the folder and add dependency on the this library in the project properties the Flex