The makeFocusIDID() function gives the focus to an item.
makeFocusIDID(expr)
<input type="submit" gwc:attributes="name makeFocusIDID(ID);"... />
produces
<input type="submit" name="f/v89"... />