So I'm not sure if I'm just doing this wrong or what.
I currently have the following component on facelet:
<a4j:commandLink actionListener="#{taskExecutor.delete}" value="Delete" reRender="tasks,results"> <f:param name="imageId" value="#{image.imageId}" /></a4j:commandLink>
public void delete(ActionEvent ae)
UIComponent comp = ae.getComponent(); logger.error(comp.getClass().getCanonicalName()); Map<String,Object> attributes = comp.getAttributes(); logger.error(attributes); Set<String> attrK = attributes.keySet(); logger.error("See key/value pairs:"); for(String attr :attrK) { logger.error(String.format("Key: %s Value: %s",attr,attributes.get(attr))); }
14:00:25,865 ERROR [TaskExecutor] org.ajax4jsf.component.html.HtmlAjaxCommandLink 14:00:25,865 ERROR [TaskExecutor] javax.faces.component.UIComponentBase$AttributesMap@80403012 14:00:25,865 ERROR [TaskExecutor] See key/value pairs: 14:00:25,866 ERROR [TaskExecutor] Key: com.sun.facelets.MARK_ID Value: -595634370_2_186339d8
f:param is submitted to server and is available in request parameters map; use f:attribute tag to add this to component attributes.