Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Problem with ig:link
posted

I use ig:link like this :

<ig:link value="AJOUTER" immediate="true" smartRefreshIds="MainGrid,messageErreurs" actionListener="#{operateursBean.ajouter}"></ig:link>

<h:messages id="messageErreurs" showDetail="true"></h:messages>

I can see the ajax request in the log server, but it never call my method #{operateursBean.ajouter}, and i have no error messages.

if I use the checkbox component it works :

 

<ig:checkBox smartRefreshIds="MainGrid" label="CheckBox" valueChangeListener="#{operateursBean.ajouter}"></ig:checkBox>

 

 This is my java code :public void ajouter() {
Listeop o = new Listeop();

getOperateurs().add(0, o);

view.getGrid().dataBind();

view.getGrid().firePageChangeEvent(0);

 

}

 

public void ajouter(ValueChangeEvent v) {

ajouter();

 

}

 

public void ajouter(ActionEvent e){

ajouter();

}

 

Victor