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!