CVS: Tapestry/examples/Tutorial/context/WEB-INF/portal Weather.page,1.1.2.1,1.1.2.2 ShowError.jwc,1.1.2.1,1.1.2.2 Slashdot.page,1.1.2.1,1.1.2.2 Stocks.page,1.1.2.1,1.1.2.2
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-serv4860/examples/Tutorial/context/WEB-INF/portal
Modified Files:
Tag: hship-2-3
Weather.page ShowError.jwc Slashdot.page Stocks.page
Log Message:
Make more use of 2.4 features in examples.
Index: Weather.page
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/examples/Tutorial/context/WEB-INF/portal/Attic/Weather.page,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** Weather.page 2 Jan 2003 03:15:24 -0000 1.1.2.1
--- Weather.page 4 Jan 2003 19:31:56 -0000 1.1.2.2
***************
*** 8,22 ****
<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>
--- 8,22 ----
<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>
Index: ShowError.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/examples/Tutorial/context/WEB-INF/portal/Attic/ShowError.jwc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** ShowError.jwc 2 Jan 2003 03:15:24 -0000 1.1.2.1
--- ShowError.jwc 4 Jan 2003 19:31:57 -0000 1.1.2.2
***************
*** 10,21 ****
<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>
--- 10,13 ----
<parameter name="delegate" java-type="net.sf.tapestry.valid.IValidationDelegate"
required="yes"/>
!
</component-specification>
Index: Slashdot.page
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/examples/Tutorial/context/WEB-INF/portal/Attic/Slashdot.page,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** Slashdot.page 2 Jan 2003 03:15:24 -0000 1.1.2.1
--- Slashdot.page 4 Jan 2003 19:31:57 -0000 1.1.2.2
***************
*** 7,23 ****
<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>
--- 7,23 ----
<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>
Index: Stocks.page
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/examples/Tutorial/context/WEB-INF/portal/Attic/Stocks.page,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** Stocks.page 2 Jan 2003 03:15:24 -0000 1.1.2.1
--- Stocks.page 4 Jan 2003 19:31:57 -0000 1.1.2.2
***************
*** 8,39 ****
<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>
--- 8,39 ----
<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