You get the client ID from the ActionEvent argument e passed to the action listener:
FacesContext context = FacesContext.getCurrentInstance(); String clientId = e.getComponent().getClientId(context);
Request parameters are part of the external context of a JSF life cycle. They can be obtained by:
Map requestParams = context.getExternalContext().getRequestParameterMap();
Now get the request parameter value (as a string) with:
requestParams.get(clientId + ".x");