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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -