Hello,
I am using tapestry-bootstrap with a BeanEditForm. For a select field
which should only be displayed after a special event, I added this code:
<p:value>
<t:zone t:id="substanceTypeZone" t:visible="show"
t:update="show">
<t:if test="valueAvailable">
<t:label for="valueSelect"
class="control-label">Value</t:label>
<t:select t:id="valueSelect"
value="value"
model="valueModel"
encoder="valueEncoder"
blankOption="ALWAYS"
blankLabel="Please select..."/>
</t:if>
</t:zone>
</p:value>
As defined in the zone, it should not be visible if "show" is false. The
logic works perfectly, but the layout is not what I expected. What is
missing is a div with the class "controls" which is added by
tapestry-bootstrap around the select field. Adding it manually to the
TML results in a garbled output when "show" is true, because then two
divs of this type exist.
Is this a problem with tapestry-bootstrap or my zone?
- Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]