sample example of JSF +dhtmlxgrid

Hi,
I am working on jsf and dhhtmlx grid
can anyone provide me sample code of jsf+dhtmlx grid

because I am uploading file from dhtmlx grid using JSF hidden field but it is not working because my command button submit the form on 3rd click and I lost the data in backing bean because all field become null after 1st click.

anyone can provide me the solution how to synchronize the event and submit the form in single click