Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2469

add postback flag to page actions

    Details

    • Affects:
      Documentation (Ref Guide, User Guide, etc.)
    • Estimated Difficulty:
      Low

      Description

      Page actions are incredibly useful, but sometimes they can get in the way during a postback. I would like to see a postback attribute added to the <action> tag that can be used to disable the action on postback. It's possible using a conditional, but it is ugly and a lot of typing.

      Here is the logic that would go into Pages.java

      private boolean isPostBack(FacesContext facesContext)

      { return facesContext.getExternalContext().getRequestParameterMap(). containsKey(ResponseStateManager.VIEW_STATE_PARAM); }

      The conditional alternative would be:

      <action execute="#

      {component.action}

      " if="#

      {empty param['javax.faces.ViewState']}

      "/>

        Gliffy Diagrams

          Attachments

            Issue Links

            There are no Sub-Tasks for this issue.

              Activity

                People

                • Assignee:
                  dan.j.allen Dan Allen
                  Reporter:
                  dan.j.allen Dan Allen
                • Votes:
                  5 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour
                    1h
                    Remaining:
                    Remaining Estimate - 1 hour
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified