Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1222

forceIdIndexFormula must encode value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.6
    • None
    • Extended Datatable
    • None
    • Any

    Description

      The documentation does not impose any restriction on the value passed to forceIdIndexFormula. But as Tomahawk makes the value returned part of the component id, the value must confirm to the restrictions on component ids imposed by the specification. This should either be specified in the documentation (bad) or the value should be encoded when used in the component id (better).

      The problem showed up in my case because the rows displayed show data from an LDAP server and the distinguished name used as unique key contains commas. This breaks Sun's JSF RI because it creates a JavaScript function invocation with "f(id,value)". When the id contains a comma (as in my case) the function arguments cannot be seperated properly any more.

      Attachments

        1. testcase1.rar
          0.9 kB
          Paul Rivera
        2. AbstractHtmlDataTable.patch
          3 kB
          Paul Rivera

        Activity

          People

            Unassigned Unassigned
            drmlipp Michael Lipp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: