You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ralph Churchill <mr...@yahoo.com> on 2004/04/23 21:52:51 UTC

component parameter to set property

Is there an *easy* way to use a custom component's
parameters as a propertys? Or to set properties? e.g.

CustomComponent.jwc
<component-specification ...
    <parameter name="foo" type="String"/>
    <property-specification name="foo" type="String"/>

CustomComponent.html
<p><span jwcid="@Insert" value="ognl:foo"/></p>

UsesComponent.html

<span jwcid="CustomComponent" foo="Some Text"/>

And have the parameter, foo, set the property foo? 

RMC 


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash

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


Re: component parameter to set property

Posted by Harish Krishnaswamy <hk...@comcast.net>.
A parameter is actually a property in the component, so you could simply 
do the following:

CustomComponent.jwc
<component-specification ...
    <parameter name="foo" type="String"/>

CustomComponent.html
<p><span jwcid="@Insert" value="ognl:foo"/></p>

-Harish

Ralph Churchill wrote:

>Is there an *easy* way to use a custom component's
>parameters as a propertys? Or to set properties? e.g.
>
>CustomComponent.jwc
><component-specification ...
>    <parameter name="foo" type="String"/>
>    <property-specification name="foo" type="String"/>
>
>CustomComponent.html
><p><span jwcid="@Insert" value="ognl:foo"/></p>
>
>UsesComponent.html
>
><span jwcid="CustomComponent" foo="Some Text"/>
>
>And have the parameter, foo, set the property foo? 
>
>RMC 
>
>
>	
>		
>__________________________________
>Do you Yahoo!?
>Yahoo! Photos: High-quality 4x6 digital prints for 25¢
>http://photos.yahoo.com/ph/print_splash
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>  
>

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