public void addParameterForButton ( final UIContext uic , final WButton button ) { UIContextHolder . pushContext ( uic ) ; try { setParameter ( button . getId ( ) , "x" ) ; } finally { UIContextHolder . popContext ( ) ; } }
Convenience method that adds a parameter emulating a button press .