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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...