code: public void addParameterForButton(final UIContext uic, final WButton button) {
  		UIContextHolder.pushContext(uic);
  		try {
  			setParameter(button.getId(), "x");
  		} finally {
  			UIContextHolder.popContext();
  		}
  	}
docs: Convenience method that adds a parameter emulating a button press.
  
  @param uic the current user's UIContext
  @param button the button to add a parameter for.