CVS: Tapestry/examples/Tutorial/context/WEB-INF/portal Portlet.html,NONE,1.1.2.1 Border.html,NONE,1.1.2.1 portal.application,NONE,1.1.2.1 ShowError.html,NONE,1.1.2.1 Slashdot.page,NONE,1.1.2.1 Border.jwc,NONE,1.1.2.1 ShowError.jwc,NONE,1.1.2.1 Home.page,NONE,1.1.2.1 Weather.page,NONE,1.1.2.1 Portlet.jwc,NONE,1.1.2.1 Stocks.page,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/WEB-INF/portal
In directory sc8-pr-cvs1:/tmp/cvs-serv10583/examples/Tutorial/context/WEB-INF/portal

Added Files:
      Tag: hship-2-3
	Portlet.html Border.html portal.application ShowError.html 
	Slashdot.page Border.jwc ShowError.jwc Home.page Weather.page 
	Portlet.jwc Stocks.page 
Log Message:
Reorganize the tutorials to use new 2.4 features.

--- NEW FILE: Portlet.html ---

<table class="portlet" border=0 cellpadding=0 cellspacing=0>
  <colgroup>
    <col width="13">
    <col width="450px"/>
    <col width="15">
   </colgroup>
    <tr valign="top">
        <td colspan="3">
            <table class="portlet" border=0 cellpadding=0 cellspacing=0 width=100%>
                <tr valign="top">
                    <td width="13" height="13"><IMG height=13 src="images/ul.gif" width=13></td>
                    <td class="frame-um"><IMG height=1 src="images/shim.gif" width=1></td>
                    <td rowspan="2" width="41" height="33"><a jwcid="changeState"><img jwcid="changeStateButton" width="41" height="33"/></a></td>
                    <td rowspan="2" width="39" height="33"><a jwcid="close"><img jwcid="closeButton" width="39" height="33" alt="[Close]"/></a></td>
                </tr>
                <tr valign="top">
                    <td width="13" background="images/ls.gif"><IMG height=1 src="images/shim.gif" width=1></td>
                    <td class="title"><span jwcid="@Insert" value="[[ model.title ]]"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
  
    <tr valign="top">
        <td width="13" background="images/ls.gif"><IMG height=1 src="images/shim.gif"width=1></td>
        <td class="body">

<span jwcid="@RenderBlock" block="[[ bodyBlock ]]">
Content provided by Portal Channel.
</span>

        </td>
        <td width="15" background="images/rs.gif"><IMG height=1 src="images/shim.gif"width=1></td>
    </tr>
    <tr valign="top">
        <td width="13" height="13"><IMG height=13 src="images/ll.gif" width=13></td>
        <td height="13" background="images/lm.gif"><IMG height=1 src="images/shim.gif" width=1></td>
        <td width="15" height="13"><IMG height=13 src="images/lr.gif" width=15></td>
    </tr>
</table>


--- NEW FILE: Border.html ---
<html jwcid="@Shell" title="Portlet Tutorial">

<style>

TABLE.portlet  {
  border: 0px;
  spacing: 0px;
  padding: 0px;
}

TABLE.portlet TD.body {
  color: yellow;
  background-color: #989898;
  padding-left: 2px
}

TABLE.portlet TD.frame-um
{
  width: 13px;
  background-image: url(images/um.gif);
}

TD.body A.selected {
  color: #989898;
  background-color: yellow;
  font-weight: bold;
}

TABLE.portlet-content
{
  font-size: smaller;
}

TABLE.portlet-content TH
{
    color: #989898;
    background-color: yellow;
    text-align: center;
}

TABLE.portlet-content TR.even
{
  background-color: silver;
}

TD.title {
  color: yellow;
  background-color: #989898;
  font-weight: bold;
  padding-left: 2px;
}

</style>

<body jwcid="@Body">

<span jwcid="@RenderBody"/>

<hr>

<span jwcid="@contrib:InspectorButton"/>

</body>
</html>

--- NEW FILE: portal.application ---
<?xml version="1.0"?>
<!--$Id: portal.application,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $-->
<!DOCTYPE application PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

<application name="Portal Tutorial">

  <property name="net.sf.tapestry.visit-class" value="tutorial.portal.Visit"/>
  
  <library id="contrib" specification-path="/net/sf/tapestry/contrib/Contrib.library"/>
 
</application>

--- NEW FILE: ShowError.html ---
<!-- $Id: ShowError.html,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->

<span jwcid="@Conditional" condition="[[ bindings.delegate.object.hasErrors ]]">

<table class="inputerror">
<tr valign=top>
 <td><img src="images/Warning.gif" width=42 height=41></td>
 <td class="message">
  <span jwcid="@Delegator" delegate="[[ bindings.delegate.object.firstError ]]">Error message goes here.</span>
  </td>
</tr>
</table>

</span>

--- NEW FILE: Slashdot.page ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Slashdot.page,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE page-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">
    
<page-specification class="tutorial.portal.Slashdot">

<bean name="rowClass" class="net.sf.tapestry.bean.EvenOdd"/>

<component id="e" type="Foreach">
    <binding name="source" expression="stories"/>
    <binding name="value" expression="story"/>
    <static-binding name="element" value="tr"/>
    <binding name="class" expression="beans.rowClass.next"/>
