You can use the icecore:defaultAction tag to initiate a form submit when a certain key is pressed. An action or an action listener can be defined to control which method to be invoked on the server side.
To use the icecore:defaultAction tag, first declare the core namespace:
Then add the tag to your page markup wiring the action to the bean method:
The component can be used within a form to capture certain key press events. Multiple icecore:defaultAction instances can be used to capture different key press events.
Multiple key mappings wired to the same action/actionListener can be done as well.
© Copyright 2018 ICEsoft Technologies Canada Corp.