Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2720

dispatching after action phase renders with different stack/TextProvider

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: Plugin - Portlet
    • Labels:
      None
    • Flags:
      Patch

      Description

      when dispatching after an action phase to a servlet the stack is restored in the render phase by appending it to the stack of the action phase..
      but when using the <s:text ..> jsp tag the first TextProvider of the stack is used (by TextProviderHelper#getText) - no matter if it returns a match or not .. this is why my translations aren't working after the action phase.. (i use a action extending ActionSupport with message bundles in the same package)

      the problem was fixed for me when i tried to restore the stack in the 'PortletStackInterceptor' by putting the stack from the action phase in front of the current stack, instead of appending it at the end... (very simple patch .. i simply added a '0,' )

      is that a useful solution ?

      thanks,
      herbert

        Attachments

        1. portletstateinterceptor.patch
          0.7 kB
          Herbert Poul

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kahless Herbert Poul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: