UserList.xhtml as generated:

  | <!DOCTYPE composition 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:s="http://jboss.com/products/seam/taglib";
  |                 xmlns:ui="http://java.sun.com/jsf/facelets";
  |                 xmlns:f="http://java.sun.com/jsf/core";
  |                 xmlns:h="http://java.sun.com/jsf/html";
  |                 xmlns:a="http://richfaces.org/a4j";
  |                 xmlns:rich="http://richfaces.org/rich";
  |                 template="/layout/template.xhtml">
  |                        
  | <ui:define name="body">
  |     
  |     <h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
  |     
  |     <h:form id="userSearch" styleClass="edit">
  |     
  |         <rich:simpleTogglePanel label="User search parameters" 
switchType="ajax">
  |         
  |             <s:decorate template="/layout/display.xhtml">
  |                 <ui:define name="label">username</ui:define>
  |                 <h:inputText id="username" 
value="#{userList.user.username}"/>
  |             </s:decorate>
  |          
  |             <s:decorate template="/layout/display.xhtml">
  |                 <ui:define name="label">email</ui:define>
  |                 <h:inputText id="email" value="#{userList.user.email}"/>
  |             </s:decorate>
  |                                 
  |         </rich:simpleTogglePanel>
  |         
  |         <div class="actionButtons">
  |             <h:commandButton id="search" value="Search" 
action="/system/UserList.xhtml"/>
  |         </div>
  |         
  |     </h:form>
  | 
  | <------SNIP------>
  | 


template (template.xhtml):

  | <!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";
  |       xmlns:s="http://jboss.com/products/seam/taglib";>
  | <head>
  |     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  |     <title>MyTitle</title>
  |     <link 
href="#{facesContext.externalContext.requestContextPath}/stylesheet/theme.css" 
rel="stylesheet" type="text/css" />
  | </head>
  | 
  | <body>
  |     <div class="header">
  |        <ui:include src="hmenu.xhtml">
  |             <ui:param name="projectName" value="MyProject"/>
  |         </ui:include>
  |     </div>
  |     <div class="menu">
  |         <ui:include src="vmenu.xhtml"/>
  |     </div>
  |     <div class="content">
  |             <ui:insert name="body"/>
  |     </div>
  | 
  |     <div class="footer">
  |             Powered by <a href="http://jboss.com/products/seam";>Seam</a>.
  |             Generated by seam-gen.
  |     </div>
  | 
  | </body>
  | </html>
  | 


Decoration (display.xhtml):

  | <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";>
  | 
  |     <div class="prop">
  |         <span class="name">
  |             <ui:insert name="label"/>
  |         </span>
  |         <span class="value">
  |             <ui:insert/>
  |         </span>
  |     </div>
  | 
  | </ui:composition>
  | 

I'm totally stuck, so I'm glad you want to take a look at it.....

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

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

Reply via email to