Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10793

Remove dash character from form names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF11, 5.7.1
    • Component/s: None
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      JSF function nxu:jsfTagIdEscape can now be used to sanitize ids fir JSF/Ajax

      Show
      JSF function nxu:jsfTagIdEscape can now be used to sanitize ids fir JSF/Ajax

      Description

      If the "-" dash character is used in ajaxified forms, it may generate issues with ajax requests, as this character is badly encoded/decoded by the ajax re-render.

      Symptom is that an ajax action will work once, but not twice, and the following error is visible in the javascript console:

      Error: TypeError: this._form is null
      Source File: http://localhost:8080/nuxeo/a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js.xhtml
      Line: 2792
      

      As ids on client side are usually generated from the layout or widget id, the layout service should strip this character from layout and widget names when generating ids.

      But other templates generating form names (like content view templates) should be stripping this character too => add a helper JSF function to handle these cases.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: