This content has been marked as final.
Show 2 replies
-
1. Re: rich:hotkey only works the first time?
niox Dec 8, 2009 2:54 AM (in response to btj)Hi,
Try to reRender the <rich:hotKey> too.
Why? When the <rich:hotKey> is first rendered, it finds the client-side control based on the jQuery selector "#searchfield" and attaches an event to it. When the AJAX request reRenders the page, the old control is totally replaced, together with the old event handler.
ReRendering the <rich:hotKey> will (hopefully) re-establish the event handler as well. -
2. Re: rich:hotkey only works the first time?
btj Dec 9, 2009 2:05 AM (in response to btj)Actually, what I needed to do, was to remove the rerender for my code... both the jsfunction and hotKey was in a group that was rerendered... Removing that group from rerender and now it works....
BTJ