[ 
http://jira.xwiki.org/jira/browse/XWIKI-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergiu Dumitriu closed XWIKI-1604.
----------------------------------

    Resolution: Fixed
      Assignee: Sergiu Dumitriu

First implementation committed in rev. 7859

Patch applied in two steps. Most of the document where committed along with the 
new RMUI. A missing file was just committed with a few changes.

There are some problems with the current implementation:
- It requires a document with programming rights. Right now it uses 
Main.WebHome, but it's not a good assumption that it will always have 
programming rights.
- In a field with more than one value, the completion is triggered for the last 
word in the list, even if the user is typing in another word.
- The JS code is not clean. It uses yet another codestyle, its own Ajax request 
implementation, event listeners...

This should be rewritten as an interface/skin/template extension, with a 
rewritten javascript core.

> Generalized Ajax Suggest Feature
> --------------------------------
>
>                 Key: XWIKI-1604
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1604
>             Project: XWiki Core
>          Issue Type: New Feature
>          Components: Templates, Skins & User Interface
>    Affects Versions: 1.1 M3
>         Environment: Ubuntu Fiesty
>            Reporter: Evelina Petronela Slatineanu
>         Assigned To: Sergiu Dumitriu
>            Priority: Minor
>             Fix For: 1.3 RC1
>
>         Attachments: suggest_img.tar.gz, XWIKI-1604.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to