You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joel Trunick <Jo...@SmartPrice.com> on 2003/06/09 17:52:11 UTC
Evaluating passed in parameter
In the .page file below, how do I get the passed in "value" parameter to
show up as OGNL evaluated in the inherited-binding (rather than a String)?
Is this simply a matter of changing the java-type?
It needs to be evaluated in the scope of this component, not of the
component passing it in.
Thanks,
Joel
<parameter
name="plans"
java-type="com.smartprice.data.longdistance.ComparedPlanDetails"
direction="custom"
required="yes"/>
<parameter
name="value"
java-type="java.lang.String"
direction="custom"
required="yes"/>
<component id="forPlan" type="Foreach">
<inherited-binding name="source" parameter-name="plans"/>
<binding name="value" expression='plan'/>
</component>
<component id="txtPlanInfo" type="Insert">
<static-binding name="raw">true</static-binding>
<inherited-binding name="value" parameter-name="value"/>
</component>