import org.wamblee.wicket.behavior.CompositeBehavior;
/**
- * Abstract JQuery hehavior class that performs some useful basic behaviors for
- * the behavior such as:
+ * Abstract JQuery hehavior class that makes it easy to write jQuery behaviors:
* <ul>
* <li>Creating a ready function which will be invoked for the component</li>
* <li>Checking that the component is not a page</li>
+ * <li>Ensuring tha the markup id of the component is output</li>
* <li>Creating a call to an intialization function from the ready handler using the component id </li>
* </ul>
*
* Constructs the behavior.
*
* @param aFunction
- * Ready function to be invoked.
+ * Function to be invoked from the ready handler. This function is invoked with a
+ * CSS selector that identifies the component.
* @param aBehaviors
* Behaviors to add in addition to the basic JQuery stuff.
*/
import org.apache.wicket.markup.html.JavascriptPackageResource;
/**
- * JQuery bahavior which adds the jquery javascript.
+ * JQuery header contribution that adds the jquery javascript and sets jQuery to
+ * no-conflict mode so the <code>$</code> identifier is freed. Also, it checks
+ * the current configuration and uses the development mode jQuery library when run in
+ * developmemnt mode and used the minimalized jQuery code when running in deployment mode.
*
* @author Erik Brakkee
*/
--- /dev/null
+/*
+ * Copyright 2005-2010 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * This package contains general support utilities for writing behaviors based on jQuery.
+ */
+package org.wamblee.wicket.jquery;
+