3 Replies Latest reply: May 10, 2013 5:47 AM by Ashish Awasthi RSS

    Disable Custom Validation on Cancel Button

    Raul946612
      Hi Guys,

      I am using jdev version is 11.1.1.5.0.I have made custom validation for my editable grid/table trough which i m saving data on button click save.Validation is working perfectly except when i click cancel button beside my Save button its also validate grid table that i do't want to do.
      any suggestion how can i stop validation on cancel button.


      <af:table value="#{bindings.ssku1.collectionModel}" var="row"
      rows="#{bindings.ssku1.rangeSize}"
      emptyText="#{bindings.ssku1.viewable ? 'No data to display.' : 'Access Denied.'}"
      fetchSize="#{bindings.ssku1.rangeSize}" rowBandingInterval="0"
      selectionListener="#{bindings.ssku1.collectionModel.makeCurrent}"
      rowSelection="single" id="t3" columnStretching="last"
      partialTriggers=":::cb20 :::cb50 "
      styleClass="AFStretchWidth" immediate="true" autoHeightRows="8">
      <af:column id="c54" rowHeader="true" align="center" width="100">
      <af:commandButton text="Details" id="cb10"
      actionListener="#{jcbwb.jcbOrderRowSelect}"></af:commandButton>
      </af:column>
      <af:column sortProperty="ssku_size_1" sortable="false"
      rendered="#{gridDetailsBN.ssku_grid_col_1}"
      headerText="#{gridDetailsBN.ssku_grid_col_1_hdr}" id="c44">
      <af:inputText value="#{row.bindings.ssku_size_1.inputValue}"
      label="#{bindings.ssku1.hints.ssku_size_1.label}"
      required="#{bindings.ssku1.hints.ssku_size_1.mandatory}"
      columns="#{bindings.ssku1.hints.ssku_size_1.displayWidth}"
      maximumLength="#{bindings.ssku1.hints.ssku_size_1.precision}"
      shortDesc="#{bindings.ssku1.hints.ssku_size_1.tooltip}"
      disabled="true" id="nonpopupit61">
      <f:validator binding="#{row.bindings.ssku_size_1.validator}"/>
      </af:inputText>
      </af:inputText>
      </af:column>
      </af:table>