Ok, here we go then

  |  
  | <!-- <?xml version="1.0" encoding="UTF-8"?> -->
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <ui:composition xmlns="http://www.w3.org/1999/xhtml";
  |                 xmlns:ui="http://java.sun.com/jsf/facelets";
  |                 xmlns:h="http://java.sun.com/jsf/html";
  |                 xmlns:f="http://java.sun.com/jsf/core";
  |                 xmlns:s="http://jboss.com/products/seam/taglib";
  |                 xmlns:a="https://ajax4jsf.dev.java.net/ajax";
  |                 xmlns:si="http://jboss.com/products/seam/selectitems/taglib";
  |                 template="../templates/marketingLayout.xhtml">
  |     
  |     
  |     <ui:define name="title">TradeWinds - New stand</ui:define>
  |     
  |     <ui:define name="sidebar">
  |         <p>
  |             This the stand configuration panel.
  |       </p>
  |     </ui:define>
  |     <ui:define name="links">
  |             <p>
  |                 <h3> Click Save to persist your changes or Cancel to 
return</h3>
  |             </p>
  |     </ui:define>
  |     <ui:define name="content">        
  |         <h:form id="standNewForm">                        
  |             <fieldset>
  |                     <s:validateAll>
  |                         <div class="entry">
  |                             <div class="label"><h:outputLabel for="code" 
value="Code"/></div>
  |                             <div class="input">
  |                                 <s:decorate>
  |                                     <h:inputText id="code" 
value="#{standManger.objectTitle}">                                         
  |                                         <a:support event="onblur" 
actionListener="#{standManager.checkTitle}" reRender="titleErrors"/>
  |                                      </h:inputText>                         
                                                   
  |                                      <br/>
  |                                      <a:outputPanel 
id="titleErrors"><h:outputText value="#{standManager.message}" 
rendered="#{standManager.message != null}"/></a:outputPanel>
  |                                 </s:decorate>
  |                             </div>
  |                         </div>
  |                         <div class="entry">
  |                             <div class="label"><h:outputLabel 
for="description" value="Description"/></div>                             
  |                                 <div class="input">
  |                                         <h:inputText id="description" 
value="#{stand.description}"/>                                        
  |                                         <br/>
  |                                 </div>                            
  |                         </div>                                              
                          
  |                         <div class="entry">
  |                             <div class="label"><h:outputLabel 
for="pavilion" value="Pavilion "/></div>                             
  |                            <div class="input">                              
      
  |                                         <h:selectOneMenu id="pavilion" 
value="#{stand.pavilion}" required="true">
  |                                             <si:selectItems 
value="#{pavilionList}" var="pav" label="#{pav.title}"/>               
  |                                         </h:selectOneMenu>                  
                  
  |                                         <br/>                               
         
  |                                 </div>     
  |                         </div> 
  |                         <div class="entry">
  |                             <div class="label"><h:outputLabel for="type" 
value="Stand type"/></div>                             
  |                                 <div class="input">                         
           
  |                                         <h:selectOneMenu id="type" 
value="#{stand.standType}" required="true">
  |                                             <si:selectItems 
value="#{standTypeList}" var="type" label="#{type.title}"/>
  |                                         </h:selectOneMenu>                  
                  
  |                                         <br/>                               
                                             
  |                                 </div>                            
  |                         </div>             
  |                      </s:validateAll>
  |                     
  |                      <div class="entry errors">
  |                     <h:messages globalOnly="true"/>
  |                      </div>
  |                      
  |                      <div class="entry">                         
  |                          <div class="label"> </div>
  |                          
  |                          <div class="input">
  |                              <h:commandButton id="save" 
action="#{standManager.saveObject}" value="Save"/>
  |                               
  |                              <h:commandButton id="cancel" immediate="true" 
action="#{standManager.cancel}" value="Cancel"/>                                
    
  |                          </div>
  |                      </div>
  |             </fieldset>
  |         </h:form>
  |         
  |     </ui:define>
  | </ui:composition>
  | 
  | 

the template it references is as ff:


  | <!-- <?xml version="1.0" encoding="UTF-8"?> -->
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <html xmlns="http://www.w3.org/1999/xhtml";
  |       xmlns:ui="http://java.sun.com/jsf/facelets";
  |       xmlns:h="http://java.sun.com/jsf/html";
  |       xmlns:f="http://java.sun.com/jsf/core";>
  |     <head>
  |         <title><ui:insert name="title">GTFC - TradeWinds</ui:insert></title>
  |         <link rel="stylesheet" type="text/css" href="../../css/styles.css"/>
  |     </head>
  |     <body>
  |         <div id="document">               
  |                 <div id="container">
  |                     <div id="sidebar">
  |                              <ui:insert name="sidebar" >
  |                                 <ui:include src="marketingSidebar.xhtml"/>
  |                              </ui:insert>
  |                     </div>
  |                 
  |                     <div id="content">   
  |                         <script language="JavaScript" 
src="../../js/datePicker.js"/>                        
  |                              
  |                         <div class="section">
  |                             <ui:insert name="links" >
  |                                 <ui:include src="marketingLinks.xhtml"/>
  |                              </ui:insert>                                   
      
  |                             <br/>
  |                             <br/>
  |                             <ui:insert name="content">                      
                                          
  |                                 <ui:include src="content.xhtml"/>  
  |                             </ui:insert>         
  |                         </div>
  |                     </div>
  |                 </div>
  |                 <div id="footer">
  |                       <ui:insert name="footer">
  |                             <ui:include src="footer.xhtml"/>  
  |                       </ui:insert>
  |                 </div>
  |         </div>
  |     </body>
  | </html>
  | 
  | 
  | 

Hope it helps.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009066#4009066

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009066
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to