You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Name

jQuery Plugin

Publisher

Johannes Geppert

License

Open Source (ASL2)

Version

1.2

Compatibility

Struts 2.1.6+

Homepage

http://code.google.com/p/struts2-jquery/

Download

http://code.google.com/p/struts2-jquery/downloads/list

Showcase

http://www.weinfreund.de/struts2-jquery-showcase/

Error formatting macro: rate: java.lang.NoSuchMethodError: 'java.lang.String com.atlassian.confluence.setup.BootstrapManager.getDomainName()'

Overview

A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript framework.

Features

  • AJAX support for Links, Divs, Forms and Textareas
  • Support for themes
  • UI widgets
    • Tabbed Panel
    • Datepicker
    • Dialog
    • Accordion
    • Progressbar
    • Slider
  • UI interactions
    • Resizable
    • Drag and Drop
    • Sortable
    • Selectable

Usage

Download the Plugin and put in into your WEB-INF/lib folder.

Example

Ajax Call

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
  <head>
    <sj:head/>
  </head>
  <body>
    <div id="div1">Div 1</div>
    <s:url id="ajaxTest" value="/AjaxTest.action"/>

    <sj:a id="link1" href="%{ajaxTest}" target="div1">
      Update Content
    </sj:a>
  </body>
</html>

Tabbed Panel

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
  <head>
    <sj:head jqueryui="true"/>
  </head>
  <body>
    <s:url id="remoteurl1" action="myremoteactionone"/>
    <s:url id="remoteurl2" action="myremoteactiontwo"/>
    <s:url id="remoteurl3" action="myremoteactionthree"/>
    <sj:tabbedpanel id="mytabs2" selectedTab="1">
      <sj:tab id="tab1" href="%{remoteurl1}" label="Tab One"/>
      <sj:tab id="tab2" href="%{remoteurl2}" label="Tab Two"/>
      <sj:tab id="tab3" href="%{remoteurl3}" label="Tab Three"/&>
    </sj:tabbedpanel>
  </body>
</html>

More Sample in the Project Wiki

Installation

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.

Resources

Version History

Version

Date

Author

Notes

1.2

Aug 24, 2009

Johannes Geppert

Version 1.2

1.0

Jul 24, 2009

Johannes Geppert

Version 1.0

0.9.2

Jul 20, 2009

Johannes Geppert

Version 0.9.2

  • No labels