10 Replies Latest reply: Jan 29, 2013 12:50 AM by ankurmdh RSS

    Reset and Cancel Link in Popup

    ankurmdh
      Hi Team,

      Jdev 11.1.1.6.0

      I need to implement Cancel and Reset(commandLink) functioanlity in Popup which contain inputText and selectOneChoice. I have written code in jsff for Reset but not working. Please suggest.

      <af:commandLink text="#{sprportalBundle.DAM_RESET_FORM}"
      id="commandLink1" partialSubmit="true">
      <af:resetActionListener/>

      Thanks
      Ankur
        • 1. Re: Reset and Cancel Link in Popup
          Timo Hahn
          Working for me.
                  <af:popup id="p1" autoCancel="disabled">
                    <af:panelGroupLayout id="pgl2">
                      <af:inputText label="Label 1" id="it1"/>
                      <af:commandLink text="commandLink 1" id="cl1" partialSubmit="true">
                        <af:resetActionListener/>
                      </af:commandLink>
                    </af:panelGroupLayout>
                  </af:popup>
          Timo
          • 2. Re: Reset and Cancel Link in Popup
            ankurmdh
            Hey Timo,

            Not working in my case. Not sure whats gone wrong. Here is my code snippet. Both Reset and Cancel link is not working

            <af:popup id="p1" autoCancel="disabled" contentDelivery="lazyUncached">
            <div class="toproundstyle">&amp;nbsp;</div>
            <af:dialog id="d1" type="none" title="#{sprportalBundle.DAM_UPLOAD_PATCH}" contentWidth="532"
            styleClass="uploadPatchLightBox">
            <af:panelGroupLayout id="pgl10" layout="vertical">
            <af:spacer width="10" height="3" id="spacer4"/>
            <hr class="rulers"/>
            <af:spacer width="10" height="3" id="spacer6"/>
            <af:panelGroupLayout id="pgl13">
            <af:outputText value="#{sprportalBundle.DAM_UPL_3}" id="outputText4" styleClass="topddesc"/>
            </af:panelGroupLayout>
            <af:spacer width="5" height="5" id="s15"/>
            <af:panelFormLayout id="pfl2">
            <af:inputFile label="#{sprportalBundle.DAM_SELECT_FILE}" id="if1"
            value="#{viewScope.patchFileUploadBean.patchFile}" styleClass="browsetype" required="true"/>
            <af:inputText value="#{bindings.PatchName.inputValue}" label="#{sprportalBundle.DAM_FILE_NAME}"
            required="#{bindings.PatchName.hints.mandatory}"
            columns="#{bindings.PatchName.hints.displayWidth}"
            maximumLength="#{bindings.PatchName.hints.precision}"
            shortDesc="#{bindings.PatchName.hints.tooltip}" id="it17">
            <f:validator binding="#{bindings.PatchName.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.Description.inputValue}" label="#{sprportalBundle.DAM_DESC}"
            required="#{bindings.Description.hints.mandatory}"
            columns="#{bindings.Description.hints.displayWidth}"
            maximumLength="#{bindings.Description.hints.precision}"
            shortDesc="#{bindings.Description.hints.tooltip}" id="it7" rows="4">
            <f:validator binding="#{bindings.Description.validator}"/>
            </af:inputText>
            <af:inputDate value="#{bindings.ReleaseDate.inputValue}" label="#{sprportalBundle.DAM_REL_DATE}"
            required="#{bindings.ReleaseDate.hints.mandatory}"
            shortDesc="#{bindings.ReleaseDate.hints.tooltip}" id="id4" styleClass="datetype">
            <f:validator binding="#{bindings.ReleaseDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.ReleaseDate.format}"/>
            </af:inputDate>
            <af:selectManyChoice value="#{bindings.SprLanguagesVO11.inputValue}"
            label="#{sprportalBundle.DAM_LANGUAGE}" id="smc1" styleClass="languageselect"
            required="true">
            <f:selectItems value="#{bindings.SprLanguagesVO11.items}" id="si3"/>
            </af:selectManyChoice>
            <af:inputText value="#{bindings.PatchLanguage.inputValue}" label="#{bindings.PatchLanguage.hints.label}"
            required="#{bindings.PatchLanguage.hints.mandatory}"
            columns="#{bindings.PatchLanguage.hints.displayWidth}"
            maximumLength="#{bindings.PatchLanguage.hints.precision}"
            shortDesc="#{bindings.PatchLanguage.hints.tooltip}" id="it5" visible="false">
            <f:validator binding="#{bindings.PatchLanguage.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.ProductName.inputValue}" label="#{sprportalBundle.DAM_POINT_PRODUCT}"
            required="#{bindings.ProductName.hints.mandatory}"
            columns="#{bindings.ProductName.hints.displayWidth}"
            maximumLength="#{bindings.ProductName.hints.precision}"
            shortDesc="#{bindings.ProductName.hints.tooltip}" id="it9">
            <f:validator binding="#{bindings.ProductName.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.ProductVersion.inputValue}"
            label="#{sprportalBundle.DAM_PRODUCT_VERSION}"
            required="#{bindings.ProductVersion.hints.mandatory}"
            columns="#{bindings.ProductVersion.hints.displayWidth}"
            maximumLength="#{bindings.ProductVersion.hints.precision}"
            shortDesc="#{bindings.ProductVersion.hints.tooltip}"
            id="it19" styleClass="prodver">
            <f:validator binding="#{bindings.ProductVersion.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.PatchRowId.inputValue}" label="#{bindings.PatchRowId.hints.label}"
            required="#{bindings.PatchRowId.hints.mandatory}"
            columns="#{bindings.PatchRowId.hints.displayWidth}"
            maximumLength="#{bindings.PatchRowId.hints.precision}"
            shortDesc="#{bindings.PatchRowId.hints.tooltip}" id="it10" rendered="true" visible="false">
            <f:validator binding="#{bindings.PatchRowId.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.PatchId.inputValue}" label="#{bindings.PatchId.hints.label}"
            required="#{bindings.PatchId.hints.mandatory}"
            columns="#{bindings.PatchId.hints.displayWidth}"
            maximumLength="#{bindings.PatchId.hints.precision}"
            shortDesc="#{bindings.PatchId.hints.tooltip}" id="it16" rendered="true" visible="false">
            <f:validator binding="#{bindings.PatchId.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.Status1.inputValue}" label="#{bindings.Status1.hints.label}"
            required="#{bindings.Status1.hints.mandatory}"
            columns="#{bindings.Status1.hints.displayWidth}"
            maximumLength="#{bindings.Status1.hints.precision}"
            shortDesc="#{bindings.Status1.hints.tooltip}" id="it18" rendered="true" visible="false">
            <f:validator binding="#{bindings.Status1.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.PatchLocation.inputValue}" label="#{bindings.PatchLocation.hints.label}"
            required="#{bindings.PatchLocation.hints.mandatory}"
            columns="#{bindings.PatchLocation.hints.displayWidth}"
            maximumLength="#{bindings.PatchLocation.hints.precision}"
            shortDesc="#{bindings.PatchLocation.hints.tooltip}" id="it8" rendered="true"
            visible="false">
            <f:validator binding="#{bindings.PatchLocation.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.PatchType.inputValue}" label="#{bindings.PatchType.hints.label}"
            required="#{bindings.PatchType.hints.mandatory}"
            columns="#{bindings.PatchType.hints.displayWidth}"
            maximumLength="#{bindings.PatchType.hints.precision}"
            shortDesc="#{bindings.PatchType.hints.tooltip}" id="it14" rendered="true"
            clientComponent="false" visible="false">
            <f:validator binding="#{bindings.PatchType.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.PatchSize.inputValue}" label="#{bindings.PatchSize.hints.label}"
            required="#{bindings.PatchSize.hints.mandatory}"
            columns="#{bindings.PatchSize.hints.displayWidth}"
            maximumLength="#{bindings.PatchSize.hints.precision}"
            shortDesc="#{bindings.PatchSize.hints.tooltip}" id="it11" rendered="true"
            clientComponent="false" visible="false">
            <f:validator binding="#{bindings.PatchSize.validator}"/>
            </af:inputText>
            <af:inputText value="#{bindings.UpdatedBy.inputValue}" label="#{bindings.UpdatedBy.hints.label}"
            required="#{bindings.UpdatedBy.hints.mandatory}"
            columns="#{bindings.UpdatedBy.hints.displayWidth}"
            maximumLength="#{bindings.UpdatedBy.hints.precision}"
            shortDesc="#{bindings.UpdatedBy.hints.tooltip}" id="it15" rendered="true" visible="false">
            <f:validator binding="#{bindings.UpdatedBy.validator}"/>
            </af:inputText>
            <af:inputDate value="#{bindings.UpdatedDate.inputValue}" label="#{bindings.UpdatedDate.hints.label}"
            required="#{bindings.UpdatedDate.hints.mandatory}"
            shortDesc="#{bindings.UpdatedDate.hints.tooltip}" id="id2" rendered="true" visible="false">
            <f:validator binding="#{bindings.UpdatedDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.UpdatedDate.format}"/>
            </af:inputDate>
            <af:inputText value="#{bindings.PatchVersionId.inputValue}"
            label="#{sprportalBundle.DAM_PATCH_VERSION}"
            required="#{bindings.PatchVersionId.hints.mandatory}"
            columns="#{bindings.PatchVersionId.hints.displayWidth}"
            maximumLength="#{bindings.PatchVersionId.hints.precision}"
            shortDesc="#{bindings.PatchVersionId.hints.tooltip}"
            id="it6" inlineStyle="margin:500%;">
            <f:validator binding="#{bindings.PatchVersionId.validator}"/>
            </af:inputText>
            <af:inputDate value="#{bindings.ExpirationDate.inputValue}"
            label="#{sprportalBundle.DAM_PATCH_EXPIRATION}"
            required="#{bindings.ExpirationDate.hints.mandatory}"
            shortDesc="#{bindings.ExpirationDate.hints.tooltip}"
            id="id3" styleClass="datetype">
            <f:validator binding="#{bindings.ExpirationDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.ExpirationDate.format}"/>
            </af:inputDate>
            <af:outputText value="EOS:20/12/2020" id="ot2" description="EOS"/>
            </af:panelFormLayout>
            <af:panelFormLayout id="pfl11" rows="2" maxColumns="1">
            <af:inputText value="#{bindings.ReleaseNote.inputValue}" label="#{sprportalBundle.DAM_RELEASE_NOTE}"
            columns="#{bindings.ReleaseNote.hints.displayWidth}"
            maximumLength="#{bindings.ReleaseNote.hints.precision}"
            shortDesc="#{bindings.ReleaseNote.hints.tooltip}" id="it13" styleClass="relnotetype">
            <f:validator binding="#{bindings.ReleaseNote.validator}"/>
            </af:inputText>
            <af:goLink id="goLink1"
            destination="#{pageFlowScope.downloadPatchBean.createPatchReleaseNotesLink}"
            styleClass="testlinktype" targetFrame="_self"
            text="Test Link"/>
            <af:inputText value="#{bindings.EmailNotificationDl.inputValue}"
            label="#{sprportalBundle.DAM_EMAIL_NOTIFICATION}"
            columns="#{bindings.EmailNotificationDl.hints.displayWidth}"
            maximumLength="#{bindings.EmailNotificationDl.hints.precision}"
            shortDesc="#{bindings.EmailNotificationDl.hints.tooltip}" id="it4">
            <f:validator binding="#{bindings.EmailNotificationDl.validator}"/>
            </af:inputText>
            </af:panelFormLayout>
            <af:panelFormLayout id="pfl10" rows="1">
            <af:inputText value="#{bindings.CreatedBy.inputValue}" label="#{bindings.CreatedBy.hints.label}"
            required="#{bindings.CreatedBy.hints.mandatory}"
            columns="#{bindings.CreatedBy.hints.displayWidth}"
            maximumLength="#{bindings.CreatedBy.hints.precision}"
            shortDesc="#{bindings.CreatedBy.hints.tooltip}" id="it12" readOnly="true" rendered="false">
            <f:validator binding="#{bindings.CreatedBy.validator}"/>
            </af:inputText>
            <af:inputDate value="#{bindings.CreatedDate.inputValue}"
            required="#{bindings.CreatedDate.hints.mandatory}"
            shortDesc="#{bindings.CreatedDate.hints.tooltip}" id="id1" rendered="false" visible="false"
            readOnly="true">
            <f:validator binding="#{bindings.CreatedDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.CreatedDate.format}"/>
            </af:inputDate>
            </af:panelFormLayout>
            <af:spacer width="10" height="10" id="spacer9"/>
            <hr class="rulers"/>
            <af:spacer width="10" height="3" id="spacer11"/>
            <af:panelGroupLayout id="pgl11" layout="horizontal" styleClass="bottomButtonsCont">
            <af:panelGroupLayout id="pgl12" styleClass="button">
            <af:commandButton text="#{sprportalBundle.DAM_SUBMIT}" id="cb3"
            actionListener="#{viewScope.patchFileUploadBean.patchUploadPopUpSubmit}"/>
            </af:panelGroupLayout>
            <af:commandLink text="#{sprportalBundle.DAM_RESET_FORM}" id="commandLink1" partialSubmit="true">
            <af:resetActionListener/>
            </af:commandLink>
            <af:spacer width="5" height="5" id="spacer7"/>
            <af:outputText value="#{sprportalBundle.DAM_SEPARATOR}" id="outputText2"/>
            <af:spacer width="5" height="5" id="spacer8"/>
            <af:commandLink text="#{sprportalBundle.DAM_CANCEL}" id="commandLink2"
            actionListener="#{bindings.Rollback.execute}"
            disabled="#{!bindings.Rollback.enabled}"
            immediate="true">
            <af:resetActionListener/>
            </af:commandLink>
            </af:panelGroupLayout>
            </af:panelGroupLayout>
            </af:dialog>
            <div class="bottomroundstyle">&amp;nbsp;</div>
            </af:popup>
            • 3. Re: Reset and Cancel Link in Popup
              Timo Hahn
              Pleases format the code as it is unreadable otherwise.

              What do you mean exactly by 'not working'?

              Timo
              • 4. Re: Reset and Cancel Link in Popup
                Shah
                Hi Ankur,

                Do you have Upload = "true" property on your form ?

                If yes , then removing that property it may work.

                Hope it helps!!!

                Regards,
                Shah
                • 5. Re: Reset and Cancel Link in Popup
                  ankurmdh
                  Hi All,

                  Tried setting UseUpload = false but didn't worked.

                  Please find formatted code:
                  <af:popup id="p1" autoCancel="disabled">
                  <div class="toproundstyle">&amp;nbsp;</div>
                  <af:dialog id="d1" type="none" title="#{sprportalBundle.DAM_UPLOAD_PATCH}" contentWidth="532"
                  styleClass="uploadPatchLightBox">
                  <af:panelGroupLayout id="pgl10" layout="vertical">
                  <af:spacer width="10" height="3" id="spacer4"/>
                  <hr class="rulers"/>
                  <af:spacer width="10" height="3" id="spacer6"/>
                  <af:panelGroupLayout id="pgl13">
                  <af:outputText value="#{sprportalBundle.DAM_UPL_3}" id="outputText4" styleClass="topddesc"/>
                  </af:panelGroupLayout>
                  <af:spacer width="5" height="5" id="s15"/>
                  <af:panelFormLayout id="pfl2">
                  <af:inputFile label="#{sprportalBundle.DAM_SELECT_FILE}" id="if1"
                  value="#{viewScope.patchFileUploadBean.patchFile}" styleClass="browsetype" required="true"/>
                  <af:inputText value="#{bindings.PatchName.inputValue}" label="#{sprportalBundle.DAM_FILE_NAME}"
                  required="#{bindings.PatchName.hints.mandatory}"
                  columns="#{bindings.PatchName.hints.displayWidth}"
                  maximumLength="#{bindings.PatchName.hints.precision}"
                  shortDesc="#{bindings.PatchName.hints.tooltip}" id="it17">
                  <f:validator binding="#{bindings.PatchName.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.Description.inputValue}" label="#{sprportalBundle.DAM_DESC}"
                  required="#{bindings.Description.hints.mandatory}"
                  columns="#{bindings.Description.hints.displayWidth}"
                  maximumLength="#{bindings.Description.hints.precision}"
                  shortDesc="#{bindings.Description.hints.tooltip}" id="it7" rows="4">
                  <f:validator binding="#{bindings.Description.validator}"/>
                  </af:inputText>
                  <af:inputDate value="#{bindings.ReleaseDate.inputValue}" label="#{sprportalBundle.DAM_REL_DATE}"
                  required="#{bindings.ReleaseDate.hints.mandatory}"
                  shortDesc="#{bindings.ReleaseDate.hints.tooltip}" id="id4" styleClass="datetype">
                  <f:validator binding="#{bindings.ReleaseDate.validator}"/>
                  <af:convertDateTime pattern="#{bindings.ReleaseDate.format}"/>
                  </af:inputDate>
                  <af:selectManyChoice value="#{bindings.SprLanguagesVO11.inputValue}"
                  label="#{sprportalBundle.DAM_LANGUAGE}" id="smc1" styleClass="languageselect"
                  required="true">
                  <f:selectItems value="#{bindings.SprLanguagesVO11.items}" id="si3"/>
                  </af:selectManyChoice>
                  <af:inputText value="#{bindings.PatchLanguage.inputValue}" label="#{bindings.PatchLanguage.hints.label}"
                  required="#{bindings.PatchLanguage.hints.mandatory}"
                  columns="#{bindings.PatchLanguage.hints.displayWidth}"
                  maximumLength="#{bindings.PatchLanguage.hints.precision}"
                  shortDesc="#{bindings.PatchLanguage.hints.tooltip}" id="it5" visible="false">
                  <f:validator binding="#{bindings.PatchLanguage.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.ProductName.inputValue}" label="#{sprportalBundle.DAM_POINT_PRODUCT}"
                  required="#{bindings.ProductName.hints.mandatory}"
                  columns="#{bindings.ProductName.hints.displayWidth}"
                  maximumLength="#{bindings.ProductName.hints.precision}"
                  shortDesc="#{bindings.ProductName.hints.tooltip}" id="it9">
                  <f:validator binding="#{bindings.ProductName.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PatchRowId.inputValue}" label="#{bindings.PatchRowId.hints.label}"
                  required="#{bindings.PatchRowId.hints.mandatory}"
                  columns="#{bindings.PatchRowId.hints.displayWidth}"
                  maximumLength="#{bindings.PatchRowId.hints.precision}"
                  shortDesc="#{bindings.PatchRowId.hints.tooltip}" id="it10" rendered="true" visible="false">
                  <f:validator binding="#{bindings.PatchRowId.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PatchId.inputValue}" label="#{bindings.PatchId.hints.label}"
                  required="#{bindings.PatchId.hints.mandatory}"
                  columns="#{bindings.PatchId.hints.displayWidth}"
                  maximumLength="#{bindings.PatchId.hints.precision}"
                  shortDesc="#{bindings.PatchId.hints.tooltip}" id="it16" rendered="true" visible="false">
                  <f:validator binding="#{bindings.PatchId.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.Status1.inputValue}" label="#{bindings.Status1.hints.label}"
                  required="#{bindings.Status1.hints.mandatory}"
                  columns="#{bindings.Status1.hints.displayWidth}"
                  maximumLength="#{bindings.Status1.hints.precision}"
                  shortDesc="#{bindings.Status1.hints.tooltip}" id="it18" rendered="true" visible="false">
                  <f:validator binding="#{bindings.Status1.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PatchLocation.inputValue}" label="#{bindings.PatchLocation.hints.label}"
                  required="#{bindings.PatchLocation.hints.mandatory}"
                  columns="#{bindings.PatchLocation.hints.displayWidth}"
                  maximumLength="#{bindings.PatchLocation.hints.precision}"
                  shortDesc="#{bindings.PatchLocation.hints.tooltip}" id="it8" rendered="true"
                  visible="false">
                  <f:validator binding="#{bindings.PatchLocation.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PatchType.inputValue}" label="#{bindings.PatchType.hints.label}"
                  required="#{bindings.PatchType.hints.mandatory}"
                  columns="#{bindings.PatchType.hints.displayWidth}"
                  maximumLength="#{bindings.PatchType.hints.precision}"
                  shortDesc="#{bindings.PatchType.hints.tooltip}" id="it14" rendered="true"
                  clientComponent="false" visible="false">
                  <f:validator binding="#{bindings.PatchType.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PatchSize.inputValue}" label="#{bindings.PatchSize.hints.label}"
                  required="#{bindings.PatchSize.hints.mandatory}"
                  columns="#{bindings.PatchSize.hints.displayWidth}"
                  maximumLength="#{bindings.PatchSize.hints.precision}"
                  shortDesc="#{bindings.PatchSize.hints.tooltip}" id="it11" rendered="true"
                  clientComponent="false" visible="false">
                  <f:validator binding="#{bindings.PatchSize.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.UpdatedBy.inputValue}" label="#{bindings.UpdatedBy.hints.label}"
                  required="#{bindings.UpdatedBy.hints.mandatory}"
                  columns="#{bindings.UpdatedBy.hints.displayWidth}"
                  maximumLength="#{bindings.UpdatedBy.hints.precision}"
                  shortDesc="#{bindings.UpdatedBy.hints.tooltip}" id="it15" rendered="true" visible="false">
                  <f:validator binding="#{bindings.UpdatedBy.validator}"/>
                  </af:inputText>
                  <af:inputDate value="#{bindings.UpdatedDate.inputValue}" label="#{bindings.UpdatedDate.hints.label}"
                  required="#{bindings.UpdatedDate.hints.mandatory}"
                  shortDesc="#{bindings.UpdatedDate.hints.tooltip}" id="id2" rendered="true" visible="false">
                  <f:validator binding="#{bindings.UpdatedDate.validator}"/>
                  <af:convertDateTime pattern="#{bindings.UpdatedDate.format}"/>
                  </af:inputDate>
                  <af:inputText value="#{bindings.ProductVersion.inputValue}"
                  label="#{sprportalBundle.DAM_PRODUCT_VERSION}"
                  required="#{bindings.ProductVersion.hints.mandatory}"
                  columns="#{bindings.ProductVersion.hints.displayWidth}"
                  maximumLength="#{bindings.ProductVersion.hints.precision}"
                  shortDesc="#{bindings.ProductVersion.hints.tooltip}"
                  id="it19" styleClass="prodver">
                  <f:validator binding="#{bindings.ProductVersion.validator}"/>
                  </af:inputText>
                  <af:outputText id="outputText5" inlineStyle="margin:5.0px;"
                  value="EOS: 20/12/2020"/>
                  <af:inputText value="#{bindings.PatchVersionId.inputValue}"
                  label="#{sprportalBundle.DAM_PATCH_VERSION}"
                  required="#{bindings.PatchVersionId.hints.mandatory}"
                  columns="#{bindings.PatchVersionId.hints.displayWidth}"
                  maximumLength="#{bindings.PatchVersionId.hints.precision}"
                  shortDesc="#{bindings.PatchVersionId.hints.tooltip}"
                  id="it6">
                  <f:validator binding="#{bindings.PatchVersionId.validator}"/>
                  </af:inputText>
                  <af:outputText value="Please include product version" id="ot2"/>
                  <af:inputDate value="#{bindings.ExpirationDate.inputValue}"
                  label="#{sprportalBundle.DAM_PATCH_EXPIRATION}"
                  required="#{bindings.ExpirationDate.hints.mandatory}"
                  shortDesc="#{bindings.ExpirationDate.hints.tooltip}"
                  id="id3" styleClass="datetype">
                  <f:validator binding="#{bindings.ExpirationDate.validator}"/>
                  <af:convertDateTime pattern="#{bindings.ExpirationDate.format}"/>
                  </af:inputDate>
                  <af:inputText value="#{bindings.ReleaseNote.inputValue}"
                  label="#{sprportalBundle.DAM_RELEASE_NOTE}"
                  columns="#{bindings.ReleaseNote.hints.displayWidth}"
                  maximumLength="#{bindings.ReleaseNote.hints.precision}"
                  shortDesc="#{bindings.ReleaseNote.hints.tooltip}"
                  id="it13" styleClass="relnotetype">
                  <f:validator binding="#{bindings.ReleaseNote.validator}"/>
                  </af:inputText>
                  <af:goLink id="goLink1"
                  destination="#{pageFlowScope.downloadPatchBean.createPatchReleaseNotesLink}"
                  styleClass="testlinktype" targetFrame="_self"
                  text="Test LInk"/>
                  <af:inputText value="#{bindings.EmailNotificationDl.inputValue}"
                  label="#{sprportalBundle.DAM_EMAIL_NOTIFICATION}"
                  columns="#{bindings.EmailNotificationDl.hints.displayWidth}"
                  maximumLength="#{bindings.EmailNotificationDl.hints.precision}"
                  shortDesc="#{bindings.EmailNotificationDl.hints.tooltip}"
                  id="it4">
                  <f:validator binding="#{bindings.EmailNotificationDl.validator}"/>
                  </af:inputText>
                  </af:panelFormLayout>
                  <af:panelFormLayout id="pfl10" rows="1">
                  <af:inputText value="#{bindings.CreatedBy.inputValue}" label="#{bindings.CreatedBy.hints.label}"
                  required="#{bindings.CreatedBy.hints.mandatory}"
                  columns="#{bindings.CreatedBy.hints.displayWidth}"
                  maximumLength="#{bindings.CreatedBy.hints.precision}"
                  shortDesc="#{bindings.CreatedBy.hints.tooltip}" id="it12" readOnly="true" rendered="false">
                  <f:validator binding="#{bindings.CreatedBy.validator}"/>
                  </af:inputText>
                  <af:inputDate value="#{bindings.CreatedDate.inputValue}"
                  required="#{bindings.CreatedDate.hints.mandatory}"
                  shortDesc="#{bindings.CreatedDate.hints.tooltip}" id="id1" rendered="false" visible="false"
                  readOnly="true">
                  <f:validator binding="#{bindings.CreatedDate.validator}"/>
                  <af:convertDateTime pattern="#{bindings.CreatedDate.format}"/>
                  </af:inputDate>
                  </af:panelFormLayout>
                  <af:spacer width="10" height="10" id="spacer9"/>
                  <hr class="rulers"/>
                  <af:spacer width="10" height="3" id="spacer11"/>
                  <af:panelGroupLayout id="pgl11" layout="horizontal" styleClass="bottomButtonsCont">
                  <af:panelGroupLayout id="pgl12" styleClass="button">
                  <af:commandButton text="#{sprportalBundle.DAM_SUBMIT}" id="cb3"
                  actionListener="#{viewScope.patchFileUploadBean.patchUploadPopUpSubmit}"/>
                  </af:panelGroupLayout>
                  <af:commandLink text="#{sprportalBundle.DAM_RESET_FORM}" id="commandLink1" partialSubmit="true">
                  <af:resetActionListener/>
                  </af:commandLink>
                  <af:spacer width="5" height="5" id="spacer7"/>
                  <af:outputText value="#{sprportalBundle.DAM_SEPARATOR}" id="outputText2"/>
                  <af:spacer width="5" height="5" id="spacer8"/>
                  <af:commandLink text="#{sprportalBundle.DAM_CANCEL}" id="commandLink2" immediate="true"
                  actionListener="#{bindings.Rollback.execute}"></af:commandLink>
                  </af:panelGroupLayout>
                  </af:panelGroupLayout>
                  </af:dialog>
                  <div class="bottomroundstyle">&amp;nbsp;</div>
                  </af:popup>
                  • 6. Re: Reset and Cancel Link in Popup
                    ankurmdh
                    Hi Timo,


                    Not working meant - When I clicked on Cancel Link in popup, table in main page refreshed but popup still remains open.

                    Thanks
                    Ankur
                    • 7. Re: Reset and Cancel Link in Popup
                      960568
                      i am not sure but instead of you can also hide the popup programmaticly.You can drag drop button and label as cancel and write method in bean

                      http://www.techartifact.com/blogs/2012/12/programmatically-showing-the-popup-in-adf-techartifact.html

                      In this link you can show or hide the pop up using bean.Try this
                      • 8. Re: Reset and Cancel Link in Popup
                        ankurmdh
                        Hi Vinay,

                        Thanks for suggestion, Actually the function of popup is to create a new row for a table, so for this we have used CreateInsert. As soon as I am programatically hiding the popup, a empty row is shown in main page.
                        Ideally, if I use cancel, then popup should just close.

                        Code here:

                        <af:commandLink text="#{sprportalBundle.DAM_CANCEL}" id="commandLink2" immediate="true"
                        actionListener="#{pageFlowScope.downloadPatchBean.hidePopup}"></af:commandLink>

                        Bean Code:
                        public void hidePopup(ActionEvent actionEvent) {
                        this.getUploadButtonClickPopup().hide();
                        }

                        Thanks
                        Ankur
                        • 9. Re: Reset and Cancel Link in Popup
                          Timo Hahn
                          Your problem is that you want to do two things one one click: 1st do a rollback to remove the created row and 2nd hide the popup.
                          I would call a method in a bean where you first to the rollback and then hide the popup (which is closing it). I think you have to call this method from a dialogListener too as you otherwise miss the close icon (the x button in the upper right corner).
                          // get the binding container
                          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                          // get an Action or MethodAction
                          OperationBinding method = bindings.getOperationBinding("rollback");
                          if (method == null)
                          {
                          // handle method not found error...
                          }
                          
                          // execute the method
                          method.execute();
                          List errors = method.getErrors();
                          if (!errors.isEmpty())
                          {
                             // handle errors here errors is a list of exceptions!
                          }
                          // no error resume normal work
                          this.getUploadButtonClickPopup().hide();
                          Timo
                          • 10. Re: Reset and Cancel Link in Popup
                            ankurmdh
                            Thanks All,

                            This approach worked with Cancel Link. I had to do two things with one click(Rollback and Hide).

                            Can I have solution approach for Reset Link, this Reset link have to reset Popup values to default(i.e blank in case of Create and Default values in case of Edit popup)

                            I used this standard code but still not working

                            <af:commandLink text="#{sprportalBundle.DAM_RESET_FORM}" id="commandLink1" partialSubmit="true">
                            <af:resetActionListener/>


                            Thanks
                            Ankur