ICEfaces
  1. ICEfaces
  2. ICE-11283

add delete event to ace:list component

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace jsf2

      Description

      Ability to remove items from an ace:list component would be useful.
      An added configurable feature would be ability to include a confirmation dialog in the process.

        Activity

        Judy Guglielmin created issue -
        Hide
        Judy Guglielmin added a comment - - edited

        Two ways around this with existing code:-
        1)currently could create another "garbage" list and drag items there with an additional button to clean out the garbage or put it on a timer with push to clean it every so often.
        2) use similar to following code:_

          <ace:list id="selectedOutputFieldNames"
                              value="#{aceListBean.list}" var="entry"
                              selectionMode="single">
                        <ace:ajax event="move" execute="@this" render="@form"/>
                        <div class="rowPanel" style="flex-align: center">
                            <h:commandLink
                                action="#{aceListBean.removeEntry(entry)}">
                                <span style="color:red">X</span>
                                <f:ajax execute="@this" render="@form"/>
                            </h:commandLink>
                            <span>#{entry}</span>
                        </div>
                    </ace:list> 

        Could use ace:pushButton with <ace:ajax onStart="...."/> to open a confirmationDialog as well.
        but this would require ICE-11229 which has been recently been fixed. (rev. 51373).

        Show
        Judy Guglielmin added a comment - - edited Two ways around this with existing code:- 1)currently could create another "garbage" list and drag items there with an additional button to clean out the garbage or put it on a timer with push to clean it every so often. 2) use similar to following code:_ <ace:list id= "selectedOutputFieldNames" value= "#{aceListBean.list}" var = "entry" selectionMode= "single" > <ace:ajax event= "move" execute= "@ this " render= "@form" /> <div class= "rowPanel" style= "flex-align: center" > <h:commandLink action= "#{aceListBean.removeEntry(entry)}" > <span style= "color:red" >X</span> <f:ajax execute= "@ this " render= "@form" /> </h:commandLink> <span>#{entry}</span> </div> </ace:list> Could use ace:pushButton with <ace:ajax onStart="...."/> to open a confirmationDialog as well. but this would require ICE-11229 which has been recently been fixed. (rev. 51373).
        Judy Guglielmin made changes -
        Field Original Value New Value
        Assignee Ken Fyten [ ken.fyten ]
        Judy Guglielmin made changes -
        Fix Version/s EE-4.2.0.GA [ 13071 ]
        Ken Fyten made changes -
        Fix Version/s 4.3 [ 13096 ]
        Fix Version/s EE-4.2.0.GA [ 13071 ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ] Arturo Zambrano [ artzambrano ]
        Hide
        Arturo Zambrano added a comment -

        r52238: added remove button and event to ace:list

        It always makes a request, in order to keep the list contents consistent, and it displays a confirmation dialog before submitting. This was documented in the TLD and in the wiki.

        Show
        Arturo Zambrano added a comment - r52238: added remove button and event to ace:list It always makes a request, in order to keep the list contents consistent, and it displays a confirmation dialog before submitting. This was documented in the TLD and in the wiki.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52239 Tue Jan 23 09:57:38 MST 2018 art.zambrano ICE-11283 fixed typo; (note, the main commit was made under ICE-7045 by mistake)
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ListMeta.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52499 Thu Jun 28 11:02:58 MDT 2018 art.zambrano ICE-11283 added ListRemoveEvent object for the ace:list remove ajax event
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/listcontrol/ListControlRenderer.java
        Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/event/ListRemoveEvent.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ACEList.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ListMeta.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ListDecoder.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ListRenderer.java
        Hide
        Arturo Zambrano added a comment -

        r52499: added ListRemoveEvent object for the ace:list remove ajax event

        Show
        Arturo Zambrano added a comment - r52499: added ListRemoveEvent object for the ace:list remove ajax event
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: