jsf - In CommandButton immediate="true" but validation not skipped? -


i have added immediate="true" in button

 <h:commandbutton id="browse" action="#{creationbean.getaterminationroot()}" value="browse" immediate="true">     <rich:componentcontrol  event="click" target="atermpanel" operation="show" /></h:commandbutton> 

now in same page have included page below

<ui:insert name="name">                  <ui:include src="../pages/abc.xhtml" />                  </ui:insert> 

this page have validation in inputtextbox

<h:inputtext id="ammondemandid" required="true" value="#{var.amount}" requiredmessage="msg1" validatormessage="msg2"> <f:validaterequired /> <f:validatelongrange minimum="0" maximum="9999999"> </f:validatelongrange> <rich:validator event="blur" /> </h:inputtext> 

note:- included page have <h:form>

if removing these validation working fine in parent page , clicking on button data loaded when adding validation in included page textbox button not working due validation fail.

as far understand h:commandbutton trigger 2 things :

-> http request expecting refresh or redirect of page
-> non-http action shows new panel in current page

maybe jsf don't know how deal contradiction.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -