Skip to content

Tapestry 5 jQuery integration. Fully replace Prototype and Scriptaculous with jQuery with as less as possible compatibility issues

License

Notifications You must be signed in to change notification settings

dragansah/tapestry5-jquery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tapestry 5 jQuery integration Module - 3.3.3

Demo and documentation

http://tapestry5-jquery.com/

List Of Contributors

  • Robin KOMIWES as robink

  • Andreas ANDREOU as andyhot

  • Christian RIEDEL as criedel

  • François FACON as got5

  • Tom van DIJK as trolando

  • Emmanuel DEMEY as Gillespie59

  • Clément USTER as cluster

  • Amaury WILLEMANT as awillemant

  • Barry BOOKS as trsvax

  • Pablo NUSSEMBAUM as bauna

  • Alexander OBLOVATNIY as oblalex

  • Stéfanie DUPREY as Nephtys

  • Michael ASPETSBERGER as maspetsberger

  • Dragan SAHPASKI as dragansah

  • Matias BLASI as mblasi

  • Jon-Carlos Rivera as imbcmdth

  • Nourredine KHADRI as adaptivui

  • Michael GENTRY as mrg

  • Mikhail NASYROV as mnasyrov

  • Dmitry GUSEV as dmitrygusev

  • jochenberger

  • ddelangle

  • Iceo

  • kaililleby

##Hosting Christophe Furmaniak

##Questions? Ideas? Comments? http://groups.google.com/group/tapestry5-jquery

Changelog

  • 3.3.1 : add GMap component
  • 3.3.0 : Update to Tapestry 5.3.3
  • 3.2.0 : Update to Tapestry 5.3.2
  • 3.1.0 : Update to Tapestry 5.3.1
  • 3.0.0 : Switch to Tapestry 5.3 (new JavaScript Layer) add Components : Gallery
  • 2.6.6 : handle datatable's ajax mode for server-side pagination
  • 2.6.2 : more work on client side validation
  • 2.6.1 : improve Validation Mecanism and DataTable Component add Components : InPlaceEditor, Draggable add Mixins : ZoneRefresh, ZoneDroppable
  • 2.6.0 : switch to Tapestry 5.2.6 add Mixins : CustomZone, Widget Other Mecanisms : EffectsParam, WidgetParams, Selector Binding
  • 2.1.1 : add Components : Carousel, Checkbox, RangeSlide, Slider, Superfish add Mixins : CustomDatepicker, Mask, Reveal, Tooltip
  • 2.1.0 : switch to Tapestry 5.2.5 add (Tabs, Accordion, AjaxUpload, Button)
  • 1.1-SNAPSHOT : exclusive jQuery components
  • 1.0-SNAPSHOT : initial releases !

Features

This module provides jQuery integration for Tapestry 5 and completely drop out Prototype, Scriptaculous and the base tapestry.js script.

It also relies on jQuery 1.5 and jQuery UI 1.8.

Exclusive jQuery components :

Exclusive jQuery Mixins :

Exclusive jQuery Binding Prefixes :

  • selector
    • selector:id returns #clientId allows finding typos at java runtime instead of at javascript runtime

Theses components were originally present in Tapestry 5 Core and can still be used as it :

Due to some extensibility issues of Core components, theses are originals components need to be used using the "jquery" namespace

Maven dependency

To use this plugin, add the following dependency in your pom.xml.

<dependencies>
	...
	<dependency>
		<groupId>org.got5</groupId>
		<artifactId>tapestry5-jquery</artifactId>
		<version>3.0.0</version>
	</dependency>
	...
</dependencies>

<repositories>
	...
	<repository>
		<id>devlab722-repo</id>
		<url>http://nexus.devlab722.net/nexus/content/repositories/releases
		</url>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>

	<repository>
		<id>devlab722-snapshot-repo</id>
		<url>http://nexus.devlab722.net/nexus/content/repositories/snapshots
		</url>
		<releases>
			<enabled>false</enabled>
		</releases>
	</repository>
	...
</repositories>

More Informations & contacts

How to use it

Just add tapestry5-jquery to your classpath (see Maven dependency snippet below)!

Then use components like you would normally do. For Autocomplete and Palette use "jquery" namespace:

<t:form>
    <t:jquery.autocomplete />
	<t:submit />
</t:form>

Or add jquery to the tapestry-library namespace:

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
  xmlns:p="tapestry:parameter"
  xmlns:j="tapestry-library:jquery">

<t:form>
    <j:palette />
    <t:textfield t:mixins="jquery/autocomplete" ... />
    <t:submit />
</t:form>

</html>

You still need to have PrototypeJS and the components originally included in tapestry ?

Tapestry5-jquery project allows you to choose whether to include or not Prototype (and original tapestry components). jQuery will be added to the javascript stack in every case. In your AppModule, contributeApplicationDefaults method, you can add configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");

Note about jQuery

In traditional jQuery development, we are used to manipulate the $ alias to select the elements we want to play with. jQuery allows us to change this default alias (for compatibility with other js frameworks also using the $ alias : like PrototypeJS, included in Tapestry, for example). The tapestry5-jquery project has an option permitting you to customize this alias : in your AppModule, contributeApplicationDefaults method, you can add configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "yourOwnAlias");. The default jquery alias is $.

By the way, if you've set the JQuerySymbolConstants.SUPPRESS_PROTOTYPE option to false, you may not use $ to refer to jQuery, because $ actually refers to Prototype. Thus, you may want to change jQuery's alias in that particular case. However, if you didn't change it, jQuery's alias will automatically be set to $j.

Important notice

All kind of feedback is very welcome. Please use Github issues system for that.

License

This project is distributed under Apache 2 License. See LICENSE.txt for more information.

About

Tapestry 5 jQuery integration. Fully replace Prototype and Scriptaculous with jQuery with as less as possible compatibility issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.0%
  • Java 21.1%
  • Other 0.9%