Results 1 to 8 of 8

Thread: Triggering a SWF 2.0 flow from rich:menuItem

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Posts
    13

    Default Triggering a SWF 2.0 flow from rich:menuItem

    I have integrated richfaces 3.2.1.GA into SWF 2.5.5 and was wondering how to trigger a webflow from a richfaces menuItem. Any help would be appreciated.

  2. #2
    Join Date
    Jun 2007
    Location
    Dublin, Ireland
    Posts
    72

  3. #3
    Join Date
    Mar 2005
    Posts
    13

    Default Solved by using onclick

    I actually got this working by using the onclick action as shown below

    <rich:menuItem submitMode="none" value="Golf Courses" onclick="document.location.href='${request.context Path}/courses.html'" />

    Thanks for your help.

  4. #4
    Join Date
    Jun 2007
    Location
    Dublin, Ireland
    Posts
    72

    Default

    That's a good one. Funny how you sometimes never think of the solution that stares you right in the face.

    I guess the only problem with that method is that it does not perform the post back but if this is from a page with no information on it to be saved it wont be an issue.

  5. #5

    Default

    But if you think of it, we always use a menu to move from a window to another window without saving anything (on desktop), so an invocation of action in menu would seem weird. Is there any usecases about using menu to invoke an action ? using it as a navigation ?

  6. #6
    Join Date
    Jun 2007
    Location
    Dublin, Ireland
    Posts
    72

    Default

    Am sure there are some, but anyway, if it's not a requirement and javascript is always enabled, the way you outlined is the most straight forward.

Tags for this Thread

Posting Permissions

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