Whats New in Struts2 jQuery Plugin 2.4.0

Version 2.4.0 of Struts2 jQuery Plugin is now available with a lot of new features an improvments. Now there exists a new Chart Modul which is based on the popular jquery flot project. The new chart tag renders a chart with data given from a list or an ajax source. Checkout the new examples in the Showcase (More Widgets).
	<h3>Chart with AJAX Data</h3>
	<s:url id="chartDataUrl" action="json-chart-data"/>
    <sjc:chart id="chartAjax"
    	legendLabelBoxBorderColor="#990033"
    	legendPosition="ne"
    	legendShow="#ccc"
    	cssStyle="width: 600px; height: 400px;"
    >
    	<sjc:chartdata label="Map -Double, Double-"
    		href="%{chartDataUrl}"
    		list="doubleMap"
    		deferredLoading="true"
    		reloadTopics="reloadMap"
    	/>
    	<sjc:chartdata label="List -ListValue-"
    		href="%{chartDataUrl}"
    		list="objList"
    		listKey="myKey"
    		listValue="myValue"
    		reloadTopics="reloadList"
    	/>
    </sjc:chart>
    <sj:a onClickTopics="reloadMap" button="true" buttonIcon="ui-icon-refresh">Load/Reload Map</sj:a>
    <sj:a onClickTopics="reloadList" button="true" buttonIcon="ui-icon-refresh">Reload List</sj:a>
Struts2 jQuery Plugin - Chart Modul An other new feature is the spinner tag which renders you a simple but usefully spinner for your forms.
    <h3>A simple Spinner</h3>
    <sj:spinner name="spinner1" id="spinner1"/>
    <br />
    <br />
    <h3>A Spinner max=50 and step=2</h3>
    <sj:spinner name="spinner2" 
    	id="spinner2" 
    	min="5" 
    	max="50" 
    	step="2" 
    	value="25"/>
    <br />
    <br />
    <h3>A Spinner with currency format and mouse wheel support</h3>
    <sj:spinner name="spinner3" 
    	id="spinner3" 
    	min="0.00" 
    	max="5.00" 
    	step="0.15" 
    	value="2.50" 
    	suffix="$" 
    	mouseWheel="true"/>
Struts2 jQuery Plugin - Spinner Tag With this version it is also possible to generate your action messages in jquery UI style, dependend on your theme.
		<h3>Action Error</h3>
		<s:actionerror theme="jquery"/>
		<br />
		<h3>Action Message</h3>
		<s:actionmessage theme="jquery"/>
		<br />
		<h3>Field Errors</h3>
		<s:fielderror theme="jquery"/>
Struts2 jQuery Plugin - Action Messages jQuery UI is now based on the last stable version 1.8.4 with a lot of bugfixes. When using an own theme, it is recommended to create or update the theme with the themeroller. Also the ckeditor is updated to new version 3.4 with some new plugins and some bugfixes. 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

6 Kommentare

  1. Javanus

    Hi,

    Is it possible to use i18n with a grid. I would like to have different column names according to selected locale.

    Regards,
    Javanus

    Antworten
    1. jogep (Beitrag Autor)

      you can use ognl for this.

      index="name"
      title="%{getText('my.i18n.resources.key')}"
      width="250"
      sortable="true">

      Antworten
  2. Akku

    Hey, I just want to drop a “Thank You”. Did you ever think about using Flattr? I would press the flattr button on every update ;-)

    Antworten
    1. jogep (Beitrag Autor)

      Nice to hear, until now I did not know Flattr. :-)

      Antworten
  3. Pingback: Pie Charts and Grid Grouping with new Struts jQuery Plugin 2.5.0 | Java, Webprogrammierung, Linux und mehr

  4. Will

    I am absolutely struggling with this.

    I am pretty new to Struts.

    I have a table in a database which i want to turn into a graph.
    To make things easier I have been able to turn the table data into a json object in a method within the action.java file.

    I am absolutely struggling to turn this data into a bar chart using the example give. This is my last resort. can you help?

    Just a simple step by step example, what is required in the Action.java and the jsp with just one chart. I have all the plugin in the maven repo. I am just really struggling to get this working.

    Can you help?

    Antworten

Kommentar verfassen