File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[RichFaces] a4j:commandButton, panel, modalpanel and hotkeys" Watch "[RichFaces] a4j:commandButton, panel, modalpanel and hotkeys" New topic
Author

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

slapnut city
Greenhorn

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: http://aspose.com/file-tools
 
subject: [RichFaces] a4j:commandButton, panel, modalpanel and hotkeys
 
Similar Threads
Global Hotkeys, other than JIntellitype
Hotkeys and launching HTML file
HotKeys
Scubanaked needs help with hotkeys w/mods
rich:hotKey not worked when using jQuery?