You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by gs...@apache.org on 2007/10/15 22:18:41 UTC
svn commit: r584893 [5/10] - in
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket: ./ ajax/
ajax/form/ ajax/markup/html/navigation/paging/ application/ behavior/
feedback/ markup/ markup/html/ markup/html/body/ markup/html/border/
markup/htm...
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java Mon Oct 15 13:18:27 2007
@@ -34,7 +34,7 @@
* A fairly shallow markup pull parser which parses a markup string of a given
* type of markup (for example, html, xml, vxml or wml) into ComponentTag and
* RawMarkup tokens.
- *
+ *
* @author Jonathan Locke
* @author Juergen Donnerstag
*/
@@ -42,22 +42,22 @@
{
/** next() must be called at least once for the Type to be valid */
public static final int NOT_INITIALIZED = 0;
-
+
/** <name ...> */
public static final int TAG = 1;
/** Tag body in between two tags */
public static final int BODY = 2;
-
+
/** <!-- ... --> */
public static final int COMMENT = 3;
-
+
/** <![CDATA[ .. ]]> */
public static final int CDATA = 4;
-
+
/** <?...> */
public static final int PROCESSING_INSTRUCTION = 5;
-
+
/** all other tags which look like <!.. > */
public static final int SPECIAL_TAG = 6;
@@ -69,7 +69,7 @@
/**
* A XML independent reader which loads the whole source data into memory
- * and which provides convinience methods to access the data.
+ * and which provides convenience methods to access the data.
*/
private FullyBufferedReader input;
@@ -93,149 +93,149 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#getEncoding()
*/
public String getEncoding()
{
- return this.xmlReader.getEncoding();
+ return xmlReader.getEncoding();
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#getXmlDeclaration()
*/
public String getXmlDeclaration()
{
- return this.xmlReader.getXmlDeclaration();
+ return xmlReader.getXmlDeclaration();
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#getInputFromPositionMarker(int)
*/
public final CharSequence getInputFromPositionMarker(final int toPos)
{
- return this.input.getSubstring(toPos);
+ return input.getSubstring(toPos);
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#getInput(int, int)
*/
public final CharSequence getInput(final int fromPos, final int toPos)
{
- return this.input.getSubstring(fromPos, toPos);
+ return input.getSubstring(fromPos, toPos);
}
/**
* Whatever will be in between the current index and the closing tag, will
* be ignored (and thus treated as raw markup (text). This is useful for
* tags like 'script'.
- *
+ *
* @throws ParseException
*/
private final void skipUntil() throws ParseException
{
// this is a tag with non-XHTML text as body - skip this until the
// skipUntilText is found.
- final int startIndex = this.input.getPosition();
- final int tagNameLen = this.skipUntilText.length();
+ final int startIndex = input.getPosition();
+ final int tagNameLen = skipUntilText.length();
- int pos = this.input.getPosition() - 1;
+ int pos = input.getPosition() - 1;
String endTagText = null;
int lastPos = 0;
while (!skipUntilText.equalsIgnoreCase(endTagText))
{
- pos = this.input.find("</", pos + 1);
- if ((pos == -1) || ((pos + (tagNameLen + 2)) >= this.input.size()))
+ pos = input.find("</", pos + 1);
+ if ((pos == -1) || ((pos + (tagNameLen + 2)) >= input.size()))
{
throw new ParseException(skipUntilText + " tag not closed (line "
- + this.input.getLineNumber() + ", column " + this.input.getColumnNumber()
+ + input.getLineNumber() + ", column " + input.getColumnNumber()
+ ")", startIndex);
}
lastPos = pos + 2;
- endTagText = this.input.getSubstring(lastPos, lastPos + tagNameLen).toString();
+ endTagText = input.getSubstring(lastPos, lastPos + tagNameLen).toString();
}
- this.input.setPosition(pos);
- this.lastText = this.input.getSubstring(startIndex, pos);
- this.lastType = BODY;
+ input.setPosition(pos);
+ lastText = input.getSubstring(startIndex, pos);
+ lastType = BODY;
// Check that the tag is properly closed
- lastPos = this.input.find('>', lastPos + tagNameLen);
+ lastPos = input.find('>', lastPos + tagNameLen);
if (lastPos == -1)
{
- throw new ParseException("Script tag not closed (line " + this.input.getLineNumber()
- + ", column " + this.input.getColumnNumber() + ")", startIndex);
+ throw new ParseException("Script tag not closed (line " + input.getLineNumber()
+ + ", column " + input.getColumnNumber() + ")", startIndex);
}
// Reset the state variable
- this.skipUntilText = null;
+ skipUntilText = null;
}
/**
* Gets the next tag from the input string.
- *
+ *
* @return The extracted tag (will always be of type XmlTag).
* @throws ParseException
*/
public final boolean next() throws ParseException
{
// Reached end of markup file?
- if (this.input.getPosition() >= this.input.size())
+ if (input.getPosition() >= input.size())
{
return false;
}
- if (this.skipUntilText != null)
+ if (skipUntilText != null)
{
skipUntil();
return true;
}
// Any more tags in the markup?
- final int openBracketIndex = this.input.find('<');
+ final int openBracketIndex = input.find('<');
// Tag or Body?
- if (this.input.charAt(this.input.getPosition()) != '<')
+ if (input.charAt(input.getPosition()) != '<')
{
if (openBracketIndex == -1)
{
// There is no next matching tag.
- this.lastText = this.input.getSubstring(-1);
- this.input.setPosition(this.input.size());
- this.lastType = BODY;
+ lastText = input.getSubstring(-1);
+ input.setPosition(input.size());
+ lastType = BODY;
return true;
}
- this.lastText = this.input.getSubstring(openBracketIndex);
- this.input.setPosition(openBracketIndex);
- this.lastType = BODY;
+ lastText = input.getSubstring(openBracketIndex);
+ input.setPosition(openBracketIndex);
+ lastType = BODY;
return true;
}
// Determine the line number
- this.input.countLinesTo(openBracketIndex);
+ input.countLinesTo(openBracketIndex);
// Get index of closing tag and advance past the tag
- int closeBracketIndex = this.input.find('>', openBracketIndex + 1);
+ int closeBracketIndex = input.find('>', openBracketIndex + 1);
if (closeBracketIndex == -1)
{
throw new ParseException("No matching close bracket at position " + openBracketIndex,
- this.input.getPosition());
+ input.getPosition());
}
// Get the complete tag text
- this.lastText = this.input.getSubstring(openBracketIndex, closeBracketIndex + 1);
+ lastText = input.getSubstring(openBracketIndex, closeBracketIndex + 1);
// Get the tagtext between open and close brackets
- String tagText = this.lastText.subSequence(1, this.lastText.length() - 1).toString();
+ String tagText = lastText.subSequence(1, lastText.length() - 1).toString();
if (tagText.length() == 0)
{
throw new ParseException("Found empty tag: '<>' at position " + openBracketIndex,
- this.input.getPosition());
+ input.getPosition());
}
// Handle special tags like <!-- and <![CDATA ...
@@ -275,44 +275,44 @@
if (lowerCase.startsWith("script"))
{
// prepare to skip everything between the open and close tag
- this.skipUntilText = "script";
+ skipUntilText = "script";
}
else if (lowerCase.startsWith("style"))
{
// prepare to skip everything between the open and close tag
- this.skipUntilText = "style";
+ skipUntilText = "style";
}
}
}
// Parse remaining tag text, obtaining a tag object or null
// if it's invalid
- this.lastTag = parseTagText(tagText);
- if (this.lastTag != null)
+ lastTag = parseTagText(tagText);
+ if (lastTag != null)
{
// Populate tag fields
- this.lastTag.type = type;
- this.lastTag.pos = openBracketIndex;
- this.lastTag.length = this.lastText.length();
- this.lastTag.text = this.lastText;
- this.lastTag.lineNumber = this.input.getLineNumber();
- this.lastTag.columnNumber = this.input.getColumnNumber();
+ lastTag.type = type;
+ lastTag.pos = openBracketIndex;
+ lastTag.length = lastText.length();
+ lastTag.text = lastText;
+ lastTag.lineNumber = input.getLineNumber();
+ lastTag.columnNumber = input.getColumnNumber();
// Move to position after the tag
- this.input.setPosition(closeBracketIndex + 1);
- this.lastType = TAG;
+ input.setPosition(closeBracketIndex + 1);
+ lastType = TAG;
return true;
}
else
{
- throw new ParseException("Malformed tag (line " + this.input.getLineNumber()
- + ", column " + this.input.getColumnNumber() + ")", openBracketIndex);
+ throw new ParseException("Malformed tag (line " + input.getLineNumber()
+ + ", column " + input.getColumnNumber() + ")", openBracketIndex);
}
}
/**
* Handle special tags like <!-- --> or <![CDATA[..]]> or <?xml>
- *
+ *
* @param tagText
* @param openBracketIndex
* @param closeBracketIndex
@@ -328,41 +328,41 @@
// Skip ahead to "-->". Note that you can not simply test for
// tagText.endsWith("--") as the comment might contain a '>'
// inside.
- int pos = this.input.find("-->", openBracketIndex + 1);
+ int pos = input.find("-->", openBracketIndex + 1);
if (pos == -1)
{
throw new ParseException("Unclosed comment beginning at line:"
+ input.getLineNumber() + " column:" + input.getColumnNumber(),
openBracketIndex);
}
-
+
pos += 3;
- this.lastText = this.input.getSubstring(openBracketIndex, pos);
- this.lastType = COMMENT;
-
+ lastText = input.getSubstring(openBracketIndex, pos);
+ lastType = COMMENT;
+
// Conditional comment? <!--[if ...]>..<![endif]-->
- if (tagText.startsWith("!--[if ") && tagText.endsWith("]")
- && this.lastText.toString().endsWith("<![endif]-->"))
+ if (tagText.startsWith("!--[if ") && tagText.endsWith("]")
+ && lastText.toString().endsWith("<![endif]-->"))
{
// Actually it is no longer a comment. It is now
// up to the browser to select the section appropriate.
- this.input.setPosition(closeBracketIndex + 1);
+ input.setPosition(closeBracketIndex + 1);
}
else
{
- this.input.setPosition(pos);
+ input.setPosition(pos);
}
return;
}
-
+
// The closing tag of a conditional comment <!--[if IE]>...<![endif]-->
if (tagText.equals("![endif]--"))
{
- this.lastType = COMMENT;
- this.input.setPosition(closeBracketIndex + 1);
+ lastType = COMMENT;
+ input.setPosition(closeBracketIndex + 1);
return;
}
-
+
// CDATA sections might contain "<" which is not part of an XML tag.
// Make sure escaped "<" are treated right
if (tagText.startsWith("!["))
@@ -380,11 +380,11 @@
{
throw new ParseException("No matching close bracket at line:"
+ input.getLineNumber() + " column:" + input.getColumnNumber(),
- this.input.getPosition());
+ input.getPosition());
}
// Get the tagtext between open and close brackets
- tagText = this.input.getSubstring(openBracketIndex + 1, closeBracketIndex)
+ tagText = input.getSubstring(openBracketIndex + 1, closeBracketIndex)
.toString();
pos1 = closeBracketIndex + 1;
@@ -392,31 +392,31 @@
while (tagText.endsWith("]]") == false);
// Move to position after the tag
- this.input.setPosition(closeBracketIndex + 1);
+ input.setPosition(closeBracketIndex + 1);
- this.lastText = tagText;
- this.lastType = CDATA;
+ lastText = tagText;
+ lastType = CDATA;
return;
}
}
if (tagText.charAt(0) == '?')
{
- this.lastType = PROCESSING_INSTRUCTION;
+ lastType = PROCESSING_INSTRUCTION;
// Move to position after the tag
- this.input.setPosition(closeBracketIndex + 1);
+ input.setPosition(closeBracketIndex + 1);
return;
}
// Move to position after the tag
- this.lastType = SPECIAL_TAG;
- this.input.setPosition(closeBracketIndex + 1);
+ lastType = SPECIAL_TAG;
+ input.setPosition(closeBracketIndex + 1);
}
/**
* Gets the next tag from the input string.
- *
+ *
* @return The extracted tag (will always be of type XmlTag).
* @throws ParseException
*/
@@ -424,10 +424,10 @@
{
while (next())
{
- switch (this.lastType)
+ switch (lastType)
{
case TAG :
- return this.lastTag;
+ return lastTag;
case BODY :
break;
@@ -451,7 +451,7 @@
/**
* Find the char but ignore any text within ".." and '..'
- *
+ *
* @param ch
* The character to search
* @param startIndex
@@ -462,9 +462,9 @@
{
char quote = 0;
- for (; startIndex < this.input.size(); startIndex++)
+ for (; startIndex < input.size(); startIndex++)
{
- final char charAt = this.input.charAt(startIndex);
+ final char charAt = input.charAt(startIndex);
if (quote != 0)
{
if (quote == charAt)
@@ -490,7 +490,7 @@
* <p>
* Note: xml character encoding is NOT applied. It is assumed the input
* provided does have the correct encoding already.
- *
+ *
* @param string
* The input string
* @throws IOException
@@ -507,7 +507,7 @@
/**
* Reads and parses markup from an input stream, using UTF-8 encoding by
* default when not specified in XML declaration.
- *
+ *
* @param in
* The input stream to read and parse
* @throws IOException
@@ -522,7 +522,7 @@
/**
* Reads and parses markup from an input stream
- *
+ *
* @param inputStream
* The input stream to read and parse
* @param encoding
@@ -535,50 +535,50 @@
{
try
{
- this.xmlReader = new XmlReader(
+ xmlReader = new XmlReader(
new BufferedInputStream(inputStream, 4000), encoding);
- this.input = new FullyBufferedReader(this.xmlReader);
+ input = new FullyBufferedReader(xmlReader);
}
finally
{
inputStream.close();
- if(this.xmlReader != null)
+ if(xmlReader != null)
{
- this.xmlReader.close();
+ xmlReader.close();
}
}
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#setPositionMarker()
*/
public final void setPositionMarker()
{
- this.input.setPositionMarker(this.input.getPosition());
+ input.setPositionMarker(input.getPosition());
}
/**
- *
+ *
* @see org.apache.wicket.markup.parser.IXmlPullParser#setPositionMarker(int)
*/
public final void setPositionMarker(final int pos)
{
- this.input.setPositionMarker(pos);
+ input.setPositionMarker(pos);
}
/**
- *
+ *
* @see java.lang.Object#toString()
*/
public String toString()
{
- return this.input.toString();
+ return input.toString();
}
/**
* Parses the text between tags. For example, "a href=foo.html".
- *
+ *
* @param tagText
* The text between tags
* @return A new Tag object or null if the tag is invalid
@@ -638,7 +638,7 @@
// Put the attribute in the attributes hash
if (null != tag.put(key, value))
{
- throw new ParseException("Same attribute found twice: " + key, this.input
+ throw new ParseException("Same attribute found twice: " + key, input
.getPosition());
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/EnclosureHandler.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/EnclosureHandler.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/EnclosureHandler.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/EnclosureHandler.java Mon Oct 15 13:18:27 2007
@@ -30,7 +30,7 @@
/**
* This is a markup inline filter. It identifies <wicket:enclosure> tags.
* If the 'child' attribute is empty it determines the wicket:id of the child
- * component automatically by analysing the wicket component (in this case on
+ * component automatically by analyzing the wicket component (in this case on
* one wicket component is allowed) in between the open and close tags. If the
* enclosure tag has a 'child' attribute like
* <code><wicket:enclosure child="xxx"></code> than more than just one
@@ -38,10 +38,10 @@
* component which determines the visibility of the enclosure is identified by
* the 'child' attribute value which must be equal to the relative child id
* path.
- *
+ *
* @see EnclosureResolver
* @see Enclosure
- *
+ *
* @author Juergen Donnerstag
*/
public final class EnclosureHandler extends AbstractMarkupFilter
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/HeadForceTagIdHandler.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/HeadForceTagIdHandler.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/HeadForceTagIdHandler.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/parser/filter/HeadForceTagIdHandler.java Mon Oct 15 13:18:27 2007
@@ -28,14 +28,14 @@
/**
* Handler that sets unique tag id for every inline script and style element in
* <wicket:head>, unless the element already has one. <br/> This is needed
- * to be able to dedect multiple ajax header contribution. Tags that are not
+ * to be able to detect multiple ajax header contribution. Tags that are not
* inline (stript with src attribute set and link with href attribute set) do
* not require id, because the detection is done by comparing URLs.
* <p>
* Tags with wicket:id are <strong>not processed</strong>. To
* setOutputWicketId(true) on attached component is developer's responsibility.
* FIXME: Really? And if so, document properly
- *
+ *
* @author Matej Knopp
*/
public class HeadForceTagIdHandler extends AbstractMarkupFilter
@@ -51,7 +51,7 @@
/**
* Construct.
- *
+ *
* @param markupFileClass Used to generated the a common prefix for the id
*/
public HeadForceTagIdHandler(final Class markupFileClass)
@@ -67,7 +67,7 @@
}
buffer.append("-");
- this.headElementIdPrefix = buffer.toString();
+ headElementIdPrefix = buffer.toString();
}
/**
@@ -82,10 +82,10 @@
// is it a <wicket:head> tag?
if (tag instanceof WicketTag && ((WicketTag)tag).isHeadTag())
{
- this.inHead = tag.isOpen();
+ inHead = tag.isOpen();
}
// no, it's not. Are we in <wicket:head> ?
- else if (this.inHead == true)
+ else if (inHead == true)
{
// is the tag open and has empty wicket:id?
if ((tag instanceof WicketTag == false) && (tag.getId() == null)
@@ -104,7 +104,7 @@
}
/**
- *
+ *
* @param tag
* @return true, if id is needed
*/
@@ -124,7 +124,7 @@
}
/**
- *
+ *
* @return The next value
*/
private final int nextValue()
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java Mon Oct 15 13:18:27 2007
@@ -34,18 +34,18 @@
* container followed by <code>populateItem(Component item)</code> to let the user populate the
* newly created item container with with custom components.
* </p>
- *
+ *
* @see org.apache.wicket.markup.repeater.RefreshingView
* @see org.apache.wicket.markup.html.navigation.paging.IPageable
- *
+ *
* @author Igor Vaynberg (ivaynberg)
- *
+ *
*/
public abstract class AbstractPageableView extends RefreshingView implements IPageable
{
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
@@ -88,7 +88,7 @@
/**
* This method retrieves the subset of models for items in the current page and allows
* RefreshingView to generate items.
- *
+ *
* @return iterator over models for items in the current page
*/
protected Iterator getItemModels()
@@ -111,11 +111,11 @@
/**
* Returns an iterator over models for items in the current page
- *
+ *
* @param offset
* index of first item in this page
* @param size
- * number of items that will be showin in the current page
+ * number of items that will be shown in the current page
* @return an iterator over models for items in the current page
*/
protected abstract Iterator getItemModels(int offset, int size);
@@ -164,7 +164,7 @@
/**
* Sets the maximum number of items to show per page. The current page will also be set to zero
- *
+ *
* @param items
*/
protected final void internalSetRowsPerPage(int items)
@@ -343,7 +343,7 @@
/**
* Constructor
- *
+ *
* @param delegate
* delegate iterator
* @param max
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/EmptyDataProvider.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/EmptyDataProvider.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/EmptyDataProvider.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/EmptyDataProvider.java Mon Oct 15 13:18:27 2007
@@ -23,8 +23,8 @@
/**
- * A convienience class to represent an empty data provider.
- *
+ * A convenience class to represent an empty data provider.
+ *
* @author Phil Kulak
*/
public class EmptyDataProvider implements IDataProvider
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/GridView.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/GridView.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/GridView.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/GridView.java Mon Oct 15 13:18:27 2007
@@ -31,7 +31,7 @@
* top-down so that for each third item a new row is created.
* <p>
* Example
- *
+ *
* <pre>
* <tbody>
* <tr wicket:id="rows" class"even">
@@ -39,24 +39,24 @@
* <span wicket:id="id">Test ID</span>
* </td>
* </tr>
- * </tbody>
+ * </tbody>
* </pre>
- *
+ *
* and in java:
- *
+ *
* <pre>
* add(new GridView("rows", dataProvider).setColumns(3));
* </pre>
- *
+ *
* @author Igor Vaynberg
* @author Christian Essl
- *
+ *
*/
public abstract class GridView extends DataViewBase
{
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
private int columns = 1;
@@ -85,9 +85,9 @@
/**
* Sets number of columns
- *
+ *
* @param cols
- * number of colums
+ * number of columns
* @return this for chaining
*/
public GridView setColumns(int cols)
@@ -135,7 +135,7 @@
/**
* Sets number of rows per page
- *
+ *
* @param rows
* number of rows
* @return this for chaining
@@ -258,7 +258,7 @@
/**
* Add component to an Item for which there is no model anymore and is shown
* in a cell
- *
+ *
* @param item
* Item object
*/
@@ -267,7 +267,7 @@
/**
* Create a Item which represents an empty cell (there is no model for it in
* the DataProvider)
- *
+ *
* @param id
* @param index
* @return created item
@@ -279,7 +279,7 @@
/**
* Create a new Item which will hold a row.
- *
+ *
* @param id
* @param index
* @return created Item
@@ -290,10 +290,10 @@
}
/**
- * Iterator that iterats over all items in the cells
- *
+ * Iterator that iterates over all items in the cells
+ *
* @author igor
- *
+ *
*/
private static class ItemsIterator implements Iterator
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/IDataProvider.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/IDataProvider.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/IDataProvider.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/data/IDataProvider.java Mon Oct 15 13:18:27 2007
@@ -24,49 +24,49 @@
/**
* Interface used to provide data to data views.
- *
+ *
* Example:
- *
+ *
* <pre>
* class UsersProvider implements IDataProvider {
- *
+ *
* public Iterator iterator(int first, int count) {
* ((MyApplication)Application.get()).getUserDao().iterator(first, count);
* }
- *
+ *
* public int size() {
* ((MyApplication)Application.get()).getUserDao().getCount();
* }
- *
+ *
* public IModel model(Object object) {
* return new DetachableUserModel((User)object);
* }
* }
* </pre>
- *
+ *
* You can use the {@link IDetachable#detach()} method for cleaning up your
* IDataProvider instance. So that you can do one query that returns both
* the size and the values if your dataset is small enough the be able to
* do that.
- *
+ *
* @see IDetachable
* @see DataViewBase
* @see DataView
* @see GridView
- *
+ *
* @author Igor Vaynberg (ivaynberg)
- *
+ *
*/
public interface IDataProvider extends IDetachable
{
/**
* Gets an iterator for the subset of total data
- *
+ *
* @param first
* first row of data
* @param count
- * minumum number of elements to retrieve
- *
+ * minimum number of elements to retrieve
+ *
* @return iterator capable of iterating over {first, first+count} items
*/
Iterator iterator(int first, int count);
@@ -74,7 +74,7 @@
/**
* Gets total number of items in the collection represented by the
* DataProvider
- *
+ *
* @return total item count
*/
int size();
@@ -83,10 +83,10 @@
* Callback used by the consumer of this data provider to wrap objects
* retrieved from {@link #iterator(int, int)} with a model (usually a
* detachable one).
- *
+ *
* @param object
* the object that needs to be wrapped
- *
+ *
* @return the model representation of the object
*/
IModel model(Object object);
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoComponentResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoComponentResolver.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoComponentResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoComponentResolver.java Mon Oct 15 13:18:27 2007
@@ -49,7 +49,7 @@
* <p>
* Note: The component must provide a setter for each key/value attribute
* provided.
- *
+ *
* @author Juergen Donnerstag
*/
public final class AutoComponentResolver implements IComponentResolver
@@ -135,7 +135,7 @@
component.render(markupStream);
return true;
}
-
+
parent = parent.getParent();
if (nestedComponents.containsKey(parent))
{
@@ -149,10 +149,10 @@
}
/**
- * Based on the tag, create and initalize the component.
- *
+ * Based on the tag, create and initialize the component.
+ *
* @param container
- * The current container. The new compent will be added to that
+ * The current container. The new component will be added to that
* container.
* @param tag
* The tag containing the information about component
@@ -176,7 +176,7 @@
{
throw new MarkupException("Tag <wicket:component> must have attribute 'class'");
}
-
+
// construct the component. It must have a constructor with a single
// String (componentId) parameter.
final Component component;
@@ -251,7 +251,7 @@
/**
* Invoke the setter method for 'name' on object and provide the 'value'
- *
+ *
* @param object
* @param name
* @param value
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoLinkResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoLinkResolver.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoLinkResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/AutoLinkResolver.java Mon Oct 15 13:18:27 2007
@@ -47,7 +47,7 @@
* href="Home.html">
* <p>
* If href points to a *.html file, a BookmarkablePageLink will automatically be
- * created, except for absolut paths, where an ExternalLink is created.
+ * created, except for absolute paths, where an ExternalLink is created.
* <p>
* If href points to a *.html file, it resolves the given URL by searching for a
* page class, either relative or absolute, specified by the href attribute of
@@ -55,9 +55,9 @@
* the associated page. An exception is thrown if no Page class was found.
* <p>
* If href is no *.html file a static reference to the resource is created.
- *
+ *
* @see org.apache.wicket.markup.parser.filter.WicketLinkTagHandler
- *
+ *
* @author Juergen Donnerstag
* @author Eelco Hillenius
*/
@@ -73,7 +73,7 @@
{
/**
* Creates a new auto component that references a package resource.
- *
+ *
* @param container
* the parent container
* @param autoId
@@ -132,7 +132,7 @@
* Autolink components delegate component resolution to their parent
* components. Reason: autolink tags don't have wicket:id and users wouldn't
* know where to add the component to.
- *
+ *
* @author Juergen Donnerstag
*/
public final static class AutolinkBookmarkablePageLink extends BookmarkablePageLink
@@ -151,10 +151,10 @@
/**
* Construct
- *
+ *
* @see BookmarkablePageLink#BookmarkablePageLink(String, Class,
* PageParameters)
- *
+ *
* @param id
* @param pageClass
* @param parameters
@@ -177,7 +177,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.html.link.BookmarkablePageLink#getURL()
*/
protected CharSequence getURL()
@@ -202,7 +202,7 @@
* component must have the autoId assigned as it's id. Should return
* null in case the component could not be created as expected and the
* default resolving should take place.
- *
+ *
* @param container
* the parent container
* @param autoId
@@ -237,7 +237,7 @@
/** The optional page parameters. */
private final PageParameters pageParameters;
- /** The path exluding any parameters. */
+ /** The path excluding any parameters. */
private final String path;
/** The original reference (e.g the full value of a href attribute). */
@@ -245,7 +245,7 @@
/**
* Construct.
- *
+ *
* @param reference
* the original reference (e.g the full value of a href
* attribute)
@@ -299,7 +299,7 @@
/**
* Gets the anchor (e.g. #top)
- *
+ *
* @return anchor
*/
public final String getAnchor()
@@ -309,7 +309,7 @@
/**
* Gets extension.
- *
+ *
* @return extension
*/
public final String getExtension()
@@ -319,7 +319,7 @@
/**
* Gets pageParameters.
- *
+ *
* @return pageParameters
*/
public final PageParameters getPageParameters()
@@ -329,7 +329,7 @@
/**
* Gets path.
- *
+ *
* @return path
*/
public final String getPath()
@@ -339,7 +339,7 @@
/**
* Gets reference.
- *
+ *
* @return reference
*/
public final String getReference()
@@ -349,7 +349,7 @@
/**
* Gets absolute.
- *
+ *
* @return absolute
*/
public final boolean isAbsolute()
@@ -478,7 +478,7 @@
* Autolink components delegate component resolution to their parent
* components. Reason: autolink tags don't have wicket:id and users wouldn't
* know where to add the component to.
- *
+ *
* @author Juergen Donnerstag
*/
private final static class AutolinkExternalLink extends ExternalLink
@@ -487,7 +487,7 @@
/**
* Construct
- *
+ *
* @param id
* @param href
*/
@@ -516,9 +516,9 @@
* of the tag. For instance, anchors use the <code>href</code>
* attribute but script and image references use the <code>src</code>
* attribute.
- *
+ *
* @param tag
- * The component tag. Not for modifcation.
+ * The component tag. Not for modification.
* @return the tag value that constitutes the reference
*/
String getReference(final ComponentTag tag);
@@ -575,7 +575,7 @@
/**
* Handles this link's tag.
- *
+ *
* @param tag
* the component tag
* @see org.apache.wicket.Component#onComponentTag(ComponentTag)
@@ -598,7 +598,7 @@
}
/**
- * Resolves to {@link ResourceReference} link components. Typcically used
+ * Resolves to {@link ResourceReference} link components. Typically used
* for header contributions like javascript and css files.
*/
private static final class ResourceReferenceResolverDelegate
@@ -609,7 +609,7 @@
/**
* Construct.
- *
+ *
* @param attribute
*/
public ResourceReferenceResolverDelegate(final String attribute)
@@ -640,7 +640,7 @@
/**
* Construct.
- *
+ *
* @param attribute
* the attribute to fetch
*/
@@ -654,9 +654,9 @@
* of the tag. For instance, anchors use the <code>href</code>
* attribute but script and image references use the <code>src</code>
* attribute.
- *
+ *
* @param tag
- * The component tag. Not for modifcation.
+ * The component tag. Not for modification.
* @return the tag value that constitutes the reference
*/
public String getReference(final ComponentTag tag)
@@ -715,7 +715,7 @@
* Register (add or replace) a new resolver with the tagName and
* attributeName. The resolver will be invoked each time an appropriate tag
* and attribute is found.
- *
+ *
* @param tagName
* The tag name
* @param attributeName
@@ -734,7 +734,7 @@
/**
* Get the resolver registered for 'tagName'
- *
+ *
* @param tagName
* The tag's name
* @return The resolver found. Null, if none registered
@@ -746,10 +746,10 @@
/**
* Automatically creates a BookmarkablePageLink component.
- *
+ *
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(MarkupContainer,
* MarkupStream, ComponentTag)
- *
+ *
* @param markupStream
* The current markupStream
* @param tag
@@ -791,7 +791,7 @@
* relative URL specified by the href attribute of the tag.
* <p>
* None html references are treated similar.
- *
+ *
* @param container
* The container where the link is
* @param id
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java Mon Oct 15 13:18:27 2007
@@ -26,7 +26,7 @@
/**
* Implement a component resolver which walks up the component tree until a Page
- * or Panel and tries to find a component with a matching wicket id, effectivly
+ * or Panel and tries to find a component with a matching wicket id, effectively
* providing something like scoping for wicket id resolution.
* <p>
* Note: This resolver is not activated by default. It has to be added by means of
@@ -36,45 +36,45 @@
* Example:
* <pre>
* MyPage()
- * {
- * add(new Label("hidden-by-cont1","hidden"));
- * add(new Label("global","can be everywhere")); //the intresting case
- *
- * WebMarkupContainer cont1 = new WebMarkupContainer("cont1");
+ * {
+ * add(new Label("hidden-by-cont1","hidden"));
+ * add(new Label("global","can be everywhere")); //the interesting case
+ *
+ * WebMarkupContainer cont1 = new WebMarkupContainer("cont1");
* add(cont1);
- *
- * cont1.add(new Label("hidden-by-cont1","cont1 hides"));
+ *
+ * cont1.add(new Label("hidden-by-cont1","cont1 hides"));
* cont1.add(new Label("same-id","cont1 same-id"));
- *
- * WebMarkupContainer cont2 = new WebMarkupContainer("cont2");
+ *
+ * WebMarkupContainer cont2 = new WebMarkupContainer("cont2");
* add(cont2);
- *
- * cont2.add(new Label("same-id","cont2 same-id"));
+ *
+ * cont2.add(new Label("same-id","cont2 same-id"));
* }
* </pre>
* <pre>
* HTML:
- * <html>
- * <body>
- * <span wicket:id="hidden-by-cont1">Prints: hidden</span>
- * <div wicket:id="cont1">
+ * <html>
+ * <body>
+ * <span wicket:id="hidden-by-cont1">Prints: hidden</span>
+ * <div wicket:id="cont1">
* <span wicket:id="hidden-by-cont1">Prints: cont1 hides</span>
- * <span wicket:id="same-id">Prints: cont1 same-id</span>
+ * <span wicket:id="same-id">Prints: cont1 same-id</span>
* </div>
- *
- * <div wicket:id="cont2">
+ *
+ * <div wicket:id="cont2">
* <span wicket:id="global">Prints: can be everywhere</span>
- * <span wicket:id="same-id">Prints: cont2 same-id</span>
+ * <span wicket:id="same-id">Prints: cont2 same-id</span>
* </div>
* </pre>
- *
+ *
* So you can use the same ids in the same page. If the containing containers
* are not in the same hierarchy-line nothing changes. A comp with the same id
* hides the one of the parent-container with the same id.
- *
+ *
* @see org.apache.wicket.MarkupContainer#isTransparentResolver()
* @see org.apache.wicket.markup.resolver.ParentResolver
- *
+ *
* @author Christian Essl
* @author Juergen Donnerstag
*/
@@ -91,7 +91,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(org.apache.wicket.MarkupContainer,
* org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag)
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java Mon Oct 15 13:18:27 2007
@@ -29,11 +29,11 @@
* This abstract container provides the means to post-process the markup
* generated by its child components (excluding the containers tag)
* <p>
- * Please see <code>IBehavior</code> for an alternativ based on IBehavior
- *
+ * Please see <code>IBehavior</code> for an alternative based on IBehavior
+ *
* @see org.apache.wicket.markup.transformer.AbstractTransformerBehavior
* @see org.apache.wicket.markup.transformer.ITransformer
- *
+ *
* @author Juergen Donnerstag
*/
public abstract class AbstractOutputTransformerContainer extends MarkupContainer
@@ -47,7 +47,7 @@
/**
* Construct
- *
+ *
* @see org.apache.wicket.Component#Component(String)
*/
public AbstractOutputTransformerContainer(final String id)
@@ -57,7 +57,7 @@
/**
* Construct
- *
+ *
* @see org.apache.wicket.Component#Component(String, IModel)
*/
public AbstractOutputTransformerContainer(final String id, final IModel model)
@@ -68,21 +68,21 @@
/**
* You can choose whether the body of the tag excluding the tag shall be
* transformed or including the tag.
- *
+ *
* @param value
* If true, only the body is applied to transformation.
* @return this
*/
public MarkupContainer setTransformBodyOnly(final boolean value)
{
- this.transformBodyOnly = value;
+ transformBodyOnly = value;
return this;
}
/**
* Create a new response object which is used to store the markup generated
* by the child objects.
- *
+ *
* @return Response object. Must not be null
*/
protected Response newResponse()
@@ -91,7 +91,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
@@ -105,7 +105,7 @@
protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
- if (this.transformBodyOnly == true)
+ if (transformBodyOnly == true)
{
execute(new Runnable()
{
@@ -127,7 +127,7 @@
*/
protected final void onRender(final MarkupStream markupStream)
{
- if (this.transformBodyOnly == false)
+ if (transformBodyOnly == false)
{
execute(new Runnable()
{
@@ -145,13 +145,13 @@
}
/**
- *
+ *
* @param code
*/
private final void execute(final Runnable code)
{
// Temporarily replace the web response with a String response
- final Response webResponse = this.getResponse();
+ final Response webResponse = getResponse();
try
{
@@ -163,7 +163,7 @@
}
// and make it the current one
- this.getRequestCycle().setResponse(response);
+ getRequestCycle().setResponse(response);
// Invoke default execution
code.run();
@@ -182,7 +182,7 @@
finally
{
// Restore the original response
- this.getRequestCycle().setResponse(webResponse);
+ getRequestCycle().setResponse(webResponse);
}
}
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java Mon Oct 15 13:18:27 2007
@@ -27,9 +27,9 @@
/**
* A IBehavior which can be added to any component. It allows to post-process
* (transform) the markup generated by the component.
- *
+ *
* @see org.apache.wicket.markup.transformer.AbstractOutputTransformerContainer
- *
+ *
* @author Juergen Donnerstag
*/
public abstract class AbstractTransformerBehavior extends AbstractBehavior implements ITransformer
@@ -48,7 +48,7 @@
/**
* Create a new response object which is used to store the markup generated
* by the child objects.
- *
+ *
* @return Response object. Must not be null
*/
protected Response newResponse()
@@ -67,7 +67,7 @@
final RequestCycle requestCycle = RequestCycle.get();
// Temporarily replace the web response with a String response
- this.webResponse = requestCycle.getResponse();
+ webResponse = requestCycle.getResponse();
// Create a new response object
final Response response = newResponse();
@@ -91,9 +91,9 @@
{
Response response = requestCycle.getResponse();
- // Tranform the data
+ // Transform the data
CharSequence output = transform(component, response.toString());
- this.webResponse.write(output);
+ webResponse.write(output);
}
catch (Exception ex)
{
@@ -102,7 +102,7 @@
finally
{
// Restore the original response object
- requestCycle.setResponse(this.webResponse);
+ requestCycle.setResponse(webResponse);
}
}
@@ -111,7 +111,7 @@
*/
public void cleanup()
{
- this.webResponse = null;
+ webResponse = null;
}
/**
@@ -119,15 +119,15 @@
*/
public void onException(Component component, RuntimeException exception)
{
- if (this.webResponse != null)
+ if (webResponse != null)
{
final RequestCycle requestCycle = RequestCycle.get();
- requestCycle.setResponse(this.webResponse);
+ requestCycle.setResponse(webResponse);
}
}
-
+
/**
- *
+ *
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java Mon Oct 15 13:18:27 2007
@@ -21,7 +21,7 @@
/**
* A common interface to be implemented be OutputTransformerContainers and
* TranformerBehaviors which post-process the output markup of a component.
- *
+ *
* @author Juergen Donnerstag
*/
public interface ITransformer
@@ -29,12 +29,12 @@
/**
* Will be invoked after all child components have been processed to allow
* for transforming the markup generated.
- *
+ *
* @param component
* The associated Wicket component
* @param output
* The markup generated by the child components
- * @return The output which will be appended to the orginal response
+ * @return The output which will be appended to the original response
* @throws Exception
*/
CharSequence transform(final Component component, final CharSequence output) throws Exception;
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java Mon Oct 15 13:18:27 2007
@@ -22,15 +22,15 @@
/**
* A simple compound model which uses the component's name as the property
* expression to retrieve properties on the nested model object.
- *
+ *
* CompoundPropertyModel is a chaining model so it will call get/setobject
* on the given object if the object is an instanceof IModel itself.
- *
+ *
* @see org.apache.wicket.model.IModel
* @see org.apache.wicket.model.Model
* @see org.apache.wicket.model.LoadableDetachableModel
* @see IChainingModel
- *
+ *
* @author Jonathan Locke
*/
public class CompoundPropertyModel implements IComponentInheritedModel, IChainingModel
@@ -41,13 +41,13 @@
/**
* Constructor
- *
+ *
* @param object
* The model object, which may or may not implement IModel
*/
public CompoundPropertyModel(final Object object)
{
- this.target = object;
+ target = object;
}
/**
@@ -69,14 +69,14 @@
{
if (target instanceof IModel)
{
- ((IModel)target).setObject(object);
+ ((IModel)target).setObject(object);
}
else
{
- this.target = object;
+ target = object;
}
}
-
+
/**
* @see org.apache.wicket.model.IChainingModel#getChainedModel()
*/
@@ -88,7 +88,7 @@
}
return null;
}
-
+
/**
* @see org.apache.wicket.model.IChainingModel#setChainedModel(org.apache.wicket.model.IModel)
*/
@@ -111,7 +111,7 @@
/**
* Returns the property expression that should be used against the target
* object
- *
+ *
* @param component
* @return property expression that should be used against the target object
*/
@@ -127,14 +127,14 @@
{
return new AttachedCompoundPropertyModel(component);
}
-
+
/**
* Binds this model to a special property by returning a model
* that has this compound model as its nested/wrapped model and
- * the property which should be evaluted.
+ * the property which should be evaluated.
* This can be used if the id of the Component isn't a valid property
- * for the data object.
- *
+ * for the data object.
+ *
* @param property
* @return The IModel that is a wrapper around the current model and the property
*/
@@ -146,7 +146,7 @@
/**
* Component aware variation of the {@link CompoundPropertyModel} that
* components that inherit the model get
- *
+ *
* @author ivaynberg
*/
private class AttachedCompoundPropertyModel extends AbstractPropertyModel
@@ -158,7 +158,7 @@
/**
* Constructor
- *
+ *
* @param owner
* component that this model has been attached to
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java Mon Oct 15 13:18:27 2007
@@ -22,15 +22,15 @@
/**
* A model that represents a localized resource string. This is a lightweight
* version of the {@link StringResourceModel}. It lacks parameter
- * substitutions, but is generaly easier to use.
+ * substitutions, but is generally easier to use.
* <p>
* If you don't use this model as primary component model (you don't specify it
* in component constructor and don't assign it to component using
* {@link Component#setModel(IModel)}), you will need to connect the model
* with a component using {@link #wrapOnAssignment(Component)}.
- *
+ *
* @author Igor Vaynberg (ivaynberg)
- *
+ *
*/
public class ResourceModel extends AbstractReadOnlyModel implements IComponentAssignedModel
{
@@ -42,7 +42,7 @@
/**
* Constructor
- *
+ *
* @param resourceKey
* key of the resource this model represents
*/
@@ -53,12 +53,12 @@
/**
* Constructor
- *
+ *
* @param resourceKey
* key of the resource this model represents
* @param defaultValue
* value that will be returned if resource does not exist
- *
+ *
*/
public ResourceModel(String resourceKey, String defaultValue)
{
@@ -86,7 +86,7 @@
}
/**
- *
+ *
*/
private class AssignmentWrapper extends ResourceModel implements IWrapModel
{
@@ -96,7 +96,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* @param defaultValue
* @param component
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java Mon Oct 15 13:18:27 2007
@@ -37,7 +37,7 @@
* The model should be created with four parameters, which are described in detail below:
* <ul>
* <li><b>resourceKey </b>- This is the most important parameter as it contains the key that should
- * be used to obtain resources from any string resource loaders. This paramater is mandatory: a null
+ * be used to obtain resources from any string resource loaders. This parameter is mandatory: a null
* value will throw an exception. Typically it will contain an ordinary string such as
* "label.username". To add extra power to the key functionality the key may also contain
* a property expression which will be evaluated if the model parameter (see below) is not null.
@@ -79,27 +79,27 @@
* <b>Example 1 </b>
* <p>
* In its simplest form, the model can be used as follows:
- *
+ *
* <pre>
- * public MyPage extends WebPage
+ * public MyPage extends WebPage
* {
- * public MyPage(final PageParameters parameters)
+ * public MyPage(final PageParameters parameters)
* {
* add(new Label("username", new StringResourceModel("label.username", this, null)));
* }
* }
* </pre>
- *
+ *
* Where the resource bundle for the page contains the entry <code>label.username=Username</code>
* <p>
* <b>Example 2 </b>
* <p>
* In this example, the resource key is selected based on the evaluation of a property expression:
- *
+ *
* <pre>
- * public MyPage extends WebPage
+ * public MyPage extends WebPage
* {
- * public MyPage(final PageParameters parameters)
+ * public MyPage(final PageParameters parameters)
* {
* WeatherStation ws = new WeatherStation();
* add(new Label("weatherMessage",
@@ -107,27 +107,27 @@
* }
* }
* </pre>
- *
+ *
* Which will call the WeatherStation.getCurrentStatus() method each time the string resource model
* is used and where the resource bundle for the page contains the entries:
- *
+ *
* <pre>
* weather.sunny=Don't forget sunscreen!
- * weather.raining=You might need an umberella
+ * weather.raining=You might need an umbrella
* weather.snowing=Got your skis?
* weather.overcast=Best take a coat to be safe
* </pre>
- *
+ *
* <p>
* <b>Example 3 </b>
* <p>
* In this example the found resource string contains a property expression that is substituted via
* the model:
- *
+ *
* <pre>
- * public MyPage extends WebPage
+ * public MyPage extends WebPage
* {
- * public MyPage(final PageParameters parameters)
+ * public MyPage(final PageParameters parameters)
* {
* WeatherStation ws = new WeatherStation();
* add(new Label("weatherMessage",
@@ -135,7 +135,7 @@
* }
* }
* </pre>
- *
+ *
* Where the resource bundle contains the entry <code>weather.message=Weather station reports that
* the temperature is ${currentTemperature} ${units}</code>
* <p>
@@ -143,18 +143,18 @@
* <p>
* In this example, the use of substitution parameters is employed to format a quite complex message
* string. This is an example of the most complex and powerful use of the string resource model:
- *
+ *
* <pre>
- * public MyPage extends WebPage
+ * public MyPage extends WebPage
* {
- * public MyPage(final PageParameters parameters)
+ * public MyPage(final PageParameters parameters)
* {
* WeatherStation ws = new WeatherStation();
* Model model = new Model(ws);
* add(new Label("weatherMessage",
* new StringResourceModel(
* "weather.detail", this, model,
- * new Object[]
+ * new Object[]
* {
* new Date(),
* new PropertyModel(model, "currentStatus"),
@@ -164,14 +164,14 @@
* }
* }
* </pre>
- *
+ *
* And where the resource bundle entry is:
- *
+ *
* <pre>
* weather.detail=The report for {0,date}, shows the temperature as {2,number,###.##} {3} \
* and the weather to be {1}
* </pre>
- *
+ *
* @author Chris Turner
*/
public class StringResourceModel extends LoadableDetachableModel
@@ -204,7 +204,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -221,7 +221,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -230,7 +230,7 @@
* The model to use for property substitutions
* @param defaultValue
* The default value if the resource key is not found.
- *
+ *
* @see #StringResourceModel(String, Component, IModel, Object[])
*/
public StringResourceModel(final String resourceKey, final Component component,
@@ -243,7 +243,7 @@
* Creates a new string resource model using the supplied parameters.
* <p>
* The relative component parameter should generally be supplied, as without it resources can
- * not be obtained from resouce bundles that are held relative to a particular component or
+ * not be obtained from resource bundles that are held relative to a particular component or
* page. However, for application that use only global resources then this parameter may be
* null.
* <p>
@@ -251,7 +251,7 @@
* to take place on either the resource key or the actual resource strings.
* <p>
* The parameters parameter is also optional and is used for substitutions.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -271,7 +271,7 @@
* Creates a new string resource model using the supplied parameters.
* <p>
* The relative component parameter should generally be supplied, as without it resources can
- * not be obtained from resouce bundles that are held relative to a particular component or
+ * not be obtained from resource bundles that are held relative to a particular component or
* page. However, for application that use only global resources then this parameter may be
* null.
* <p>
@@ -279,7 +279,7 @@
* to take place on either the resource key or the actual resource strings.
* <p>
* The parameters parameter is also optional and is used for substitutions.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -307,7 +307,7 @@
/**
* Gets the localizer that is being used by this string resource model.
- *
+ *
* @return The localizer
*/
public Localizer getLocalizer()
@@ -319,7 +319,7 @@
* Gets the string currently represented by this string resource model. The string that is
* returned may vary for each call to this method depending on the values contained in the model
* and an the parameters that were passed when this string resource model was created.
- *
+ *
* @return The string
*/
public final String getString()
@@ -384,7 +384,7 @@
/**
* Sets the localizer that is being used by this string resource model. This method is provided
* to allow the default application localizer to be overridden if required.
- *
+ *
* @param localizer
* The localizer to use
*/
@@ -397,7 +397,7 @@
* Override of the default method to return the resource string represented by this string
* resource model. Useful in debugging and so on, to avoid the explicit need to call the
* getString() method.
- *
+ *
* @return The string for this model object
*/
public String toString()
@@ -418,7 +418,7 @@
/**
* Gets the Java MessageFormat substitution parameters.
- *
+ *
* @return The substitution parameters
*/
protected Object[] getParameters()
@@ -430,7 +430,7 @@
* Gets the resource key for this string resource. If the resource key contains property
* expressions and the model is null then the returned value is the actual resource key with all
* substitutions undertaken.
- *
+ *
* @return The (possibly substituted) resource key
*/
protected final String getResourceKey()
@@ -448,11 +448,11 @@
/**
* Gets the string that this string resource model currently represents. The string is returned
* as an object to allow it to be used generically within components.
- *
+ *
*/
protected Object load()
{
- // Initialise information that we need to work successfully
+ // Initialize information that we need to work successfully
final Session session = Session.get();
if (session != null)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java Mon Oct 15 13:18:27 2007
@@ -42,7 +42,7 @@
* Implementation of {@link HttpServletResponse} that saves the output in a string buffer. This is
* used in REDIRECT_TO_BUFFER render strategy to create the buffer of the output that can be held on
* to until the redirect part of the render strategy.
- *
+ *
* @author jcompagner
*/
class BufferedHttpServletResponse implements HttpServletResponse
@@ -71,7 +71,7 @@
/**
* Constructor.
- *
+ *
* @param realResponse
* The real response for encoding the url
*/
@@ -300,8 +300,8 @@
}
/**
- * Set the charackter encoding to use for the output.
- *
+ * Set the character encoding to use for the output.
+ *
* @param encoding
*/
public void setCharacterEncoding(String encoding)
@@ -435,7 +435,7 @@
/**
* THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
- *
+ *
* @param response
*/
public final void filter(Response response)
@@ -450,7 +450,7 @@
}
/**
- *
+ *
*/
public void close()
{
@@ -465,9 +465,9 @@
/**
* Convert the string into the output encoding required
- *
+ *
* @param output
- *
+ *
* @param encoding
* The output encoding
* @return byte[] The encoded characters converted into bytes
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java Mon Oct 15 13:18:27 2007
@@ -31,17 +31,17 @@
* <p>
* A convenient way of letting Wicket do a sneaky redirect to {@link BrowserInfoPage} (and back
* again) is to put this in your Application's init method:
- *
+ *
* <pre>
* getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
* </pre>
- *
+ *
* </p>
- *
+ *
* WARNING: Be sure you think about the dangers of depending on information you pull from the client
* too much. They may be easily spoofed or inaccurate in other ways, and properties like window and
* browser size are all too easy to be used naively.
- *
+ *
* @see BrowserInfoPage
* @author Frank Bille (frankbille)
*/
@@ -206,7 +206,7 @@
/**
* Get the client's time zone if that could be detected.
- *
+ *
* @return The client's time zone
*/
public TimeZone getTimeZone()
@@ -353,7 +353,7 @@
/**
* Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser
* platform.
- *
+ *
* @return True if a derivative of the Microsoft Internet Explorer browser platform.
*/
public boolean isBrowserInternetExplorer()
@@ -363,7 +363,7 @@
/**
* Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
- *
+ *
* @return True if a derivative of the KDE Konqueror browser platform.
*/
public boolean isBrowserKonqueror()
@@ -373,7 +373,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
- *
+ *
* @return True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
public boolean isBrowserMozilla()
@@ -384,7 +384,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser
* platform.
- *
+ *
* @return True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
public boolean isBrowserMozillaFirefox()
@@ -394,7 +394,7 @@
/**
* Flag indicating that the browser is a derivative of the Opera browser platform.
- *
+ *
* @return True if a derivative of the Opera browser platform.
*/
public boolean isBrowserOpera()
@@ -404,7 +404,7 @@
/**
* Flag indicating that the browser is a derivative of the Apple Safari browser platform.
- *
+ *
* @return True if a derivative of the Apple Safari browser platform.
*/
public boolean isBrowserSafari()
@@ -413,8 +413,8 @@
}
/**
- *
- *
+ *
+ *
* @return The client's navigator.cookieEnabled property.
*/
public boolean isCookiesEnabled()
@@ -437,7 +437,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if support for IE-style CSS expressions.
*/
public boolean isProprietaryIECssExpressionsSupported()
@@ -453,7 +453,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if PNG alpha channel support is available only by using a 'filter'.
*/
public boolean isProprietaryIEPngAlphaFilterRequired()
@@ -469,7 +469,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the 'fixed' attribute should be used to for fixed-to-element background
* attachment.
*/
@@ -486,7 +486,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the only means of achieving 0 padding in table cells is to use 0px padding.
*/
public boolean isQuirkCssBorderCollapseFor0Padding()
@@ -502,7 +502,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the client will incorrectly render CSS collapsed borders such that they
* reside entirely within the region of a component.
*/
@@ -519,7 +519,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if CSS positioning values do not work correctly when either both "top" and
* "bottom" or "left" and "right" positions are set at the same time.
*/
@@ -539,8 +539,8 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
- * @return True if means needs to be taken agains weird Internet Explorer repaint behaviors.
+ *
+ * @return True if means needs to be taken against weird Internet Explorer repaint behaviors.
*/
public boolean isQuirkIERepaint()
{
@@ -555,7 +555,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if listbox-style select fields cannot be reliably manipulated using the client
* DOM API.
*/
@@ -571,7 +571,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if select fields with percentage widths are not reliably rendered.
*/
public boolean isQuirkIESelectPercentWidth()
@@ -588,7 +588,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the browser do not render correctly with regard to z-index value.
*/
public boolean isQuirkIESelectZIndex()
@@ -604,7 +604,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if incorrect calculation of 100% table widths when within a vertically scrolling
* region.
*/
@@ -620,7 +620,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the browser has incorrect parsing of newlines in the content of a 'textarea'.
*/
public boolean isQuirkIETextareaNewlineObliteration()
@@ -638,7 +638,7 @@
* <li>Mozilla (all platforms)</li>
* <li>Mozilla Firefox ((all platforms)</li>
* </ul>
- *
+ *
* @return True if the client has poor performance when attempting to remove large element
* hierarchies from a DOM.
*/
@@ -657,7 +657,7 @@
* <li>Mozilla (all platforms)</li>
* <li>Mozilla Firefox ((all platforms)</li>
* </ul>
- *
+ *
* @return True if the text contained within text input fields may be drawn outside of text
* input component due to the component having shifted its location on the page.
*/
@@ -678,7 +678,7 @@
/**
* Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser
* platform.
- *
+ *
* @param browserInternetExplorer
* True if a derivative of the Microsoft Internet Explorer browser platform.
*/
@@ -689,7 +689,7 @@
/**
* Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
- *
+ *
* @param browserKonqueror
* True if a derivative of the KDE Konqueror browser platform.
*/
@@ -700,7 +700,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
- *
+ *
* @param browserMozilla
* True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
@@ -712,7 +712,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser
* platform.
- *
+ *
* @param browserMozillaFirefox
* True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
@@ -723,7 +723,7 @@
/**
* Flag indicating that the browser is a derivative of the Opera browser platform.
- *
+ *
* @param browserOpera
* True if a derivative of the Opera browser platform.
*/
@@ -734,7 +734,7 @@
/**
* Flag indicating that the browser is a derivative of the Apple Safari browser platform.
- *
+ *
* @param browserSafari
* True if a derivative of the Apple Safari browser platform.
*/
@@ -902,7 +902,7 @@
/**
* @param quirkIERepaint
- * True if means needs to be taken agains weird Internet Explorer repaint behaviors.
+ * True if means needs to be taken against weird Internet Explorer repaint behaviors.
*/
public void setQuirkIERepaint(boolean quirkIERepaint)
{
@@ -1017,7 +1017,7 @@
/**
* Sets time zone.
- *
+ *
* @param timeZone
*/
public void setTimeZone(TimeZone timeZone)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IRequestLogger.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IRequestLogger.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IRequestLogger.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IRequestLogger.java Mon Oct 15 13:18:27 2007
@@ -27,7 +27,7 @@
/**
* Interface for the request logger and viewer.
* @see org.apache.wicket.Application#newRequestLogger()
- *
+ *
* @author jcompagner
*/
public interface IRequestLogger
@@ -46,26 +46,26 @@
/**
* This method returns a List of the current requests that are in mem.
* This is a readonly list.
- *
+ *
* @return Collection of the current requests
*/
public abstract List getRequests();
-
-
+
+
/**
* @return Collection of live Sessions Data
*/
public SessionData[] getLiveSessions();
-
+
/**
- * @return The current active requests
+ * @return The current active requests
*/
public int getCurrentActiveRequestCount();
/**
- * called when the session is created and has an id.
+ * called when the session is created and has an id.
* (for http it means that the http session is created)
- *
+ *
* @param id the session id
*/
public abstract void sessionCreated(String id);
@@ -73,51 +73,51 @@
/**
* Method used to cleanup a livesession when the session was
* invalidated by the webcontainer
- *
+ *
* @param sessionId the session id
*/
public abstract void sessionDestroyed(String sessionId);
/**
* This method is called when the request is over. This will
- * set the total time a request takes and cleans up the current
+ * set the total time a request takes and cleans up the current
* request data.
- *
- * @param timeTaken the time taken in millisecs
+ *
+ * @param timeTaken the time taken in milliseconds
*/
public abstract void requestTime(long timeTaken);
/**
* Called to monitor removals of objects out of the {@link ISessionStore}
- *
+ *
* @param value the object being removed
*/
public abstract void objectRemoved(Object value);
/**
* Called to monitor updates of objects in the {@link ISessionStore}
- *
+ *
* @param value the object being updated
*/
public abstract void objectUpdated(Object value);
/**
* Called to monitor additions of objects in the {@link ISessionStore}
- *
+ *
* @param value the object being created/added
*/
public abstract void objectCreated(Object value);
/**
* Sets the target that was the response target for the current request
- *
+ *
* @param target the response target
*/
public abstract void logResponseTarget(IRequestTarget target);
/**
* Sets the target that was the event target for the current request
- *
+ *
* @param target the event target
*/
public abstract void logEventTarget(IRequestTarget target);
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IgnoreAjaxRequestException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IgnoreAjaxRequestException.java?rev=584893&r1=584892&r2=584893&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IgnoreAjaxRequestException.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/IgnoreAjaxRequestException.java Mon Oct 15 13:18:27 2007
@@ -19,7 +19,7 @@
import org.apache.wicket.Session;
/**
- * This exeption is thrown in {@link Session} class when an Ajax requests attempts
+ * This exception is thrown in {@link Session} class when an Ajax requests attempts
* to get a lock on pagemap while a regular request is processing the same page.
* <p>
* @author Matej Knopp