I modeled a thing called BROADCAST. And my page for BROADCAST is as follows...

BroadcastAdd.tml

Here that is..,.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<t:layout title="title" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"; 
xmlns:p="tapestry:parameter">
    <p:subMenuBlock>
        <ul>
            <ul id="local">
            </ul>
        </ul>
    </p:subMenuBlock>
    <p:navBlock>
        <a style="font-weight:bolder;margin-left:10px" t:type="PageLink" 
page="List" context="beanType">${listAllLinkMessage}</a>
    </p:navBlock>

    <h1>${title}</h1>

     <t:alerts/>

    <br/>

    <t:form clientValidation="true" validate="bean">
        <t:errors/>

        <div class="t-beaneditor">
        
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor" 
beanmodeladvisor.key="add">

                <p:message>
                    <t:label for="message">MESSAGE</t:label> -->                
        
                    <t:textarea t:id="message" value="bean.message" />
                </p:message>                
            </t:beaneditor>        
            
            <br/>
            <div class="t-beaneditor-row">
                <t:submit t:id="saveAndStay" event="stay" class="button" 
value="${message:org.tynamo.i18n.apply}"/>
                <t:submit t:id="saveAndReturn" event="return" class="button" 
value="${message:org.tynamo.i18n.send}"/>
                &nbsp; or &nbsp;
                <t:eventlink class="button" style="color:red; 
font-weight:bold;" t:id="cancel">
                    ${message:org.tynamo.i18n.cancel}
                </t:eventlink>
            </div>
        </div>
    </t:form>

</t:layout>
                                          

Reply via email to