a4j:commandLink et target="_BLANK"
Bonjour,
Je chercher à obtenir un comportement similaire à ce que j'aurais en écrivant :
Code:
<a href="/myctx/myPage.jsf?id=1" target="_BLANK">CLICK ME</a>
Mais j'aimerais le faire à la sauce JSF.
Donc j'ai tenté un truc du genre :
Code:
1 2 3 4 5
| <a4j:form id="myform" ajaxSubmit="true">
<a4j:commandLink target="_BLANK" action="/myctx/myPage.jsf?id=1">
CLICK ME
</a4j>
</a4j:form> |
Mais ça ne marche pas, il ne se passe rien. Idem en ecrivant :
Code:
action="#{myBean.edit}"
Code:
1 2 3
| public String edit() {
return ="/myctx/myPage.jsf?id=1";
} |