Results 1 to 2 of 2
  1. #1
    meo_spt is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Default How to redirect to other action inside view-state ?

    Hi all pro, i have a view-state:

    Java Code:
    <view-state>
    
    		<transition on="REGISTER" to="buttonCheck"  >?????</transition>
    		
    		<transition on="ADD" to="xxx"></transition>
    
    		<transition on="UPDATE" to="yyy"></transition>
    
    </view-state>
    I have a question, how i can do this thing ?

    When i submit form with "REGISTER" action.
    If "flowScope.button=='copy'", redirect to ADD action
    If "flowScope.button=='change'", redirect to UPDATE action

    Please help me how to do. Thank in advance!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How to redirect to other action inside view-state ?

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Jbutton inside a jtable wont fire action
    By giskard in forum AWT / Swing
    Replies: 5
    Last Post: 08-02-2011, 08:07 PM
  2. Replies: 2
    Last Post: 02-14-2011, 02:27 PM
  3. How enter this mode-gui/design-view/code-view
    By lse123 in forum NetBeans
    Replies: 0
    Last Post: 02-28-2010, 09:09 PM
  4. actionErrors inside of Action
    By Jack in forum JDBC
    Replies: 2
    Last Post: 07-04-2007, 03:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •