[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen

pete.muir@jboss.org do-not-reply at jboss.com
Fri Aug 31 17:25:28 EDT 2007


<!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>
  |     
  |   <s:decorate id="firstDecoration" template="layout/edit.xhtml">
  |                 <ui:define name="label">First</ui:define>
  |                 <h:inputText id="first"
  |                            required="true"
  |                               value="#{calcBean.first}">
  | 					<a:support event="onblur" reRender="firstDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
  | 				</h:inputText>
  |             </s:decorate>
  |            
  |             <s:decorate id="secondDecoration" template="layout/edit.xhtml">
  |                 <ui:define name="label">Second</ui:define>
  |                 <h:inputText id="second"
  |                            required="true"
  |                               value="#{calcBean.second}">
  | 					<a:support event="onblur" reRender="secondDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
  | 				</h:inputText>
  |             </s:decorate>
  |         
  |             <s:decorate id="thirdDecoration" template="layout/edit.xhtml">
  |                 <ui:define name="label">Third</ui:define>
  |                 <h:inputText id="third"
  |                            required="true"
  |                               value="#{calcBean.third}">
  | 					<a:support event="onblur" reRender="thirdDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
  | 				</h:inputText>
  |             </s:decorate>
  |             
  |             <s:div id="total">
  |             	Total: <h:outputText value="#{calcBean.total}"/>
  |             </s:div>
  | 
  | </h:form>
  |     
  | </ui:define> 
  | </ui:composition>

As index.xhtml in seam-gen project.

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

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



More information about the jboss-user mailing list