Hi,
We are trying to integrate web grid in our existing application, however although the data is displayed when the page is rendered, each time i click on next/prev page/ page no to navigate the page is submitted and the first page is displayed. The same happens when i move to a new cell after editing one cell, the page is submitted and the values is lost.
If i set the javax.faces.STATE_SAVING_METHOD value to client instead of server, it starts running properly, but in our application this is not an option as this degrades performance a lot.
Kindly help me with this
Regards,
Avijit
Hi Imran ,
could you tell me which version of the JSF controls are you using , and also what server and IDE are you developing with ?
It will be the best if you send me a code sample with the grid to reproduce the problem.
Hi Tsvetelia,
Thanks for your reply... I tried in the same way mentioned in your post but I am still facing the same problem. Does the javascript with pagination gives problems?
rgds,
Imran
Hi Imran,
make sure to include < ig:gridEditing > within < ig:gridView > tag. This way all the columns inside the gridView will be editable. You can also set a column in an editable grid to be read only by setting the readOnly attribute of the <ig:column> tag.
Below is the code snippet:
<ig:gridView pageSize="10" dataSource="#{webgrid_employeeDAO.employees}">
<ig:gridEditing enableOnMouseClick="single"
cellValueChangeListener="#{webgrid_employeeDAO.cellValueChangeListener}">
</ig:gridEditing>
<f:facet name="header">
<h:outputText value="Employee List" />
</f:facet>
<ig:columnSelectRow> </ig:columnSelectRow>
<ig:column sortBy="firstName">
<h:outputText value="First Name" />
<h:outputText value="#{DATA_ROW.firstName}" />
</ig:column>
<ig:column sortBy="lastName">
<h:outputText value="Last Name" />
<h:outputText value="#{DATA_ROW.lastName}" />
</ig:gridView>
Hi Avijit, I saw your posting in the forum for the problem regarding pagination and grid editing. I am facing the same issue in my application wherein I have to use both the features of cell editing and cell clicking to populate some other text boxes in the form.
I am facing problems on pagination . On pagination my grid becomes non editable...
Please let me know if you have any fix for this.
Hello Roshan,
Thanks for the reply, but I was able to sort the problem out..
Thanks anyway.