richfaces a4j:htmlCommandLink keep alive request scoped bean
I have a request scoped bean and I am using Richfaces `@KeepAlive(ajaxOnly=true)` to keep the bean alive between ajax requests. On my page I have some `a4j:commandButton`, and the backing bean is ok, is kept alive between button clicks.

The problem is I need to use an `a4j:htmlCommandLink`. When I click the link it creates me another bean in the backend, but I need the same bean, not a new one.

Here I have some extacts from my code:

    @KeepAlive(ajaxOnly=true)
    public class testBean
    {
       public void testMethod(ActionEvent ae) {
       ...
       }
       ...
    }

    <a4j:htmlCommandLink value="Print" target="_blank" 
         actionListener="#{testBean.testMethod}" />



How can I keep the bean alive when I use (click) a `htmlCommandLink`?
richfaces a4j:htmlCommandLink keep alive request scoped bean
===

I have a request scoped bean and I am using Richfaces `@KeepAlive(ajaxOnly=true)` to keep the bean alive between ajax requests. On my page I have some `a4j:commandButton`, and the backing bean is ok, is kept alive between button clicks.

The problem is I need to use an `a4j:htmlCommandLink`. When I click the link it creates me another bean in the backend, but I need the same bean, not a new one.

Here I have some extacts from my code:

    @KeepAlive(ajaxOnly=true)
    public class testBean
    {
       public void testMethod(ActionEvent ae) {
       ...
       }
       ...
    }

    <a4j:htmlCommandLink value="Print" target="_blank" 
         actionListener="#{testBean.testMethod}" />



How can I keep the bean alive when I use (click) a `htmlCommandLink`?