JSF, ajax and commandLink, don't redirect? -
i'm wonking on jsf application, want use commandlink execute ana action on managed bean, there server call, dont want reload page, i've tried commandbutton , attribut update works? how can make commandlink ?
i resolved problem using commadlink of primefaces 3.2 :)
just return null
or void
action method.
<h:commandlink value="submit" action="#{bean.submit}"> <f:ajax /> </h:commandlink>
with
public void submit() { // ... }
you can use <f:ajax listener>
attribute instead.
<h:commandlink value="submit"> <f:ajax listener="#{bean.submit}" /> </h:commandlink>
Comments
Post a Comment