0 Replies Latest reply on Dec 12, 2009 1:49 AM by Shivik

    About using Presentation Model Patterns

    Shivik Level 1

      Hello all

       

      I have just started using presentation model with Cairngorm in my webapp. I know that presentation model states that the state and UI logic should not reside in the view. I am trying to fit this into my login screen scenario.

       

      When I press the login button and the username/password is incorrect. I want to display an error box right there in the view. Now how should I display this using the presentation model?

       

      • If I create the particular state using actionscript inside presentation model for the login screen, how will I access a particular component in view after which I want to display the error box.
      • If I create the state using mxml tags, can't I directly update the currentstate using the modellocator which gets set in responder if login fails

       

      Please help me out with this

       

      Thanks and Regards

      ShiVik