Struts2 jQuery Plugin new version 3.3.2 provides now support for Trees with Checkboxes

The new Version 3.3.2 of Struts2 jQuery Plugin is now available.

Tree with Checkboxes

This release is not only a bugfix release it brings also some usefully new features to you. One of the new Features is the support for Checkboxes in the TreeTag. See the new Tree with Checkboxes Example in the Showcase App. Struts2 jQuery Tree Tag with Checkboxes

<s:form id="treeForm" action="echo" theme="simple">
    	<sjt:tree 
    		name="echo"
    		id="treeDynamicCheckboxes" 
    		jstreetheme="apple"
    		rootNode="nodes"
    		childCollectionProperty="children"
    		nodeTitleProperty="title"
    		nodeIdProperty="id"
    		openAllOnLoad="true" 
    		checkbox="true"
    		checkboxCheckAllTopics="checkAllNodesTopic"
    		checkboxUncheckAllTopics="uncheckAllNodesTopic"
    		checkboxShowTopics="showCheckboxesTopic"
    		checkboxHideTopics="hideCheckboxesTopic"
    		onClickTopics="treeClicked" 
    	/>
    	<sj:submit formIds="treeForm" targets="result3" button="true" />
    	<sj:submit onClickTopics="checkAllNodesTopic" value="Check all Nodes" button="true" />
    	<sj:submit onClickTopics="uncheckAllNodesTopic" value="Uncheck all Nodes" button="true" />
    	<sj:submit onClickTopics="showCheckboxesTopic" value="Show Checkboxes" button="true" />
    	<sj:submit onClickTopics="hideCheckboxesTopic" value="Hide Checkboxes" button="true" />
</s:form>

Improved DIV an Anchor Tag

The Div Tag has now two new attributes. The first new attribute is the delay attribute which allows to set an delay in milliseconds until the div should load the remote content via AJAX. The other new attribute is updateFreq which provide an ability to reload the div content after a specified interval in milliseconds.

<sj:div delay="200" updateFreq="5000"/>

The Anchor Tag provides also some new attributes. This new attributes allows an improved handling when submitting a form via Anchor Tag. For details please see Issue 849. A other new attribute openDialogTitle allows to set dynamically the Title of an Dialog when opened this dialog via openDialog attribute or via topics. See the updated Remote Dialogs Example in the Showcase App.

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

9 Kommentare

  1. Linus Chien

    New version 3.3.2 is NOT found in the central Maven repository.
    Please deploy.
    Thank you a lot.

    Antworten
    1. jogep (Beitrag Autor)

      Maybe the maven sync is not finished yet. Please wait some time until the maven repositories are synchronized.

      Antworten
  2. Linus Chien

    Thank your response.

    At this moment, all modules sync to version 3.3.2 completely except “struts2-jquery”, “struts2-jquery-plugin”, “struts2-jquery-grid-plugin”. These three modules still remain on version 3.3.1.

    Antworten
    1. jogep (Beitrag Autor)

      Looks like there is somthing going wrong during the release process. I go to fix it and releasing version 3.3.3.

      Antworten
    2. jogep (Beitrag Autor)

      Just released Version 3.3.3 which should be fully available in the maven repositories.

      Antworten
  3. Song Ya Nan

    Is there anyone know how to manipulate the checkbox by javascript? For example, select an option in the dropdown list to trigger an event, and then check the checkboxes accordingly.

    Antworten
  4. Polina

    Hi,
    can I ask here a question regarding you struts2-jquery-chart plugin?
    The problem is – loooks like there is no way to set axis labels, right?
    what could be the reason?

    thanks

    Antworten
    1. jogep (Beitrag Autor)

      The right place for questions is the User Group:
      http://groups.google.com/group/struts2-jquery

      This is an already registered Issue which is maybe solved in release 3.4.0.

      https://code.google.com/p/struts2-jquery/issues/detail?id=882

      Antworten
  5. Logicalj

    Hi Can someone provide me the complete code of Dynamic Tree with CheckBoxes and its valid action class because submt buttons (Show CheckBoxes, Hide CheckBoxes) are not working.

    Antworten

Kommentar verfassen