|
I am trying to develop a component that will be the outermost
wrapper/container in a web-application design:
- ApplicationWrapper.jwc -
<specification class="_cwg$ais._JWC.ApplicationWrapper" allow-informal-parameters="no"> <parameter
name="title" java-type="String"
required="yes">
<description>Application Title</description> </parameter> <component
id="tapestryInsertWrapped" type="InsertWrapped" />
</specification>
- ApplicationWrapper.html -
<span
jwcid="tapestryInsertWrapped" />
- ApplicationWrapper.java -
package _cwg$ais._JWC ; import com.primix.tapestry.BaseComponent ; public class ApplicationWrapper extends com.primix.tapestry.BaseComponent { public java.util.Date
getDate () {
return ( new java.util.Date () ) ; } } And I am using this component in my "Home" page:
- Home.jwc -
<specification class="_cwg$ais.CWDED.editor.Home" > <!-- -->
<component
id="jwcApplicationWrapper" type="JWCApplicationWrapper"
>
<static-binding name="title">CWDED Editor</static-binding> </component> <component
id="jwcPageWrapper" type="JWCPageWrapper"
></component>
</specification> - Home.html -
<span jwcid="jwcApplicationWrapper"> <span jwcid="jwcPageWrapper"> CWDED
Editor
<!-- The problem --> <span jwcid="date">12-Nov-1999</span> <!-- --> </span> </span> - Home.java -
package _cwg$ais.CWDED.editor ; import com.primix.tapestry.BaseComponent ; public class Homeextends com.primix.tapestry.BaseComponent { } ApplicationWrapper defines a JavaBeans property (getDate)
right ?
What do I place in ApplicationWrapper.jwc and/or Home.jwc to
"bind" the property to the jwcid date ? Craig J. Gregory
Dir. of Information Srevices Blue Mountain Community College PO Box 100 2411 NW Carden Av. Pendleton, OR 97801 (541) 278-5825 |
- Re: [Tapestry-developer] Accessing Component Properti... Craig Gregory
- Re: [Tapestry-developer] Accessing Component Pro... Howard M. Lewis Ship
