[jboss-user] [JBoss Seam] - Re: Bind Map to h:inputText value

umk do-not-reply at jboss.com
Sun May 27 12:50:59 EDT 2007


"matt.drees" wrote : Are you using a s:validate or s:validateAll on that h:inputText?  If so, I'm fairly certain you can't do that.

Nope. Not using either. I've posted the complete page code below. Any other ideas? Thanks.


  | <!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:rich="http://richfaces.ajax4jsf.org/rich"
  | 	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
  | 	template="layout/template.xhtml">
  | 
  | 	<ui:define name="body">
  | 
  | 		<h:messages globalOnly="true" styleClass="message" />
  | 
  | 		<h:form id="dataEntryForm">
  | 
  | 			<rich:panel>
  | 				<f:facet name="header">dataEntry</f:facet>
  | 				<p>Welcome #{appUser.username}</p>
  | 
  | 				<s:decorate id="valueDecoration1" template="layout/edit.xhtml">
  | 					<ui:define name="label">Map Binding</ui:define>
  | 					<h:inputText id="asdf" required="true"
  | 						value="#{biomarkers['waist']}" />
  | 				</s:decorate>
  | 
  | 				<s:decorate id="eventdateDecoration" template="layout/edit.xhtml">
  | 					<ui:define name="label">eventdate</ui:define>
  | 					<h:inputText id="eventdate" maxlength="10" size="10"
  | 						required="true" value="#{record.eventdate}">
  | 						<s:convertDateTime type="date" dateStyle="short"
  | 							pattern="MM/dd/yyyy" />
  | 						<a:support event="onblur" reRender="eventdateDecoration" />
  | 					</h:inputText>
  | 					<s:selectDate for="eventdate">
  | 						<h:graphicImage url="img/dtpick.gif" style="margin-left:5px" />
  | 					</s:selectDate>
  | 				</s:decorate>
  | 
  | 				<div style="clear:both" />
  | 
  | 				<h:dataTable value="#{recordDatas}" var="recordData">
  | 					<h:column>
  | 						<f:facet name="header">Name</f:facet>
  | 						<h:selectOneMenu value="#{recordData.value}">
  | 							<f:selectItem itemLabel="-" itemValue="" />
  | 							<f:selectItem itemLabel="Yes" itemValue="1" />
  | 							<f:selectItem itemLabel="No" itemValue="0" />
  | 						</h:selectOneMenu>
  | 					</h:column>
  | 				</h:dataTable>
  | 
  | 			</rich:panel>
  | 
  | 			<div class="actionButtons"><h:commandButton id="dataEntry"
  | 				value="dataEntry" action="#{enroll.thankYou}" /></div>
  | 
  | 		</h:form>
  | 
  | 	</ui:define>
  | 
  | </ui:composition>
  | 

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

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



More information about the jboss-user mailing list