[richfaces-issues] [JBoss JIRA] Updated: (RF-3809) HotKey: "enable/disable" JS functions do not work for hotKey registered using "add" function.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Jun 27 07:27:31 EDT 2008


     [ http://jira.jboss.com/jira/browse/RF-3809?page=all ]

Nick Belaevski updated RF-3809:
-------------------------------

     Affects: [Documentation (Ref Guide, User Guide, etc.)]
    Assignee: Ilya Shaikovsky  (was: Nick Belaevski)

Not a bug. enable/disable applies to component attributes only. Use remove() to unregister handlers added using add() function

> HotKey: "enable/disable" JS functions do not work for hotKey registered using "add" function.
> ---------------------------------------------------------------------------------------------
>
>                 Key: RF-3809
>                 URL: http://jira.jboss.com/jira/browse/RF-3809
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Alexander Dubovsky
>         Assigned To: Ilya Shaikovsky
>
> HotKey: "enable/disable" JS functions do not work for hotKey registered using "add" function:
> <sb:hotKey id="id" timing="onregistercall" />
> <a4j:commandLink value="disable" onclick="$('_form:id').component.disable(); return false;"></a4j:commandLink>
> <br />
> <a4j:commandLink value="enable" onclick="$('_form:id').component.enable(); return false;"></a4j:commandLink>
> <br />
> <a4j:commandLink id="linkID1" value="add" onclick="return false;"></a4j:commandLink>
> <cc:componentControl attachTo="linkID1" for="id" operation="add" event="onclick">
> <f:param name="key" value="alt+c"/>
> <f:param name="handler" value="alert('Hello!')" />
> </cc:componentControl>
> # Open page
> # Click "add" link
> # Try ALT+C => alert appears
> # Click "disable" link
> # Try ALT+C
> Result: alert appears
> Expected result: alert should not appear

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

        



More information about the richfaces-issues mailing list