Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add,edit,delete mode on JQuery-Grid?

 
luckay win
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Where can I download complete example of JQuery-Grid especially for edit, add, delete records?
I tried to the simple instruction http://code.google.com/p/struts2-jquery/wiki/EditGrid .. but no luck
and also tried to follow from the grid showcase (http://www.weinfreund.de/struts2-jquery-showcase/index.action) .. and still not understand ...(ie. where should I put the javascript, struts.xml .. etc)

could any body please help me to start learn add,edit,delete mode on JQuery-Grid?

many thanks in advance

Regards
Luc
 
Johannes Geppert
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what exactly is the problem?

the best way to understand it, is to download the struts2-jquery-grid-showcase-x.x.x.war and the sources
and to study the jsp files and coressponding actions.

to make a grid editable you need for form or inline edit an action like this:

http://code.google.com/p/struts2-jquery/source/browse/tags/2.4.1/struts2-jquery-grid-showcase/src/main/java/com/jgeppert/struts2/jquery/grid/showcase/action/EditCustomerAction.java

or when using cell edit an action like this:

http://code.google.com/p/struts2-jquery/source/browse/tags/2.4.1/struts2-jquery-showcase/src/main/java/com/jgeppert/struts2/jquery/showcase/EditCellEntry.java

with attribute editlink in sjg:grid tag you can't set this as edit url.

Johannes
 
luckay win
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but could you please advise where should I put these .js below:



and what's inside simpleecho.jsp?

many thanks in advance

Regards
Luc
 
Johannes Geppert
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the javascript topics are extension point if you need custom events e.g. at row selection.

sorry about confusing with the simpleecho.jsp, this is only a dummy value because the
grid action don't resonse any data.

Johannes
 
luckay win
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm.. so what is in struts.xml?
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am also facing the same issue.

Can some one upload project , so that we can download and start using it.


Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jovan Popovic, your post was moved to the Blatant Advertising forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic