Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-20834

Allow a tool based on VelocityPortletPaneledAction to switch Panels as part of an action

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.7.2, 2.8.1, 2.9.0
    • Component/s: Velocity
    • Labels:
      None

      Description

      This will add a new method to VelocityPortletPaneledAction:

      public static void switchPanel(SessionState state, String newPanel)

      This will only have an effect in an action method and will allow the change of a panel as a result of an action in between the POST and the GET.

      Here is an example use:

      if ( errors != null )

      { addAlert(state, errors); return; }

      switchPanel(state, "Main");

      If there are errors, we set the alert and go back to the same panel from whence we came. If things worked OK, we switch back to the Main panel.

      This will allow VPPA applications to use panels in the URL better and use state less for which panel to show. This is a critical feature to allow these Velocity tools to move to a more RESTful and less STATEful approach overall. And in particular as one builds new Velocity tools, one can assiduously avoid state except for very limited situations.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  csev Charles Severance
                  Reporter:
                  csev Charles Severance
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code