Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2501

Allow creation of action/render/resource urls from a ResourceResponse

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.24.14
    • 2.24.15, 2.26.02
    • None
    • None

    Description

      Based on this thread: http://hippo.2275632.n2.nabble.com/Resource-response-is-not-allowed-to-invoke-createActionURL-tt7580647.html

      When serving a resource request you are not allowed to invoke code that will create a renderUrl, actionUrl etc.

      I have this resource response that will render a bit of html of an AJAX request. This will (among other things) a form that I would like to post. However the 'actionUrl' cannot be created:


      java.lang.UnsupportedOperationException: Resource response is not allowed to invoke createActionURL().
      at org.hippoecm.hst.core.component.HstResourceResponseImpl.createActionURL(HstResourceResponseImpl.java:65)
      at org.hippoecm.hst.tag.HstActionURLTag.getUrl(HstActionURLTag.java:49)
      at org.hippoecm.hst.tag.BaseHstURLTag.doEndTag(BaseHstURLTag.java:67)

      Woonsan's reply to this was:


      I think you spot a problem.
      I don't think there's any reason to disallow to create
      action/render/resource urls with the resource response object.
      I guess we will need to fix the problem and sorry for that.

      Attachments

        Activity

          People

            svoortman Simon Voortman (Inactive)
            aukevanleeuwen@gmail.com Auke van Leeuwen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: