Here is a sample of using an argument to a message. This argument contains the name of the event to go to when there is a successful login: http://modelglue.pastebin.com/m642347ec
Using this technique allows all the event names to be kept inside the XML files which means the XML file is an even more useful blueprint of how your application works. When we use this XML file in this manner, we avoid having to dig through all sorts of code files just to figure out application flow. Is that a good example? On Mon, Oct 19, 2009 at 5:36 PM, Jeremy Prevost <[email protected]> wrote: > > Dan, > > I think I see where you are going with this and I am very much > interested in a code sample. No hurry though (i.e. please don't try to > write it on a Blackberry!) > > Thanks, > Jeremy > > On Oct 19, 4:22 pm, Dan Wilson <[email protected]> wrote: > > You could also do something on your controller. > > > > Look for the condition and use event.forward() to handle the redirect > there. > > > > For better documentation purposes, you can use an argument to your > > message to store the event you wish to forward to, preserving the > > application blueprint.. > > > > I'm on my blackberry, so I'll avoid the long code sample. Let me know > > of you'd like a more full technique. > > > > Dw > > > > -- > > “Come to the edge, he said. They said: We are afraid. Come to the > > edge, he said. They came. He pushed them and they flew.” > > > > Guillaume Apollinaire quotes > > > -- “Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.” Guillaume Apollinaire quotes --~--~---------~--~----~------------~-------~--~----~ Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en -~----------~----~----~----~------~----~------~--~---
