You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ls...@hsr.ch on 2007/12/13 11:32:19 UTC

Problem to disable JSF validation

Hi there

I have a problem disabling JSF validation for some components. In the attached JSP code, the input elements orderUnits, orderAmount, validFrom and validUntil block the execution of server-side action "#{orderEntryBean.gotoOrderReview}" of the command button navNextButton every time they are left blank (loaded value = null), even though I tagged them with required="false" and did not specify a validator. Can Javascript event handling somehow affect JSF validation?

If the action is set to immediate="true", the servers-side action will be executed, but the values won't be applied to the model.

Additionally to MyFaces, I use the component library quipukit, which has its own validation engine. I disabled it explicitly in web.xml:


<context-param>

<param-name>teamdev.jsf.validation.clientValidation</param-name>

<param-value>off</param-value>

</context-param>



<context-param>

<param-name>teamdev.jsf.validation.useDefaultClientPresentation</param-name>

<param-value>false</param-value>

</context-param>



<context-param>

<param-name>teamdev.jsf.validation.useDefaultServerPresentation</param-name>

<param-value>false</param-value>

</context-param>





Thanks for your help!



Regards,

-Lorin