|
From: <tri...@us...> - 2008-12-28 12:37:16
|
Revision: 932
http://equanda.svn.sourceforge.net/equanda/?rev=932&view=rev
Author: triathlon98
Date: 2008-12-28 12:37:12 +0000 (Sun, 28 Dec 2008)
Log Message:
-----------
fixes in JSPagedLoop demo
Modified Paths:
--------------
t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java
t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml
Modified: t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java
===================================================================
--- t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java 2008-12-28 11:45:34 UTC (rev 931)
+++ t5-equanda-example/src/main/java/org/equanda/example/t5/pages/Start.java 2008-12-28 12:37:12 UTC (rev 932)
@@ -94,25 +94,26 @@
return n;
}
+ void onActivate()
+ {
+ list = new ArrayList<String>();
+ list.add( "We" );
+ list.add( "need" );
+ list.add( "a" );
+ list.add( "long" );
+ list.add( "list" );
+ list.add( "of" );
+ list.add( "items" );
+ list.add( "to" );
+ list.add( "show" );
+ list.add( "the" );
+ list.add( "paging" );
+ list.add( "in" );
+ list.add( "action." );
+ }
+
public List<String> getList()
{
- if ( null == list )
- {
- list = new ArrayList<String>();
- list.add( "We" );
- list.add( "need" );
- list.add( "a" );
- list.add( "long" );
- list.add( "list" );
- list.add( "of" );
- list.add( "items" );
- list.add( "to" );
- list.add( "show" );
- list.add( "the" );
- list.add( "paging" );
- list.add( "in" );
- list.add( "action." );
- }
return list;
}
Modified: t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml
===================================================================
--- t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml 2008-12-28 11:45:34 UTC (rev 931)
+++ t5-equanda-example/src/main/resources/org/equanda/example/t5/pages/Start.tml 2008-12-28 12:37:12 UTC (rev 932)
@@ -104,27 +104,13 @@
fully handled client side.</p>
<br/>
- <t:form>
- <div t:type="equanda/JSPagedLoop" source="list" current="current">
- <p>${current}</p>
- </div>
+ <t:form autofocus="false">
+ <ul>
+ <div t:type="equanda/JSPagedLoop" source="list" value="current" addRowLinkTitle="Add" >
+ <li>${current}</li>
+ </div>
+ </ul>
</t:form>
</t:parameter>
</span>
-
- <!--
- <p>another tab</p>
- <span t:type="equanda/Tabs" t:id="tristabs">
- <t:parameter name="contentAll"><p>This content is repeated on all tabs.</p></t:parameter>
- <t:parameter name="titleIcon"><img src="${smiley}"/></t:parameter>
- <t:parameter name="title1">Page 1</t:parameter>
- <t:parameter name="content1">
- <p>This is the first tab page of the second tab component.</p>
- </t:parameter>
- <t:parameter name="title2">Page 2</t:parameter>
- <t:parameter name="content2">
- <p>And when there is one, there should also be a second, otherwise there would be little use having a tab page.</p>
- </t:parameter>
- </span>
- -->
</t:layout>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|