Yes i tried your solution, but the actionListener is not called. So it seems that the nested actionparam is ignored in this case.
try to use f:actionListener child tag instead of component attribute. Also listener defined at actionparam should be called.
Using the f:actionListener has the drawback that now every bean must implement the ActionListener interface. But the solution works. Thanks.
Hello guys, this work-around doesn't work with 3.3.1GA. I use a4j:commandLink with some f:setPropertyActionListener and with one f:actionListener.
<a4j:commandLink
reRender="FormModalContent"
oncomplete="Richfaces.showModalPanel('FormModal',{width:450, top:200})"
rendered="#{rect.type != null}">
<h:panelGroup id="DocumentRectangle" styleClass="rectangle blue"
style="width: #{rect.width}px;">
<h:outputText value=""/>
</h:panelGroup>
<f:setPropertyActionListener value="#{rect}" target="#{timelineBean.rect}" />
<f:setPropertyActionListener value="#{true}" target="#{timelineBean.modifying}" />
<f:setPropertyActionListener value="#{rectangles.permittedTypes}" target="#{timelineBean.permittedTypes}" />
<f:actionListener binding="#{timelineBean}" />
</a4j:commandLink>
public class TimelineBean implements Serializable , ActionListener{
public void processAction(ActionEvent arg0) throws AbortProcessingException {
// because of bug - current method isn't called on registered bean!
try {
System.out.println("calling processAction()");
System.out.println(this.toString());
BeanManager.getTimelineBean().prepareSchedulingForm(null);
} catch (Exception e) {
throw new AbortProcessingException(e);
}
}
}