5 Replies Latest reply on Jun 20, 2011 10:57 AM by vinod_t_krishnan

    af:setPropertyListener Bug for af:commandLink action..

    SantoshVaza
      Dear All,

      I am having a commandLink for which the setPropertyListener is not working.
      here is my code
       <af:column width="70" noWrap="false" sortable="false"
                         headerClass="columnHeader" headerText="View/Edit" id="c9"
                         styleClass="columnCell">
                <af:commandLink text="view" id="cl2" styleClass="cl1"
                                action="view-edit-contacts"
                                useWindow="true" windowEmbedStyle="inlineDocument"
                                windowModalityType="applicationModal"
                                partialSubmit="true" windowHeight="250"
                                windowWidth="900"
                                returnListener="#{projectContacts_Request.afterEditViewContact}">
       <af:setPropertyListener from="edit" to="#{pageFlowScope.mode}"
                                              type="action"/>
                </af:commandLink>
              </af:column>
      where the string value edit is not getting set to pageFlowScope when the cmdlnk is clicked. Then i have to create a action method in backing bean and manually set the edit to pageflowscope.. it works there..
      Is it a bug...?

      Regards,
      Santosh.

      jdeveloper 11.1.1.4.0
        • 1. Re: af:setPropertyListener Bug for af:commandLink action..
          vinod_t_krishnan
          for string pleae evaluate like #{'edit'}
          • 2. Re: af:setPropertyListener Bug for af:commandLink action..
            SantoshVaza
            Hello vinod,
            for string pleae evaluate like #{'edit'}
            <af:commandLink text="view" id="cl2" styleClass="cl1"
                                      action="view-edit-contacts"
                                      useWindow="true" windowEmbedStyle="inlineDocument"
                                      windowModalityType="applicationModal"
                                      partialSubmit="true" windowHeight="250"
                                      windowWidth="900"
                                      returnListener="#{projectContacts_Request.afterEditViewContact}">
                      <af:setPropertyListener from="#{'edit'}" to="#{pageFlowScope.mode}" type="action"/>
            </af:commandLink>
            Still not working.........

            Regards,
            Santosh.
            • 3. Re: af:setPropertyListener Bug for af:commandLink action..
              vinod_t_krishnan
              try the type as 'click' instead of 'action'
              • 4. Re: af:setPropertyListener Bug for af:commandLink action..
                SantoshVaza
                Hello vinod,
                try the type as 'click' instead of 'action'
                Threw following exception for respected modification
                <af:commandLink text="view" id="cl2" styleClass="cl1"
                                          action="view-edit-contacts"
                                          useWindow="true" windowEmbedStyle="inlineDocument"
                                          windowModalityType="applicationModal"
                                          partialSubmit="true" windowHeight="250"
                                          windowWidth="900"
                                          returnListener="#{projectContacts_Request.afterEditViewContact}">
                          <af:setPropertyListener from="#{'edit'}" to="#{pageFlowScope.mode}" type="click"/>
                </af:commandLink>
                <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
                java.lang.IllegalArgumentException: ADF_FACES-60071:The type: click is not a legal type. The legal values for type are: [sort, launchPopup, query, launch, calendarDisplayChange, calendarActivity, rowDisclosure, poll, returnPopup, action, focus, popupFetch, dialog, valueChange, calendar, returnPopupData, return, regionNavigation, selection, contextInfo, carouselSpin, calendarActivityDurationChange, disclosure, rangeChange, queryOperation].
                Regards,
                Santosh

                Edited by: Santosh Vaza on Jun 6, 2011 11:40 AM
                • 5. Re: af:setPropertyListener Bug for af:commandLink action..
                  vinod_t_krishnan
                  oops. my bad. .there is not click triggerType.. its avialble only in showPopuBehavior.. got confused.. ;)

                  ok.. cn u try this with <af:setActionListener> instead