Hi!
Is it possible, to get the position of the click in a ajax4jsf commandButton image:
<a4j:form id="karteForm" ajaxSubmit="true"> <a4j:commandButton image="Kartengenerator" ajaxSingle="true" id="karte" actionListener="#{infoBean.doAjax}" reRender="infoPanel" limitToList="true" immediate="true"> </a4j:commandButton> </a4j:form>
FacesContext context = FacesContext.getCurrentInstance(); String clientId = event.getComponent().getClientId(context); Map requestParams = context.getExternalContext().getRequestParameterMap(); this.xkor = new Integer((String) requestParams.get(clientId + ".x")); this.ykor = new Integer((String) requestParams.get(clientId + ".y"));
I am running into the same issue.
h:commandButton sends the coordinates, however a4j:commandButton does not.