This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSF and the fly likes [RichFaces] a4j:commandButton, panel, modalpanel and hotkeys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[RichFaces] a4j:commandButton, panel, modalpanel and hotkeys" Watch "[RichFaces] a4j:commandButton, panel, modalpanel and hotkeys" New topic

[RichFaces] a4j:commandButton, panel, modalpanel and hotkeys

slapnut city

Joined: Dec 10, 2010
Posts: 1
For a user application I have a panel (id = 'panelID') with an a4j:commandButton on it (this button closes the current panel) and attached to it a rich:hotKey with the key 'Alt + q'. This combination executes the a4j:commandButton. I also have another button which triggers a rich:modalpanel (id = 'modalpanelID') to be shown. This modalpanel should also have an a4j:commandButton with a rich:hotKey. This has somewhat the same functionality, i.e. this button should close the modalpanel. For user friendliness, all buttons with this behaviour in the application should have the same name and the same hotkey associated with it. So this button on the modalpanel should have the key 'Alt + q' associated with it.

Now I have the problem that when my modalpanel is shown and I execute the 'Alt + q' hotkey, my panel with id = 'panelID' closes, because the commandButton on this panel is executed. Is there any way that when the modalpanel is shown, only the buttons on this modalpanel can be executed via hotkeys and not those on the 'normal' panel?
I agree. Here's the link:
subject: [RichFaces] a4j:commandButton, panel, modalpanel and hotkeys
jQuery in Action, 3rd edition