I have a problem on a4j:commandLink, i conditionally rendering my link using rendered
attribute but unfortunately the action method is not invoke?
I made some findings and found out that there are problems in action attribute when conditionally rendering using just request scope bean.
The solution is to make the bean sessions scope.
I made my bean into session scope but still out of luck.
<a4j:commandLink rendered="#{someBean.enable}" action="#{someBean.doThis}" />
Here is my bean:
@Name("someBean")
@Scope(ScopeType.Session)
public class SomeBean{
private boolean enable;
public void doThis(){
//not called here
}
//getters setters
}
Am i missing something?
I am using jsf2, richfaces and seam.
Thanks in advanced.
You haven’t mentioned the version of richfaces or seam you’re using but seems it is version 3.3 for richfaces
if so, use ajaxSingle=”true” attribute.