What do I need the beanmodel for? I mean, the boolean checkbox is already
displayed, as well as the property that I want to hide by checking the box.
Both fields are in the same object.
Can I apply conditions somehow on a object??
Is there any example that I did not find yet?
At the moment I could just imagine something like this in tml file:
<t:zone t:id="myform" id="myform">
<t:beanEditor object="object">
<p:propertyCell><t:if
test="!object.flag">${object.name}</t:if><p:propertyCell>
<p:flagCell><t:checkbox value="object.flag"
zone="myform"/></t:if><p:flagCell>
</t:beanEditor>
</t:zone>
Is that overcomplicating things? Are there better approaches?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Show-and-hide-fields-based-on-boolean-dynamic-property-tp5717668p5717687.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]