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

          Arturo Zambrano created issue -
          Arturo Zambrano made changes -
          Field Original Value New Value
          Assignee Arturo Zambrano [ artzambrano ]
          Arturo Zambrano made changes -
          Salesforce Case []
          Fix Version/s 1.8DR#3 [ 10143 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18226 Mon Jan 26 09:54:06 MST 2009 art.zambrano ICE-3995 Create ice:panelConfirmation component
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-commandButton-props.xml
          Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmation.java
          Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice/components/PanelConfirmation-component.xml
          Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmationRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/conf/META-INF/facelet/icefaces.taglib.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/build.xml
          Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice/renderers/PanelConfirmation-renderer.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/faces-config.xml
          Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation
          Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/panelconfirmation-component.xml
          Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/panelconfirmation-renderer.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/extended-faces-config.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/ButtonRenderer.java
          Commit graph ADD /icefaces/trunk/icefaces/bridge/lib/extras/panelConfirmation.js
          Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelconfirmation-props.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18227 Mon Jan 26 10:42:30 MST 2009 art.zambrano ICE-3995 (fixed metadata problem)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelconfirmation-props.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18228 Mon Jan 26 12:03:43 MST 2009 art.zambrano ICE-3995 (fixed metadata problem)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelconfirmation-props.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18229 Mon Jan 26 12:34:39 MST 2009 art.zambrano ICE-3995 (fixed metadata problem)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelconfirmation-props.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18230 Mon Jan 26 14:30:07 MST 2009 art.zambrano ICE-3995 (failing test/metadata problem)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/test/java/com/icesoft/faces/metadata/AttributesTest.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18231 Mon Jan 26 14:42:34 MST 2009 art.zambrano ICE-3995 fix
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HtmlCommandButton.java
          Ken Fyten made changes -
          Salesforce Case []
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Priority P1
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18261 Fri Jan 30 11:35:15 MST 2009 art.zambrano ICE-3995 panelConfirmation: Added support for commandLink
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/CommandLinkRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HtmlCommandLink.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-commandLink-props.xml
          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
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18287 Tue Feb 03 16:44:23 MST 2009 art.zambrano ICE-3995 additional features for panelConfirmation
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmation.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmationRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/panelConfirmation.js
          Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelconfirmation-props.xml
          Hide
          Arturo Zambrano added a comment -

          fixed... committed to revision 18287

          Show
          Arturo Zambrano added a comment - fixed... committed to revision 18287
          Arturo Zambrano made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18303 Mon Feb 09 09:30:13 MST 2009 art.zambrano ICE-3995 Added CSS classes for ice:panelConfirmation
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp.css
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/royale/royale.css
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/rime/rime.css
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18305 Mon Feb 09 10:55:44 MST 2009 art.zambrano ICE-3995 Added CSS classes in portlet themes for ice:panelConfirmation
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp-portlet.css
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/rime/rime-portlet.css
          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.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18352 Mon Feb 16 15:50:07 MST 2009 art.zambrano ICE-3995 ice:panelConfirmation refactoring: pass-thru, CSS class names, string interning
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmation.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/CSS_DEFAULT.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelconfirmation/PanelConfirmationRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ExtendedAttributeConstants.java
          Ken Fyten made changes -
          Fix Version/s 1.8 [ 10161 ]
          Assignee Priority P1
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Arturo Zambrano [ artzambrano ]
          Ken Fyten made changes -
          Link This issue blocks ICE-4625 [ ICE-4625 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: