[Cosmo-dev] Cosmo WebUI Service Layer
Matthew Eernisse
mde at osafoundation.org
Tue Mar 6 12:57:53 PST 2007
Bobby Rullo wrote:
> I was thinking something more in the line of having a hook in the
> service layer for a callback for what to do for this specific exception
> (user not logged in or something). I'd rather not have to have the UI
> code handle this every time it makes a service call, instead it just
> registers at app startup this callback which pops a dialog to log the
> user in again and if successful tries again....
This actually dovetails nicely with the way the AuthBox widget works.
It has an authAction property that you use to set up an action to take
if the user successfully authenticates. We would have to have the UI
code remember what the user was trying to do when the timeout error
occurred, and then package that up and pass it to the AuthBox.
More information about the cosmo-dev
mailing list