Struts2 jQuery Plugin now based on jQuery 1.7 and with support for frozen Columns

I am happy to announce that the Version 3.3.0 of Struts2 jQuery Plugin is now available. The main change is the switch from jQuery 1.6.4 to the latest version 1.7.1 of the jQuery 1.7.x releases.

This Version includes a lot of library updates and 18 solved Issues. The Handler Functions are now split into two different JavaScript Files. One for the base jQuery AJAX Handling and one for the jQuery UI Tags. This improves the load time in all application which are running without jQuery UI widgets.

The Grid tag is now supporting frozen columns which comes with the latest jqGrid release 4.3.1. Simply add the frozen attribute to your first grid column to enable this feature. Also take a look at the new add and delete buttons in your Navigator when using Edit inline. To enable this buttons set the navigatorInlineEditButtons to true.

<sjg:gridColumn ... frozen="true" .. />

The Struts2 jQuery Plugin provides now two Maven Archetypes for an easy start with Struts2, jQuery and Maven. The first is based on the Struts2 Convention Archetype but with included s2j dependencies. The second is for an easy start with the Grid Plugin. This new Archetypes shrinks the Steps described in my previous post 4 Easy Steps to create a Java based Web Application with Struts2 and jQuery to only one Step.

mvn archetype:generate -B -DgroupId=com.mycompany.mysystem -DartifactId=myWebApp -DarchetypeGroupId=com.jgeppert.struts2.jquery -DarchetypeArtifactId=struts2-jquery-archetype-base -DarchetypeVersion=3.3.0 or mvn archetype:generate -B -DgroupId=com.mycompany.mysystem -DartifactId=myWebAppGrid -DarchetypeGroupId=com.jgeppert.struts2.jquery -DarchetypeArtifactId=struts2-jquery-bootstrap-archetype-grid -DarchetypeVersion=3.3.0

Library Updates

For a complete list of changes since last version, please visit the Changelog.

Download: http://code.google.com/p/struts2-jquery/downloads/list
Showcase: http://struts.jgeppert.com/struts2-jquery-showcase/
Issues: http://code.google.com/p/struts2-jquery/issues/list
User Group: http://groups.google.com/group/struts2-jquery

7 Kommentare

  1. xk

    Hi, first of all thank you for the plugin.

    I’m trying to get the archtype with the above commands, but I get an error saying that the desired archetype does not exist. I checked the central repo and they are not there. I see the rest of the jars http://search.maven.org/#browse%7C673035855 but the archetype is not there.

    Do I need to add another thing? Sorry but i’m knda new to maven

    Antworten
    1. jogep (Beitrag Autor)

      Maybe it takes some time for syncing the Maven Repositories. I just try it and it runs fine for me. Can you please try again?

      Antworten
  2. Ramesh Krishnan

    The pre-defined formatter properties define one called actions. How to use this ? I tried using the example in http://stackoverflow.com/questions/5196387/jqgrid-editactioniconscolumn-events, but get an error “actions is not defined (111 out of range 4)

    Regards and Thank You

    Ramesh K

    Antworten
  3. SS

    Hi, thanks for this great plugin.
    I was testing with showcase 3.3.0 , got a error in AJAX Forms with Validation page (AJAX Forms with Custome Validation worked just fine).
    Firebug console shows…
    —————————————–
    data.indexOf is not a function
    if(data.indexOf(“/* {“) === 0) { @ utils.js (line 27)
    —————————————–

    POST response is OK,
    PLEASE HELP !!

    Antworten
    1. jogep (Beitrag Autor)

      This is a known Bug in latest Struts2.

      https://issues.apache.org/jira/browse/WW-3736

      Use Struts2 2.3.2-SNAPSHOT or fix this in your current version.

      Antworten
  4. risdiyanto

    can i get the screenshot?:D

    Antworten
  5. Deven

    Hi ,am trying to use struts2-jquery-grid plugin 3.3.1 in my applicaiotn for jsp page design.

    It says — navigatorInlineEditButtons onEditInlineSuccessTopics=”onSuccess” onEditInlineAfterSaveTopics

    is not a valid attribute. Am not able to create inline record second time in oc4j server as well. Can you please suggest something ???

    Antworten

Kommentar verfassen