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

XTile does not work with cookies turned off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.1.5
    • Contrib
    • None

    Description

      The URLs created by XTile do not contain the jsession-id when used with cookies turned off. This is because the link is created with "stateful" set to false (see XTileService.java, line 76). Turning this to true fixes the problem and the URLs are generated including the jsession-id.

      Here's the patch:

      Index: src/java/org/apache/tapestry/contrib/ajax/XTileService.java
      ===================================================================
      — src/java/org/apache/tapestry/contrib/ajax/XTileService.java (revision 585120)
      +++ src/java/org/apache/tapestry/contrib/ajax/XTileService.java (working copy)
      @@ -73,7 +73,7 @@
      parameters.put(ServiceConstants.PAGE, component.getPage().getPageName());
      parameters.put(ServiceConstants.COMPONENT, component.getIdPath());

      • return _linkFactory.constructLink(this, false, parameters, false);
        + return _linkFactory.constructLink(this, false, parameters, true);
        }

      public void service(IRequestCycle cycle) throws IOException

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            thred Manfred Hantschel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: