Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2598

Infinite loop when returning current page instance from onActivate using "this"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 5.0.14
    • Fix Version/s: 5.0.14
    • Component/s: None
    • Labels:
      None

      Description

      This kind of activate handler goes into infinite loop:

      Object onActivate()

      { System.out.println("This is looping infinitely ..."); return this; }

      Returning "null" instead of "this" works OK. It's stated in docs that "null" should be used when wanting to direct to current page, but nevertheless, "this" shouldn't trigger infinite loop.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vjeran@tis.hr Vjeran Marcinko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: