Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-272

commandLink not working inside dataList

    XMLWordPrintableJSON

Details

    Description

      in following code fragement the action-method "testService.listenOnSelect" is never called:

      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
      <f:subview id="test">
      <h:form id="testform">
      <h:panelGrid columns="1">
      <t:dataList id="datalist" style="standardList"
      var="test"
      value="#

      {testService.entries}

      "
      rowCountVar="rowCount"
      rowIndexVar="rowIndex"
      layout="unorderedList">
      <h:commandLink id="test_ref" value="#

      {rowIndex + 1}" action="#{testService.listenOnSelect}" />
      </t:dataList>
      </h:panelGrid>
      </h:form>
      </f:subview>

      after some testing i also tried the nightly build but with the same result

      also tried the following (working in other scenarios):
      <h:commandLink id="testref" immediate="true" value="#{rowIndex + 1}

      " action="">
      <t:updateActionListener property="#

      {rowCount}

      " value="#

      {testService.searchRow}

      " />
      </h:commandLink>

      any ideas?

      Attachments

        1. api.txt
          1 kB
          Dennis Christopher Byrne
        2. tomahawk.txt
          3 kB
          Dennis Christopher Byrne
        3. tomahawk2.txt
          4 kB
          Dennis Christopher Byrne

        Issue Links

          Activity

            People

              dennisbyrne Dennis Christopher Byrne
              atraeder Alexander Traeder
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: