You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Stefan Schuster (JIRA)" <de...@myfaces.apache.org> on 2007/02/23 16:21:05 UTC

[jira] Commented: (TOMAHAWK-258) sandbox inputSuggestAjax ignores onkeydown event

    [ https://issues.apache.org/jira/browse/TOMAHAWK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475353 ] 

Stefan Schuster commented on TOMAHAWK-258:
------------------------------------------

This is actually based on the same issues I experienced with the new tableSuggestAjax component. As the input field gets created by a dojo standard component it does not know or care about the MyFaces attributes. As an improvement to the current situation I've applied the same technique on the inputSuggestAjax as I've done it for tableSuggestAjax (TOMAHAWK-898).

The input field will be generated by the HtmlTextRendererBase and then be injected into the dojo component. This delegates all the standard attribute rendering back to the Base, and attributes like disabled or the javascript event handler work. To do the input field injection it was necessary to create a subclass of the original dojo ComboBox component which was used previously. The derived component gets the clientId of the inputField and will inject it into the component.

> sandbox inputSuggestAjax ignores onkeydown event
> ------------------------------------------------
>
>                 Key: TOMAHAWK-258
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-258
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: InputSuggestAjax
>    Affects Versions: 1.1.2-SNAPSHOT
>            Reporter: Juergen Melzer
>         Assigned To: Gerald Müllan
>
> I created a field like:
> <s:inputSuggestAjax suggestedItemsMethod="#{editUser.getUserNames}" id="stellvertreterUserID"
>                         value="#{editUser.activeSubstitute}" 
>                         onkeydown="alert('Hallo')" 
>                         onclick="alert('Hallo')"/>
> But no javascript event are generated...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.