ICEfaces
  1. ICEfaces
  2. ICE-3995

Create ice:panelConfirmation component

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8RC1, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Any
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Create a component that will display a popup confirmation dialog asking the user whether to cancel or continue with the operation that was requested. This dialog will be displayed immediately after the event that triggered the operation (e.g.click, <Enter>-key press, etc.) while preventing the application from carrying out the requested operation until it is confirmed by the user.

      This component should be modeled after ice:panelTooltip, so it can be linked to triggering components and reused. For now, the components that can be linked to a confirmation panel are ice:commandButton and ice:commandLink.

      This component should be client-only (i.e. no need to communicate state to the server).

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          A few changes:

          1. Make the autocentre and draggable attributes false by default.

          2. Add a new attribute called 'displayAtMouse' =true/false. If true then use the following logic (if it's robust enough) to position the panel at a location near the mouse-location:

          Add this two line to showPanel function in the panelconfirmation.js

          this.panel.style.left=
          parseInt(Event.pointerX(this.event)) + "px";
          this.panel.style.top =
          parseInt(Event.pointerY(this.event)) + "px";

          displayAtMouse should override the autocentre attribute if both are specified (this should be specified in the TLD).

          Show
          Ken Fyten added a comment - A few changes: 1. Make the autocentre and draggable attributes false by default. 2. Add a new attribute called 'displayAtMouse' =true/false. If true then use the following logic (if it's robust enough) to position the panel at a location near the mouse-location: Add this two line to showPanel function in the panelconfirmation.js this.panel.style.left= parseInt(Event.pointerX(this.event)) + "px"; this.panel.style.top = parseInt(Event.pointerY(this.event)) + "px"; displayAtMouse should override the autocentre attribute if both are specified (this should be specified in the TLD).
          Hide
          Arturo Zambrano added a comment -

          committed component files and support for commandButton to revision 18226
          committed support for commandLink to revision 18261

          will start doing changes above

          Show
          Arturo Zambrano added a comment - committed component files and support for commandButton to revision 18226 committed support for commandLink to revision 18261 will start doing changes above
          Hide
          Arturo Zambrano added a comment -

          fixed... committed to revision 18287

          Show
          Arturo Zambrano added a comment - fixed... committed to revision 18287
          Hide
          Joanne Bai added a comment -

          Tested it successfully on tomcat 6 + ICEfaces-1.8.0-RC1 build.5 for ice:commandButton and ice:commandLink

          Show
          Joanne Bai added a comment - Tested it successfully on tomcat 6 + ICEfaces-1.8.0-RC1 build.5 for ice:commandButton and ice:commandLink
          Hide
          Ian Michel added a comment -

          Is there a reason why this component is only linked to a commandButton or commandLink. It should be linked to any component that can submit the form. i.e menuItem.

          Show
          Ian Michel added a comment - Is there a reason why this component is only linked to a commandButton or commandLink. It should be linked to any component that can submit the form. i.e menuItem.

            People

            • Assignee:
              Unassigned
              Reporter:
              Arturo Zambrano
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: