[ 
https://jira.nuxeo.org/browse/NXP-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=69387#action_69387
 ] 

Anahide Tchertchian commented on NXP-4633:
------------------------------------------

Strange selection problem occurs when replaying the query at selection time 
(after first query) => different results end up being in the request, and 
selected entry is lost (first entry found is then taken).

Solution consists in passing all parameters needed for first query in ajax 
support for selection => parameters needed for suggestions need to be 
dupplicated for a4j:support event="onselect".

> Improve retrieval of a selected entry in suggestion boxes
> ---------------------------------------------------------
>
>                 Key: NXP-4633
>                 URL: https://jira.nuxeo.org/browse/NXP-4633
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>    Affects Versions: 5.3 GA
>            Reporter: Anahide Tchertchian
>            Assignee: Anahide Tchertchian
>             Fix For: 5.3.1
>
>
> The richfaces suggestion box default behaviour is to put the selected entry 
> information right back into the suggestion input.
> To manage the information in a more structured way, we currently :
> 1. make sure the id of the selected entry is written into the input
> 2. call an ajax action listener that will use this input information, and put 
> it elsewhere (for instance in a list, or in another input when a single 
> selection is involved)
> 3. call javascript methods to empty the suggestion input
> This is a bit hacky, and sometimes produces errors in selection, for instance 
> when user has time to type something in the input before the ajax call is 
> done. Also, the selected entry id appears in the input for a few 
> milliseconds, which can be disturbing for the user.
> There should be a way to retrieve the selected entry id without hacking the 
> suggestion input.

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

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to