[richfaces-issues] [JBoss JIRA] (RF-13251) FocusManager to support complex components like rich:autocomplete

Immo Benjes (JIRA) jira-events at lists.jboss.org
Thu Nov 28 04:57:05 EST 2013


    [ https://issues.jboss.org/browse/RF-13251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927298#comment-12927298 ] 

Immo Benjes commented on RF-13251:
----------------------------------

Hi Lukáš,

If you have a autocomplete component with the id="autocomplete" the actual generated code does not have an input field with the id="autocomplete". It has some subIds. The preserve focus might work but if you want to assign the focus with the focusManager it does not work. I have tried using focusManager.focus("autocomplete") (does not work) and focusManager.focus("autocomplete_input") (or similar can't remember the subID the actual input field has) but this doesn't work either. 
                
> FocusManager to support complex components like rich:autocomplete
> -----------------------------------------------------------------
>
>                 Key: RF-13251
>                 URL: https://issues.jboss.org/browse/RF-13251
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: component-misc
>    Affects Versions: 4.3.4
>            Reporter: Immo Benjes
>            Assignee: Lukáš Fryč
>            Priority: Minor
>              Labels: waiting_on_user
>
> Currently the FocusManager in Richfaces only works on 'simple' UI components like h:inputText or h:selectOneMenu but not on more complex components like rich:autocomplete.
> It would be good if FocusManager could support complex components or 'real' Ids as generated for that page.
> The use case for the support on autocomplete is like this:
> User has to enter multiple 'entities'. A rich:autocomplete is used to select the entity and add it to a list. After each ajax submit the focus gets lost and the user has to manually set the focus back to the autocomplete input field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list