12 Replies Latest reply: Sep 1, 2014 8:28 AM by Ashish Awasthi RSS

    SetPropertyListener not working in table command link

    Guillaume le Conquérant

      Hi,

       

         My SetPropertyListener doesn't seems to work, although my code seems simple and straight to the point. It's working perfectly outside the table.

       

         Here's my code, the action "changeSchedule" is simply recalling the same page in the defined taskflow

       

       

      <af:table value="#{bindings.FormSchedsView1.collectionModel}"
                          var="row" rows="#{bindings.FormSchedsView1.rangeSize}"
                          emptyText="#{bindings.FormSchedsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.FormSchedsView1.rangeSize}"
                          rowBandingInterval="0" id="pt_t2">
          <af:column sortProperty="#{bindings.FormSchedsView1.hints.SchedName.name}"
                               sortable="false"
                               headerText="#{bindings.FormSchedsView1.hints.SchedName.label}"
                               id="pt_c2">
              <af:commandLink id="pt_ot2" text="#{row.SchedName}" action="changeSchedule">
                  <af:setPropertyListener from="#{row.SchedName}"
                                                                  to="#{requestScope.MySchedName}"
                                                                  type="action"/>
              </af:commandLink>
          </af:column>
      </af:table>
      
      [...]
      
      <af:panelGroupLayout layout="horizontal" id="asdas123121">
              <af:spacer height="50" id="asdasda123123"/>
              <af:commandLink text="test123"
                                              action="changeSchedule" id="asdaqwe1231">
                  <af:setPropertyListener type="action" from="#{'FIXED'}"
                                                              to="#{requestScope.MySchedName}"/>
              </af:commandLink>
      </af:panelGroupLayout>
      
      [...]
      
      <af:outputText value="MySchedName = #{requestScope.MySchedName}"
                                   id="outputText1" styleClass="titleLevel1"/>
      

       

       

      Notes:

      - I've tried with SetPropertyListener and SetActionListener... None are working