The new Version 3.1.0 of Struts2 jQuery Plugin is now available with an improved Tree and Autocompleter Tag and a new Timepicker Addon for the Datepicker Tag.

A improved Tree Tag

The Tree Tag provides now support for different Node Types and support for Context Menus. Two new Tree Tag examples in the Showcase explain how to use this new Features.

Struts2 jQuery Tree Tag with Types based on jsTree

<s:set id="contextPath"  value="#request.get('javax.servlet.forward.context_path')" />
<sjt:tree 
	id="treeTypes" 
	jstreetheme="default" 
	openAllOnLoad="true" 
	types="{
			'valid_children' : [ 'root' ],
			'types' : {
				'root' : {
					'icon' : { 
						'image' : '%{contextPath}/images/root.png' 
					},
					'valid_children' : [ 'folder', 'file' ],
				},
				'folder' : {
					'icon' : { 
						'image' : '%{contextPath}/images/folder.png' 
					},
					'valid_children' : [ 'folder', 'file' ],
				},
				'file' : {
					'icon' : { 
						'image' : '%{contextPath}/images/file.png' 
					},
					'valid_children' : [ 'none' ],
				}
		}
	}">
	<sjt:treeItem title="Root" type="root">
		<sjt:treeItem title="Folder One"  type="folder">
			<sjt:treeItem title="File One" type="file"/>
			<sjt:treeItem title="File Two" type="file"/>
		</sjt:treeItem>
		<sjt:treeItem title="Folder Two"  type="folder">
			<sjt:treeItem title="Folder Three"  type="folder">
				<sjt:treeItem title="File Four" type="file"/>
			</sjt:treeItem>
			<sjt:treeItem title="File Three" type="file"/>
		</sjt:treeItem>
	</sjt:treeItem>
</sjt:tree>

Timepicker

An other offen requested feature the Timepicker is now available. This is an enhancment of the existing Datepicker Tag.

Struts2 jQuery Datepicker Tag with Timepicker Addon

<sj:datepicker 
	id="time0" 
	label="Select a Date/Time" 
	value="%{new java.util.Date()}" 
	timepicker="true" 
/>
<sj:datepicker 
	id="time1" 
	label="Select a Time" 
	value="%{new java.util.Date()}" 
	timepicker="true" 
	timepickerOnly="true"
/>

A improved Autocompleter Tag

It is now possible to display the List Value instead of the List Key. See Issue 395 for detailed informations. Also you can now specify a List Label which is displayed during the search.

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