[jboss-user] [JBoss Seam] - skipping validation

jamesjmp do-not-reply at jboss.com
Tue Oct 30 08:24:15 EDT 2007


hi,
I´ve a seam-gened form with the tipical fields that use the edit.xhtml template.
For instance

  | 
  |                 <s:decorate id="benchmarkDesDecoration" template="layout/edit.xhtml">
  |                     <ui:define name="label">#{messages['CfgBenchmark']}</ui:define>
  |                     <h:inputText id="benchmarkDes" 
  |                                  size="20"
  |                                  maxlength="50"
  |                                  required="true"                             
  |                                  value="#{rstReportHome.instance.cfgBenchmark.benchmarkDes}"
  |                                  disabled="true">
  |                         <a:support event="onblur" reRender="benchmarkDesDecoration"/>
  |                     </h:inputText>
  |                 </s:decorate>      
  | 

When I press the save button the validation is done (in my case to see it compulsory fields have been filled). Ok, that´s perfect.
But, I´ve added an extra button that invokes a method in the POJOHome, and I want it to be executed withoth previous validation, because the action of that button doesn´t need all info to be filled.
Is there a way of preventing validation from being performed for a button?
This is the button code


  |                 <h:commandButton id="testIt" 
  |                           value="#{messages['test']}" 
  |                          action="#{rstReportHome.test}"/>                                                  
  | 

thanks in advance!

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

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




More information about the jboss-user mailing list