You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sa...@women-at-work.org on 2004/11/17 22:06:05 UTC

Confused with nested components and parameters 2

Hi there!

I am so confused about something really simple :-(

Within a component template I want to display a label:

// loginblock.jwc

<component-specification class="org.apache.tapestry.BaseComponent"
allow-body="yes" allow-informal-parameters="yes">
   <component id="loginBox" type="DottedBox">	
    <static-binding name="label" value="login.gif"/>
   </component>
 </component-specification>



And the DottedBox.html

// DottedBox.html
...
<img jwcid="@Any" src="ognl:label" border="0"/>
...


// DottedBox.jwc
<component-specification class="org.apache.tapestry.BaseComponent"
allow-body="yes" allow-informal-parameters="yes">
    <component id="wrapped" type="RenderBody"/>	
    <property-specification name="label" type="java.lang.String"/>
   </component>
</component-specification>


But all I get is <img border="0"/> instead of <img src="login.gif"
border="0"/> within the html :-(



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org