Search the web
Sign In
New User? Sign Up
cairngorm-documentation · Cairngorm Documentation Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
CG best practices   Message List  
Reply | Forward Message #1035 of 1038 |
RE: [cairngorm-documentation] CG best practices

Also, take a look at universal mind extension for view callbacks.

 

You could always set a property in y our model that store the server connection status. Use observe to watch it and trigger your re-connect question from there

 

From: cairngorm-documentation@yahoogroups.com [mailto:cairngorm-documentation@yahoogroups.com] On Behalf Of stoica ionut
Sent: 01 June 2009 11:38
To: cairngorm-documentation@yahoogroups.com
Subject: Re: [cairngorm-documentation] CG best practices

 




I strongly recommend you to move to PureMVC, there you will not have this kind of worryings anymore. But, for your case, follow this article:

http://www.gridlinked.info/cairngorm-secret-tip-3-responders-for-view-notifications/

Unfortunately, to trigger a "view" action like yours (having an error) you will need to avoid mvc pureness (cairngorm-ishism :P)

Normally, the nature of cairngorm, makes view related things available/trigger when model changes.

But in real life, it is not always like this, therefore please have the patience to try PureMVC, it is a lot like cairngorm (you will also ditch ModelLocator).

--- On Mon, 6/1/09, pyskoluk <pyskoluk@...> wrote:


From: pyskoluk <pyskoluk@...>
Subject: [cairngorm-documentation] CG best practices
To: cairngorm-documentation@yahoogroups.com
Date: Monday, June 1, 2009, 12:45 PM

Hi all,
I am calling remote object method and in fault() handler I want to check whether server returned SessionDisconnected Exception. If it does then I want to open pop-up window with something like "do you want to reconnect to database?" and two buttons Yes/No.
And now the question. How should I handle it to follow CG best practices? Should I dispatch ReconnectEvent in fault method and then to create and show that pop-up dialog in ReconnectCommand? But command shouldn't work directly with view. So how to do it?

Thanks for your tips,
//pyso







Mon Jun 1, 2009 10:46 am

tinylion1968
Offline Offline
Send Email Send Email

Forward
Message #1035 of 1038 |
Expand Messages Author Sort by Date

Hi all, I am calling remote object method and in fault() handler I want to check whether server returned SessionDisconnectedException. If it does then I want...
pyskoluk
Offline Send Email
Jun 1, 2009
10:22 am

I strongly recommend you to move to PureMVC, there you will not have this kind of worryings anymore. But, for your case, follow this article: ...
stoica ionut
iongion
Offline Send Email
Jun 1, 2009
10:38 am

Also, take a look at universal mind extension for view callbacks. You could always set a property in y our model that store the server connection status. Use...
Glenn Williams
tinylion1968
Offline Send Email
Jun 1, 2009
10:47 am

I have a CG applicaiton. When user presses a search button, I also show them a cancel button to cancel the job if it is taking more time. What is the best...
Asif Rasheed
asifrasheed.rm
Offline Send Email
Aug 25, 2009
1:37 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help