Soytenly!

  | 
  | <[EMAIL PROTECTED] contentType="text/html"%>
  | <[EMAIL PROTECTED] pageEncoding="UTF-8"%>
  | <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%> 
  | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> 
  | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
  | 
  | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  |    "http://www.w3.org/TR/html4/loose.dtd";>
  | 
  | <html> 
  |     <f:view>
  |         <f:loadBundle basename="messages" var="msg"/>
  |         <head>
  |             <link href="style.css" rel="stylesheet" type="text/css"/>
  |             <meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8">
  |             <title><h:outputText 
value="#{msg.searchAnimalsLikeName}"/></title>
  |         </head>
  |         <body> 
  |             <h:form>
  |                 <[EMAIL PROTECTED] file="../menu.jsp"%>
  |                 <h:panelGrid columns="4">
  |                     <h:outputLabel value="#{msg.name}"/>
  |                     <h:inputText id="name" 
value="#{findAnimalsLikeNameBean.name}"/>
  |                     <h:message for="name"/>
  |                     <h:commandButton 
action="#{findAnimalsLikeNameBean.execute}" value="#{msg.search}"/>
  |                 </h:panelGrid>
  |                 <h:dataTable value="#{findAnimalsLikeNameBean.animalList}" 
  |                     var="animal" 
  |                     styleClass="dataTable"
  |                     headerClass="headerFacet"
  |                     rowClasses="evenRow, oddRow">
  |                     <h:column>
  |                         <f:facet name="header"> 
  |                             <h:outputText value="#{msg.name}"/> 
  |                         </f:facet>
  |                         <h:outputText value="#{animal.name}"/>
  |                     </h:column>
  |                     <h:column>
  |                         <f:facet name="header">
  |                             <h:outputText value="#{msg.sex}"/>
  |                         </f:facet>
  |                         <h:outputText value="#{animal.sex}"/>
  |                     </h:column>
  |                     <h:column>
  |                         <f:facet name="header">
  |                             <h:outputText value="#{msg.length}"/>
  |                         </f:facet>
  |                         <h:outputText value="#{animal.length}">
  |                             <f:convertNumber type="number"/>
  |                         </h:outputText>
  |                     </h:column>
  |                     <h:column>
  |                         <f:facet name="header">
  |                             <h:outputText value="#{msg.width}"/>
  |                         </f:facet>
  |                         <h:outputText value="#{animal.width}">
  |                             <f:convertNumber type="number"/>
  |                         </h:outputText>
  |                     </h:column>
  |                     <h:column>
  |                         <f:facet name="header">
  |                             <h:outputText value="#{msg.height}"/>
  |                         </f:facet>
  |                         <h:outputText value="#{animal.height}">
  |                             <f:convertNumber type="number"/>
  |                         </h:outputText>
  |                     </h:column>
  |                     <h:column>
  |                         <f:facet name="header">
  |                             <h:outputText value="#{msg.weight}"/>
  |                         </f:facet>
  |                         <h:outputText value="#{animal.weight}">
  |                             <f:convertNumber type="number"/>
  |                         </h:outputText>
  |                     </h:column>
  |                     <h:column>
  |                         <h:commandLink 
action="#{findAnimalsLikeNameBean.select}" value="#{msg.select}"/>
  |                     </h:column>
  |                 </h:dataTable>
  |             </h:form>
  |         </body>
  |     </f:view> 
  | </html>
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954141

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to