Yes I have validateAll

This is my form


  | 
  | ...........
  | 
  | <trh:body onload="startup();">
  | <f:loadBundle basename="messages" var="msgs" />
  | <tr:form id="form" usesUpload="false" defaultCommand="go" >
  | <tr:panelPage id="panelPage">
  | <!-- HEADER -->
  |     <ui:include src="header.xhtml"/>
  | 
  | ..........
  | 
  | <trh:tableLayout borderWidth="0" width="100%">
  | <s:validateAll id="validateAll">
  | 
  | <trh:rowLayout width="100%" >
  |     <trh:cellFormat styleClass="formFieldLabel" ><tr:outputLabel for="nome" 
 value="#{msgs.form_Asse_nome}" rendered="#{(asseOperation=='CREATE') or 
(asseOperation=='EDIT') or (asseOperation=='DISPLAY') or 
(asseOperation=='DELETE')}"/></trh:cellFormat>
  |     <trh:cellFormat >
  |             <tr:inputText id="nome" value="#{asse.nome}"  required="true"  
rendered="#{(asseOperation=='CREATE') or (asseOperation=='EDIT')}"  />
  |             <tr:outputText id="nome"  value="#{asse.nome}" 
rendered="#{(asseOperation=='DISPLAY') or (asseOperation=='DELETE')}" />
  |     </trh:cellFormat>
  |     <trh:cellFormat width="1%"><tr:image styleClass="imageLink" 
source="img/info.gif" onclick="help('help/form_Asse_nome.html');" 
/></trh:cellFormat>
  | </trh:rowLayout>
  | 
  | ....
  | 
  | </s:validateAll>
  | </trh:tableLayout>
  | <!-- BUTTONS -->
  | <tr:spacer height="15" />
  | <trh:tableLayout borderWidth="0" width="100%">
  | <trh:rowLayout width="100%" >
  |     <trh:cellFormat halign="right" width="50%">
  |             <tr:commandButton id="go" styleClass="button" 
text="#{msgs.Application_buttonNew}"  action="#{AsseManager.processCreate}" 
rendered="#{asseOperation=='CREATE'}" />
  |             <tr:commandButton id="go" styleClass="button" 
text="#{msgs.Application_buttonEdit}" action="#{AsseManager.processEdit}" 
rendered="#{asseOperation=='EDIT'}" />
  |             <tr:commandButton id="go" styleClass="button" 
text="#{msgs.Application_buttonDelete}" action="#{AsseManager.processDelete}" 
rendered="#{asseOperation=='DELETE'}" />            
  |             <tr:commandButton id="go" styleClass="button" 
text="#{msgs.Application_buttonOk}"       
action="#{AsseManager.processDisplay}" rendered="#{asseOperation=='DISPLAY'}" 
/>                
  |     </trh:cellFormat>
  |     <trh:cellFormat  halign="left" width="50%">
  |             <tr:commandButton styleClass="button" 
text="#{msgs.Application_buttonCancel}" immediate="true" 
action="#{AsseManager.cancel}" rendered="#{asseOperation!='DISPLAY'}" />        
                 
  |     </trh:cellFormat>
  | </trh:rowLayout>
  | </trh:tableLayout>
  | </tr:panelPage>
  | .......
  | </tr:form>
  | 

Thanks

Fabrizio

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

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

Reply via email to