This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Flex and the fly likes Navigating From one page to another Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Navigating From one page to another Page" Watch "Navigating From one page to another Page" New topic
Author

Navigating From one page to another Page

shambhu kumar
Greenhorn

Joined: Aug 07, 2008
Posts: 18
I want to create one login screen, after successful login i want to forward to another page. Like in simple jsp, once user login successfully, there is a success page.
How to do this in Flex 4?

One way is using states, show to another state.
What are the options?
Please suggest.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You options are legion, though I'm not sure I'd recommend view states as a control mechanism for your view. You might investigate a pattern such as PureMVC, Cairngorm, Swiz etc.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
shambhu kumar
Greenhorn

Joined: Aug 07, 2008
Posts: 18
Thanks Paul,
Since i am new to flex.
So can you tell which MVC i have to look or start?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Its really your choice. I would recommend reading up on the frameworks mentioned above - none are that complicated, so it it shouldn't take long. From personal experience, Cairngorm is a bit limited, and PureMVC can feel a bit heavy weight. But try them for yourself.
shambhu kumar
Greenhorn

Joined: Aug 07, 2008
Posts: 18
Hi Paul,
I created one MVC example with SWIZ. But i don't know how to navigate from one view to other.
Even i created login page which is checking id password from database nad showing success fail message,
but i want to show some other view (i.e *.mxml file) or navigate to some othe *.mxml.

If you have any sample code for that can you provide me?

Any Flex MVC code will work.
Joel Hooks
author
Greenhorn

Joined: Feb 17, 2010
Posts: 15
the ViewStack is one of the most convenient containers for this type of interaction using a "page" paradigm.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigating From one page to another Page
 
Similar Threads
Listeners help needed!
Calling one page to another - login to welcome page
second user cannot be login when one is login ?
JBOSS session sharing issue
common login page