</component>

<component id="link" type="Any">
    <static-binding name="element" value="a"/>
    <binding name="href" expression="story.URL"/>
</component>
  
</page-specification>

--- NEW FILE: Border.jwc ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Border.jwc,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

<component-specification
  allow-informal-parameters="no"/>
--- NEW FILE: ShowError.jwc ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: ShowError.jwc,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN"
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">
	
<component-specification 
  allow-informal-parameters="no" allow-body="no">
  
  <parameter name="delegate" java-type="net.sf.tapestry.valid.IValidationDelegate" 
  	required="yes"/>
  
  <component id="ifError" type="Conditional">
    <binding name="condition" expression="bindings.delegate.object.hasErrors"/>
  </component>
  
  <component id="insertError"  type="Delegator">
     <binding name="delegate" expression="bindings.delegate.object.firstError"/>
  </component>
  
</component-specification>

--- NEW FILE: Home.page ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Home.page,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE page-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

	
<page-specification class="tutorial.portal.Home">

<component id="e" type="Foreach">
  <binding name="source" expression="visit.models"/>
  <binding name="value" expression="model"/>
</component>

<component id="portlet" type="Portlet">
	<binding name="model" expression="model"/>
	<binding name="closeListener" expression="listeners.closeModel"/>
</component>


<component id="selectPortlet" type="PropertySelection">
  <binding name="value" expression="newPortletId"/>
  <binding name="model" expression="visit.portletSelectionModel"/>
</component>

</page-specification>

--- NEW FILE: Weather.page ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Weather.page,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE page-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

	
<page-specification class="tutorial.portal.Weather">

<component id="weekday" type="DirectLink">
  <binding name="listener" expression="listeners.selectWeekday"/>
  <binding name="class" expression="weekdayClass"/>
  <static-binding name="parameters" value="0"/>
</component>

<component id="weekend" type="DirectLink">
  <binding name="listener" expression="listeners.selectWeekend"/>
  <binding name="class" expression="weekendClass"/>
  <static-binding name="parameters" value="1"/>
</component>
	
</page-specification>

--- NEW FILE: Portlet.jwc ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Portlet.jwc,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

	
<component-specification 
	class="tutorial.portal.Portlet" 
	allow-body="no" 
	allow-informal-parameters="no">

<parameter name="model" 
	required="yes" 
	java-type="tutorial.portal.PortletModel"
	direction="in"/>

<parameter name="closeListener" required="yes" java-type="net.sf.tapestry.IActionListener">
	<description>
		A listener notified when the close box is clicked by the user.
	</description>
</parameter>

<component id="changeState" type="ActionLink">
	<binding name="listener" expression="listeners.changeState"/>
</component>

<component id="changeStateButton" type="Rollover">
	<binding name="image" expression="changeStateImage"/>
	<binding name="focus" expression="changeStateFocus"/>
	<binding name="alt" expression="changeStateLabel"/>
</component>

<component id="close" type="ActionLink">
	<inherited-binding name="listener" parameter-name="closeListener"/>
</component>

<component id="closeButton" type="Rollover">
	<binding name="image" expression="assets.close"/>
	<binding name="focus" expression="assets.closeFocus"/>
</component>

<context-asset name="minimize" path="images/minimize.gif"/>
<context-asset name="minimizeFocus" path="images/minimize-focus.gif"/>
<context-asset name="maximize" path="images/maximize.gif"/>
<context-asset name="maximizeFocus" path="images/maximize-focus.gif"/>
<context-asset name="close" path="images/close.gif"/>
<context-asset name="closeFocus" path="images/close-focus.gif"/>

</component-specification>


--- NEW FILE: Stocks.page ---
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Stocks.page,v 1.1.2.1 2003/01/02 03:15:24 hship Exp $ -->
<!DOCTYPE page-specification PUBLIC 
	"-//Howard Lewis Ship//Tapestry Specification 1.4//EN" 
	"http://tapestry.sf.net/dtd/Tapestry_1_4.dtd">

    
<page-specification class="tutorial.portal.Stocks">

<bean name="delegate" class="net.sf.tapestry.valid.ValidationDelegate"/>
    
<bean name="rowClass" class="net.sf.tapestry.bean.EvenOdd"/>

<component id="e" type="Foreach">
  <binding name="source" expression="stocks"/>
  <binding name="value" expression="stock"/>
  <static-binding name="element" value="tr"/>
  <binding name="class" expression="beans.rowClass.next"/>
</component>

<component id="form" type="Form">
  <binding name="listener" expression="listeners.addStock"/>
  <binding name="direct" expression="false"/>
  <binding name="delegate" expression="beans.delegate"/>
</component>

<component id="inputTickerId" type="ValidField">
  <binding name="value" expression="tickerId"/>
  <static-binding name="displayName" value="Ticker ID"/>
  <binding name="validator" expression="@net.sf.tapestry.valid.StringValidator@REQUIRED"/>
  <static-binding name="displayWidth" value="4"/>
  <static-binding name="maximumLength" value="4"/>
  <static-binding name="title">
    For this demo, valid stocks are:
    PMIX, MSFT, SUN
  </static-binding>
</component>

</page-specification>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.