• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

add,edit,delete mode on JQuery-Grid?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm.. so what is in struts.xml?
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jovan Popovic, your post was moved to the Blatant Advertising forum.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic