I use 2 methods to insert a row in the grid
With the netadvantage checkbox (smartrefreshIDs), I have no problem
but with my jsf button, the scroll bars missing
Can you help me ?
Thank in advance
Button :
Checkbox :
<ig:checkBox smartRefreshIds="MainGrid" label="CheckBox" valueChangeListener="#{formatsBean.ajouter}"></ig:checkBox>
It is very good idea of ajax button to be available. I' discuss this with all JSF team and I'll inform you when if would be available and when. Thank you very much for this.
I'll try to reproduce your problem with jsf button and find the problem with scrolling.
Hi, capjtel!
Actually it is a bug. It is fixed now and the functionality should be available in hotfix release next days.For date of release please see Grigor Svetoslavov's blog.
I was using netadvantage for JSF vol 2008.1 so ig:link did not work with ajax.
Now i am using vol 2008.2 , i try ig:link but when i put :
<ig:link value="AJOUTER" smartRefreshIds="MainGrid" immediate="true" action="#{operateursBean.ajouter}"></ig:link>
I got the following error :
org.apache.jasper.JasperException: An exception occurred processing JSP page /operateurs/operateursGrid.jsp at line 79 76: <a4j:commandButton reRender="MainGrid" immediate="true" action="#{operateursBean.ajouter}" value="ajouter"/> 77: 78: <ig:checkBox smartRefreshIds="MainGrid" label="CheckBox" valueChangeListener="#{operateursBean.ajouter}"></ig:checkBox> 79: <ig:link value="AJOUTER" smartRefreshIds="MainGrid" immediate="true" action="#{operateursBean.ajouter}"></ig:link>
.....
java.lang.NullPointerException: Parameter types cannot be null
When i put actionListener instead of action :
<ig:link value="AJOUTER" smartRefreshIds="MainGrid" immediate="true" actionListener="#{operateursBean.ajouter}"></ig:link>
I have no error but it never execute action "#{operateursBean.ajouter}" ?
Victor
Normal 0 21 false false false FR X-NONE X-NONE MicrosoftInternetExplorer4
Thank you for your answer
But we need a button component with ajax ability, like your checkbox component
In order to refresh the grid i use ajax4jsf (an open source library), it works well but when the grid is "rerender" it lost its height and width properties
When I use your checkbox component it works perfectly
So I supose that your smartrefresh done something more than the ajax4jsf's ajax refresh, but what ?
You can look my sample with your checkbox, I have no problem
http://img393.imageshack.us/my.php?image=image3sb9.jpg
but with my AJAX FOR JSF button, the scroll bars missing
http://img127.imageshack.us/my.php?image=image2gf8.jpg
Thank in advance,
You can look my sample with checkbox ... I have no problem
http://img127.imageshack.us/my.php?image=image3vu7.jpg
but with my ajax jsf button, the scroll bars missing
Best Regards,