CVS: Tapestry/examples/Tutorial/context/portal Stocks.html,NONE,1.1.2.1 Weather.html,NONE,1.1.2.1 .cvsignore,NONE,1.1.2.1 Home.html,NONE,1.1.2.1 Slashdot.html,NONE,1.1.2.1
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/Tapestry/examples/Tutorial/context/portal
In directory sc8-pr-cvs1:/tmp/cvs-serv10583/examples/Tutorial/context/portal
Added Files:
Tag: hship-2-3
Stocks.html Weather.html .cvsignore Home.html Slashdot.html
Log Message:
Reorganize the tutorials to use new 2.4 features.
--- NEW FILE: Stocks.html ---
<span jwcid="content@Block">
<table class="portlet-content">
<tr> <th>Stock</th> <th>Price</th> <th>Change</th></tr>
<tr jwcid="e">
<td align=right><span jwcid="@Insert" value="[[ stock.tickerId ]]">PMIX</span></td>
<td align=right><span jwcid="@Insert" value="[[ stock.price ]]">0.27</span></td>
<td align=right><span jwcid="@Insert" value="[[ stock.change ]]">+ 0.02</span></td>
</tr>
</table>
<hr>
<span jwcid="@ShowError" delegate="[[ beans.delegate ]]"/>
<form jwcid="form">
<input jwcid="inputTickerId"/> <input type=submit value="Add"/>
</form>
<p>Note: these values are <em>entirely made up</em> for demonstration
purposes.
</span>
--- NEW FILE: Weather.html ---
<span jwcid="content@Block">
<a href="#" jwcid="weekday">Weekday Weather</a>
|
<a href="#" jwcid="weekend">Weekend Weather</a>
<p>
<span jwcid="@Insert" value="[[ forecast ]]">Forecast</span>
</span>
--- NEW FILE: .cvsignore ---
*.jbf
--- NEW FILE: Home.html ---
<span jwcid="@Border">
<table border="0">
<tr valign="top">
<td>
<h1>Tapestry tutorial: Simulated Portal</h1>
<p>This tutorial shows how to build a data-driven Portal application using Tapestry.</p>
<p>At the bottom of the page is a drop down list for adding new content to this page.</p>
<p>The content is provided by other pages within the application. However, the content
doesn't have to be simple HTML ... it can be Tapestry components, even forms and links.
<p>Each "Portlet" can be maximized (showing its content)
or minimized (showing just its title) independently, using the bar/box icon in the
upper right corner. To remove a Portlet
from the page, just click its close button (the red X).</p>
<p>Don't forget to click the inspector (at the bottom of the page) to see how
this application is constructed!</p>
</td>
<td>
<span jwcid="e">
<p><span jwcid="portlet"/></p>
</span>
</td>
</table>
<span jwcid="@Conditional" condition="[[ visit.maySelectPortlet ]]">
<hr/>
<p>Add another portlet:
<form jwcid="@Form" listener="[[ listeners.addModel ]]">
<select jwcid="selectPortlet"/>
<input type=submit value="Add"/>
</form>
</p>
</span>
</span>
--- NEW FILE: Slashdot.html ---
<span jwcid="content@Block">
<table class="portlet-content">
<tr>
<th>Headline</th> <th>Author</th> <th>Date</th>
</tr>
<tr jwcid="e">
<td>
<a jwcid="link"><span jwcid="@Insert" value="[[ story.title ]]">Headling</span></a>
</td>
<td><span jwcid="@Insert" value="[[ story.author ]]">Author</span></td>
<td nowrap><span jwcid="@Insert" value="[[ story.date ]]">Jan 1 2001</span></td>
</tr>
</table>
</span>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf