Whats New in Struts2 jQuery Plugin 3.0.0

I'am happy to inform you that Version 3.0.0 of Struts2 jQuery Plugin is now available with a lot of new features an improvments.

A new Tree Tag

With this version there is an offen requested feature available. The new Tree Tag allows you to create easy Trees in your templates. This Tree Tag is based on the great jQuery jsTree Plugin.

<sjt:tree id="treeStatic" jstreetheme="default">
	<sjt:treeItem title="Struts2">
		<sjt:treeItem title="General">
			<sjt:treeItem title="Struts2" href="http://struts.apache.org/2.x/index.html"/>
			<sjt:treeItem title="Struts2 @ Facebook" href="http://www.facebook.com/pages/Struts2-Users/103890046351798"/>
		</sjt:treeItem>
		<sjt:treeItem title="Plugins">
			<sjt:treeItem title="Struts2 Plugins" href="https://cwiki.apache.org/S2PLUGINS/home.html"/>
			<sjt:treeItem title="Struts2 jQuery Plugin" href="http://code.google.com/p/struts2-jquery/"/>
			<sjt:treeItem title="Struts2 Full Hibernate Plugin" href="http://code.google.com/p/full-hibernate-plugin-for-struts2/"/>
		</sjt:treeItem>
		<sjt:treeItem title="Blogs">
			<sjt:treeItem title="Struts2 jQuery News" href="http://www.jgeppert.com/category/java/struts2-jquery/"/>
		</sjt:treeItem>
		<sjt:treeItem title="AJAX Links">
			<s:url id="ajax1" value="/ajax1.action"/>
			<sjt:treeItem title="Ajax 1" href="%{ajax1}" targets="result"/>
			<s:url id="ajax2" value="/ajax2.action"/>
			<sjt:treeItem title="Ajax 2" href="%{ajax2}" targets="result" effect="highlight" effectDuration="2500"/>
			<s:url id="ajax3" value="/ajax3.action"/>
			<sjt:treeItem title="Ajax 3" href="%{ajax3}" targets="result" onBeforeTopics="beforeLink" onCompleteTopics="completeLink"/>
			<s:url id="ajax4" value="/ajax4.action"/>
			<sjt:treeItem title="Ajax 4" href="%{ajax4}" targets="result" effect="bounce" effectDuration="1000"/>
		</sjt:treeItem>
	</sjt:treeItem>
</sjt:tree>

Mobile Module

For an better support of mobile development with Java and the popular MVC Framework Struts2, this version of Struts2 jQuery Plugin brings a new Module based on jQuery mobile to you. This includes an easy AJAX support and a jQuery mobile theme for form elements. The new Struts2 jQuery Mobile Showcase gives you an introduction how to use this new module.

Struts2 jQuery Mobile Showcase

Grid Module

This version provides an enhanced Subgrid Feature. Now it is possible to create Multilevel Subgrids. Please take a look at the new 3-Level Subgrid Example in the Grid Showcase.  

Richtext Editor

With this version it is easy to enable Uploads for Images and Flash files for your Ckeditor instance.

Enable File Uploads in your struts2.xml:

<!-- Settings for CKEditor Image Upload -->
<constant name="struts.ckeditor.allowUploads" value="true" /> <!-- default is false -->
<constant name="struts.ckeditor.allowedFileExtensions" value="jpg,jpeg,png" />
<constant name="struts.ckeditor.uploadFolder" value="/image-uploads" />

Enable File Uploads in your ckeditor instance:

<sjr:ckeditor 
	id="richtextEditor" 
	name="echo" 
	rows="10" 
	cols="80" 
	width="730"
	height="400"
	uploads="true"
/>

Libary 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

10 Comments

  1. Darshan Shroff

    Extremely excited to get my hands on these. Thank you so much Johannes for your relentless dedication and support to this project release after release.

    Ihr rockt !!!

    Reply
  2. Akku

    Thanks! Awesome! 🙂

    Reply
  3. jogep (Post author)

    Thank you all for the kindly Comments.

    The new Version 3.0.1 solves an Bug with broken Grid Search.

    Reply
  4. Razvan Reff

    Well done Johannes !

    Thank you for your hard work. It is well appreciated.

    Razvan

    Reply
  5. Danut

    Thanks Johannes for all your hard work! I really enjoy working with your plugin. It’s great! Keep up the good work!

    Danut

    Reply
  6. Bhushan217

    Thanks Johannes…. Its great to work with SJP 3.1.1
    can you please tell me how do i validate form with modeldriven action
    eg. validate user from database

    Reply
  7. apparao

    How to display dynamic tree strucure using struts2 and JQuery.Please post the code.I ahve seen one of the example display tree structure in static nature.

    Reply
  8. Nalini

    Hi, Will this work for Struts2.0.14 where FilterDispatcher acts as the frontController…… With JQuery 3.2 version i am facing some issues in Struts2.0.14 ….Please reply…. Thanks

    Reply
  9. Wilkins

    Hi,

    In your Grid example, you use annotation for mapping the action classes. ie.

    @Actions( {
    @Action(value = “/jsontable”, results = {
    @Result(name = “success”, type = “json”)
    })
    })

    How would that look like if I maintain all these mappings in struts.xml?

    The following doesn’t work for me


    Thanks

    Wil

    Reply
    1. jogep (Post author)

      Hi Wil,

      this is described in the Struts2 Json Plugin docs.

      http://struts.apache.org/2.x/docs/json-plugin.html


      <package name="example" extends="json-default">
      <action name="jsontable" class="example.JsonDataProvider">
      <result type="json"/>
      </action>
      </package>

      Johannes

      Reply

Leave a Reply