ICEfaces
  1. ICEfaces
  2. ICE-3520

verify f:setPropertyActionListener

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.1
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces

      Description


      This is a useful method for interacting with table data and should be verified with ICEfaces.

      page.jspx
        <h:dataTable value="#{bean1.entries}" var="row"
       styleClass="table" rowClasses="even,odd">
        <h:column>
         <f:facet name="header">
         <h:outputText value="Name"/>
         </f:facet>
         <h:outputText value="#{row.name}"/>
        </h:column>
        <h:column>
          <h:commandLink value="Delete" action="#{bean1.
       deleteAction}" immediate="true">
          <f:setPropertyActionListener target="#{bean1.
       idToDelete}"
          value="#{row.id}"/>
         </h:commandLink>
        </h:column>
       </h:dataTable>

      com/corejsf/SampleBean.java
       public class SampleBean {
        private int idToDelete;
         public void setIdToDelete(int value) {idToDelete
       = value; }
        public String deleteAction() {
          // delete the entry whose id is idToDelete
         return null;
        }
        public List<Entry> getEntries() {...}
        ...
       }

        Activity

        Hide
        Ted Goddard added a comment -

        I recommend that we add a simple test case making use of this JSF 1.2 tag (it could potentially be used as a technique in component-showcase).

        Show
        Ted Goddard added a comment - I recommend that we add a simple test case making use of this JSF 1.2 tag (it could potentially be used as a technique in component-showcase).

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: