I have a form where I can have several registered codes, I would like to make only a inputText
of start, if you need to enter more than one code I press a shortcut key and then another inputText
appears below the first one and by there it goes.
Example: I press ctrl+1
and another field similar to the one above appears below, every time I enter the shortcut a new field appears.
How do I do this in JSF
? I've been looking for a few things and I've seen that I can use <p:hotkey>
for shortcuts, but I still do not know how I load a inputText
only when the shortcut is pressed.