| <html t:type="Border" |
| xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> |
| <h1>Form Fragment Demo</h1> |
| |
| <form t:id="form"> |
| |
| <t:errors/> |
| |
| <div class="t-beaneditor"> |
| |
| <div class="t-beaneditor-row"> |
| <t:label for="name"/> |
| <t:textfield t:id="name" value="subscribe.name"/> |
| </div> |
| |
| <t:checkbox t:id="subscribeToEmail" t:mixins="triggerfragment" fragment="showEmail"/> |
| <t:label for="subscribeToEmail">Subscribe to Email?</t:label> |
| |
| <t:formfragment t:id="showEmail" visible="subscribeToEmail" hide="fade"> |
| <div class="t-beaneditor-row"> |
| <t:label for="email"/> |
| <t:textfield t:id="email" value="subscribe.email"/> |
| </div> |
| </t:formfragment> |
| |
| |
| <br/> |
| |
| <t:radiogroup value="codeVisible"> |
| <t:radio t:id="on" label="On" value="true" t:mixins="triggerfragment" fragment="codeFragment"/> |
| <t:label for="on"/> |
| <t:radio t:id="off" label="Off" value="false"/> |
| <t:label for="off"/> |
| </t:radiogroup> |
| |
| |
| <t:formfragment t:id="codeFragment" visible="codeVisible"> |
| <div class="t-beaneditor-row"> |
| <t:label for="code"/> |
| <t:textfield t:id="code" value="subscribe.code"/> |
| </div> |
| </t:formfragment> |
| |
| |
| <div class="t-beaneditor-row"> |
| <input type="submit" value="Subscribe"/> |
| </div> |
| |
| </div> |
| |
| |
| <p> |
| <t:actionlink t:id="clear">Clear</t:actionlink> |
| </p> |
| |
| </form> |
| </html> |