[
http://jira.nuxeo.org/browse/NXP-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=68266#action_68266
]
Anahide Tchertchian commented on NXP-4633:
------------------------------------------
It seems that adding a tag "f:setPropertyActionListener" under a "a4j:support
event="onselect"" under the suggestion box tag makes it possible to save the
selected result value to a bean.
Strangely, that does not work when using a "f:param" tag or even
"a4j:actionparam".
The problem now is to be able to call this action listener before calling the
other action listener that will put the selected entry value in a list (or
other components), as action listeners given as attributes are registered first.
This can be done using the "f:actionListener" tag, but it only accepts an
ActionListener interface implementation, not a bare method binding => a new tag
should be created to handle action listener methods, and placed after the
"f:setPropertyActionListener" tag.
> Improve retrieval of a selected entry in suggestion boxes
> ---------------------------------------------------------
>
> Key: NXP-4633
> URL: http://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:
http://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