1
I have a form where I can have several codes registered, I would like to provide only one inputText at first, if there is need to insert more than one code I press a hot key and then another inputText appears below the first and so on.
Example: I squeeze ctrl+1 and another field similar to the one above appears below, every time I enter with the shortcut a new field appears.
How do I do it in JSF? I’ve been looking for some things and I’ve seen that I can use the <p:hotkey> for shortcuts, but I still don’t know how to load a inputText only when the shortcut is pressed.

The following is a link to a solution in Soen http://stackoverflow.com/a/3409511/5165064
– Rafael