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

Generalized Ajax Suggest Feature

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Minor
    • 1.3 RC1
    • 1.1 M3
    • None
    • Ubuntu Fiesty
    • suggest, ajax, tags

    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

        1. suggest_img.tar.gz
          0.6 kB
          evely24
        2. XWIKI-1604.patch
          56 kB
          evely24

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: