javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1412

Add PartialViewContext#getEvalScripts() which should add <eval> to <partial-response>

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: Ajax/JavaScript
    • Labels:
      None

      Description

      Add PartialViewContext#getEvalScripts() which returns a mutable List<String> so that the developer can add scripts to <eval> of the <partial-response> using standard API. The PartialResponseWriter has already startEval() and endEval() in place since beginning, but this is actually never used.

      This approach allows easily executing scripts on complete of ajax response. Both OmniFaces and PrimeFaces have an enhanced PartialViewContext implementation which offers this additional method which is ultimately used by respectively RequestContext#execute() and Ajax#oncomplete().

        Activity

        Show
        balusc added a comment - - edited Committed: https://java.net/projects/mojarra/sources/git/revision/291f66b172563fd196adc1b03725ae5ffdc411ec https://java.net/projects/mojarra/sources/git/revision/e2d406495db41ab73c303f6e6ea09eb726749a53 https://java.net/projects/mojarra/sources/git/revision/eb18cb1cc468a312aa47b08ae95a3c75e84430da
        Hide
        balusc added a comment -

        Ed, please review.

        Show
        balusc added a comment - Ed, please review.
        Hide
        balusc added a comment -

        Already in 2.3 m05.

        Show
        balusc added a comment - Already in 2.3 m05.

          People

          • Assignee:
            Ed Burns
            Reporter:
            balusc
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: