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

        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).
        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.
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: