hand79 / Hadoop

Hadoop 開發實作&筆記
0 stars 0 forks source link

Problemas with my first worksheet #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, i´m new with Jmesa and i´m trying to work with a worksheet. I set the 
js and css and images and the table is well created, the problem is that when i 
click on clear button of the toolbar, for example, the method 
jquery.jmesa.setcleartoworksheet and the methods oninvokeaction are called but 
nothing happens. Anyone knows why this could be?

I have set the servlet on the web xml and the only thing that i can think about 
is that i´m missing something like in fact i have to hardcode this invoke 
action on the controller or anything like that.

If someone can tell me step by step what must i do for a clear action for 
example i would be pleased

Original issue reported on code.google.com by VictorRo...@gmail.com on 14 Sep 2010 at 2:45

GoogleCodeExporter commented 9 years ago
Do you use Firebug? The net tab of firebug would show you the communication 
with the server as you make changes.

Original comment by jeff.johnston.mn@gmail.com on 14 Sep 2010 at 3:25

GoogleCodeExporter commented 9 years ago
Hi Jeff. Thanks for the answer. I´m using firebug, but no error message is 
shown when i click clear button, i´ve found a document searching on the web a 
document which says that i have to implement the oninvokeaction method on 
javascript, could this be the problem why no action of the toolbar works¿?

On the other hand, i´ve found a worksheetservlet.java on the web, is this 
class needed to make the asyncronous request work on the worksheet or is just a 
example class.

Thanks again!

Original comment by VictorRo...@gmail.com on 15 Sep 2010 at 6:47

GoogleCodeExporter commented 9 years ago
Hi again. I´m starting to understand things but not everything is still clear 
to me. First of all i,ve seen that oninvokeaction must be created, am i 
wrong¿? I am using Spring and i have form action, where the jmesa table is 
included, that send the request to the my controller on spring, is this the 
right way of flow¿? So, for example, when i click the next page button the 
setPageToLimit('parametersTable','2') methos is inovked. parametersTable is the 
name of my table and two is the page which must be shown. oninvokeaction is 
also called with the nex_page action. This action should be generated 
automatically or i must treat it on my spring controller with the worksheet¿? 
I think here is where i am lost.

If second option is the good one, which method of the worksheet lets me control 
next page action¿?

Thanks again

Original comment by VictorRo...@gmail.com on 15 Sep 2010 at 7:36

GoogleCodeExporter commented 9 years ago
definitely i don´t understand nothing. Every action i try is sended to the 
controller but the magic of jmesa is that i don´t have to do nothing with 
pagination, sorting and filtering, isn´t it¿? So, is there any document or 
colud you please explain me what should i do to get automatic sorting filtering 
and pagination¿?

Thanks again jeff

Original comment by VictorRo...@gmail.com on 15 Sep 2010 at 9:11

GoogleCodeExporter commented 9 years ago
i´ve found the problem. it is about the items collection, when i click on next 
page button i don´t load the collection so no results are shown!

Original comment by VictorRo...@gmail.com on 15 Sep 2010 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by jeff.johnston.mn@gmail.com on 9 Mar 2011 at 7:38