Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1299

s:link - Postback before redirect triggers Page Action of PREVIOUS page

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.2.0.GA
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Seam 1.2-Patch1

      Description

      Scenario:
      Page A contains an <s:link> to go to page B. Page A has a page action defined in pages.xml. When I click the s:link on Page A, to go to Page B, it invokes the page action for Page A before redirecting to Page B. If I replace the s:link with an h:commandLink, it works as I would expect it to, i.e., no page action for Page A.

      I have now retested and I have this scenario in multiple instances within my application. In most cases, I didn't even realize that it was invoking the page action for Page A, as by luck the method was designed such that it did not throw an exception or cause any other noticeable problems. However, I finally noticed this behavior when my luck ran out and I wrote a page action method that threw an exception when called unitentionally in this situation.

      Is this perhaps a bug in s:link or am I not properly understanding and utilizing its capabilities?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                JohnEChesher John Chesher
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: