[jboss-user] [JBoss Seam] - Re: JSF commandButton not rendering whole page

alex_enache do-not-reply at jboss.com
Wed Sep 12 06:34:21 EDT 2007


<?xml version="1.0"?>
  | <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
  | 	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="http://www.w3.org/1999/xhtml"
  | 	xmlns:pm="http://PMComponents.com"
  | 	version="2.0">
  | 	
  | <jsp:output doctype-root-element="html"
  | 	doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  | 	doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  | <jsp:directive.page contentType="text/html"/>
  | 
  | <html>
  | <head>
  | <title>Project Manager - Test2</title>
  | <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
  | <link rel="stylesheet" type="text/css" href="mootools.css"/>
  | <script type="text/javascript" src="mootools.js"></script>
  | <script type="text/javascript" src="site.js"></script>
  | </head>
  | <body>
  | 	<f:view>
  | 		<h:form id="createUser">
  | 			<h:panelGrid columns="3" styleClass="formText">
  | 				<h:outputLabel for="name">
  | 					<h:outputText value="Name:"/>
  | 				</h:outputLabel>
  | 				<h:inputText id="name" value="#{person.name}" required="true"/>
  | 				<h:message for="name"/>
  | 				<h:outputLabel for="age">
  | 					<h:outputText value="Age:"/>
  | 				</h:outputLabel>
  | 				<h:inputText id="age" value="#{person.age}" required="true"/>
  | 				<h:message for="age"/>
  | 				<h:outputLabel for="email">
  | 					<h:outputText value="Email:"/>
  | 				</h:outputLabel>
  | 				<h:inputText id="email" value="#{person.email}" required="true"/>
  | 				<h:message for="email"/>
  | 				<h:outputLabel for="comment">
  | 					<h:outputText value="Comment:"/>
  | 				</h:outputLabel>
  | 				<h:inputText id="comment" value="#{person.comment}" required="true"/>
  | 				<h:message for="comment"/>
  | 			</h:panelGrid>
  | 			<br/>
  | 			<h:commandButton value="Submit Data" action="#{manager.sayHello }"/>
  | 		</h:form>
  | 	</f:view>
  | </body>
  | </html>
  | </jsp:root>

If I put a SEAM button instead of the JSF commandButton it renders correctly, but it does not do what I want.

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

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



More information about the jboss-user mailing list