You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2007/05/30 16:24:05 UTC
svn commit: r542826 - in
/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin:
Index.html LazyLoadingPage.html LazyLoadingPage.java
Author: jcompagner
Date: Wed May 30 07:24:04 2007
New Revision: 542826
URL: http://svn.apache.org/viewvc?view=rev&rev=542826
Log:
lazy load panel
Added:
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html (with props)
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java (with props)
Modified:
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/Index.html
Modified: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/Index.html
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/Index.html?view=diff&rev=542826&r1=542825&r2=542826
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/Index.html (original)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/Index.html Wed May 30 07:24:04 2007
@@ -1,37 +1,39 @@
<wicket:extend>
<wicket:link>
-<a href="ClockPage.html">Clock Example</a>: demonstrates a self-updating component via AjaxSelfUpdatingTimerBehavior
-<br/><br/>
-<a href="WorldClockPage.html">World Clock Example</a>: demonstrates a single component with AjaxTimerBehavior updating multiple components
+<a href="AutoCompletePage.html">Auto-Complete TextField Example</a>: shows a textfield with auto complete drop down like google suggest
<br/><br/>
<a href="ChoicePage.html">Drop Down Choice Example</a>: demonstrates the linked select boxes usecase
<br/><br/>
-<a href="LinksPage.html">Links Example</a>: demonstrates ajax enabled links
+<a href="ClockPage.html">Clock Example</a>: demonstrates a self-updating component via AjaxSelfUpdatingTimerBehavior
<br/><br/>
-<a href="TabbedPanelPage.html">Tabbed Panel Example</a>: demonstrates ajax enabled tabbed panel
+<a href="EditableLabelPage.html">Editable Label Example</a>: shows a label that can be edited inline via ajax
<br/><br/>
<a href="EffectsPage.html">Effects Example</a>: shows how to link wicket component updates with scriptaculous effects
<br/><br/>
<a href="FormPage.html">Form Example</a>: shows ajax form processing
<br/><br/>
-<a href="PageablesPage.html">Pageables Example</a>: shows ajax paging
-<br/><br/>
-<a href="TodoList.html">Todo list Example</a>: shows ajax todo list page without writing any JavaScript
+<a href="GuestBook.html">Guest book Example</a>: shows how a simple commenting system can be turned into ajax extravaganza.
<br/><br/>
-<a href="EditableLabelPage.html">Editable Label Example</a>: shows a label that can be edited inline via ajax
+<a href="LazyLoadingPage.html">LazyLoading Example</a>: demonstrates lazy loading of components.
<br/><br/>
-<a href="GuestBook.html">Guest book Example</a>: shows how a simple commenting system can be turned into ajax extravaganza.
+<a href="LinksPage.html">Links Example</a>: demonstrates ajax enabled links
<br/><br/>
-<a href="AutoCompletePage.html">Auto-Complete TextField Example</a>: shows a textfield with auto complete drop down like google suggest
+<a href="modal/ModalWindowPage.html">Modal window</a>: javascript modal window example
<br/><br/>
<a href="OnChangeAjaxBehaviorPage.html">On Change Ajax Updater Example</a>: demonstrates updating page with ajax when text field value is changed
<br/><br/>
+<a href="PageablesPage.html">Pageables Example</a>: shows ajax paging
+<br/><br/>
<a href="RatingsPage.html">Ratings example</a>: shows a rating component.
<br/><br/>
<a href="tree/SimpleTreePage.html">Tree and TreeTable</a>: shows ajax tree and ajax tree table.
<br/><br/>
-<a href="modal/ModalWindowPage.html">Modal window</a>: javascript modal window example
+<a href="TabbedPanelPage.html">Tabbed Panel Example</a>: demonstrates ajax enabled tabbed panel
+<br/><br/>
+<a href="TodoList.html">Todo list Example</a>: shows ajax todo list page without writing any JavaScript
+<br/><br/>
+<a href="WorldClockPage.html">World Clock Example</a>: demonstrates a single component with AjaxTimerBehavior updating multiple components
</wicket:link>
</wicket:extend>
Added: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html?view=auto&rev=542826
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html (added)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html Wed May 30 07:24:04 2007
@@ -0,0 +1,11 @@
+<wicket:extend>
+
+This example demonstrates the AjaxLazyLoadingPanel
+It will lazy load a panel after the page is first fully rendered.
+So panels that can take a while too create can be lazy created
+by an ajax call after the page is rendered.
+
+<br/><br/>
+
+<div wicket:id="lazy"></div>
+</wicket:extend>
\ No newline at end of file
Propchange: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java?view=auto&rev=542826
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java (added)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java Wed May 30 07:24:04 2007
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.wicket.examples.ajax.builtin;
+
+import org.apache.wicket.Component;
+import org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel;
+import org.apache.wicket.markup.html.basic.Label;
+
+/**
+ * @author jcompagner
+ */
+public class LazyLoadingPage extends BasePage
+{
+ /**
+ * Construct.
+ */
+ public LazyLoadingPage()
+ {
+ add(new AjaxLazyLoadPanel("lazy"){
+
+ @Override
+ public Component getLazyLoadComponent(String id)
+ {
+ // sleep for 5 seconds to show the behavior
+ try
+ {
+ Thread.sleep(5000);
+ }
+ catch (InterruptedException e)
+ {
+ throw new RuntimeException(e);
+ }
+ return new Label(id,"Lazy Loaded after 5 seconds");
+ }
+
+ });
+ }
+}
Propchange: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/LazyLoadingPage.java
------------------------------------------------------------------------------
svn:eol-style = native