Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1604

Generalized Ajax Suggest Feature

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1 M3
    • Fix Version/s: 1.3 RC1
    • Labels:
      None
    • Environment:
      Ubuntu Fiesty
    • keywords:
      suggest, ajax, tags
    • Similar issues:

      Description

      Generalized, user-friendly suggest feature for html input fields, using ajax.
      It works for properties of type:

      • StringClass
      • DbListClass
      • StaticListClass
        Also works for tags (which are of type StaticListClass with Multiple Select and Relational Storage activated).

      For DbListClass, the suggest can be used with the user's query (in the field "Hibernate Query", from the class). If the query retrieves two columns from the database (i.e "select distinct obj.name, prop.value from..."), then the first column is used as a "key" and placed in a hidden input, and the value is retrieved using obj.name. If the object does not exist yet, the user must create an object first and then use the suggest feature. If the query retrieves only one column (i.e "select prop.value from...") then the suggest feature does not need a hidden input to retrieve the key. If the user's query retrieves more than 2 columns, the suggest feature ignores the third, fourth...columns.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              evelina.slatineanu Evelina Petronela Vrabie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: