Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
-
Workaround Exists:Yes
-
Workaround Description:Implement your own close button that can call the server side.
Description
At the moment this can cause an issue where the dialog is closed via the close button and cannot be opened again because the server side still thinks that its open.
-
Hide
- Case10546Example.war
- 7.37 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/.../example/TestBean.class 1 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-ace.jar 1.41 MB
- WEB-INF/lib/icefaces-compat.jar 2.29 MB
- WEB-INF/lib/icefaces.jar 236 kB
- WEB-INF/lib/javax.faces.jar 2.48 MB
- WEB-INF/web.xml 2 kB
- welcomeICEfaces.xhtml 1 kB
-
Hide
- Case10546Example.zip
- 17 kB
- Arran Mccullough
-
- Case10546Example/build.xml 3 kB
- Case10546Example/.../ant-deploy.xml 2 kB
- Case10546Example/.../build-impl.xml 58 kB
- Case10546Example/.../genfiles.properties 0.5 kB
- Case10546Example/.../private.properties 0.5 kB
- Case10546Example/.../project.properties 3 kB
- Case10546Example/nbproject/project.xml 0.9 kB
- Case10546Example/src/conf/MANIFEST.MF 0.0 kB
- Case10546Example/src/.../TestBean.java 0.7 kB
- Case10546Example/web/.../context.xml 0.1 kB
- Case10546Example/web/WEB-INF/web.xml 2 kB
- Case10546Example/.../welcomeICEfaces.xhtml 1 kB
-
- dialog-error.JPG
- 152 kB
-
- screenshot-01.png
- 130 kB
-
- screenshot-02.png
- 68 kB
-
- screenshot-04.png
- 211 kB
-
- screenshot-05.png
- 73 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
No error, just some warning, and the dialog disappears on its own. See video at http://screencast.com/t/dJmyvmP5oEt.
Warning is: "Use of getAttributeNode() is deprecated. Use getAttribute() instead." See screenshot 1. Shouldn't be a problem? And it doesn't tell you where the warning is from.
Log shows close listener was called successfully. See screenshot 2.
So the close event mechanism works OK. We just have to figure out why the dialog just closes by itself.
Thanks Yip, the error I am getting pertains to not finding the google map key or something along those lines. May not be a real issue though. I've attached a screen shot for reference.
I don't see the automatic close in my test case though. Clicking on the open button opens the popup but I seem to get stuck in an infinite loop of requests, possibly this may be a configuration issue or it may be the same issue that is causing the popup to close on your end.
It may also be an issue as to how the ace:ajax tag is being used. I played around with some of the attributes but I wasn't able to get it to work properly.
Tested in williamspoc by just copying the <ace:ajax> markup. It seems to work fine. See video at http://screencast.com/t/xaL2O4g8s and screenshots 4 and 5.
So this must be some config. issue(s)?
Removing the gmap gets rid of the error but I now see the issue where it is closed right away. The firebug console shows that all the resources (Javascript/CSS/etc) continuously get called.
I think the reason why the POC works is that the dialog is mainly controlled by JavaScript. It is opened by the onclick call and not the change of the visible attribute on the server side.
I did a quick test in integrating the ace:ajax tag into their app and i could see the same behavior that I see in my test case. With my test case, clicking on a button that shows the dialog show the dialog for a second and then the close listener is called, this closing the dialog. Possibly this is a case where the ace:ajax tag is not being used properly since it seems to be called when the dialog is opened.
Looks like the enhancement made in ICE-7216 has some adverse effects with the close event handling mechanism.
"visible", i.e. "autoOpen" in jQuery, was never meant to be used to open and close the dialog. Dialog is a client-side component. By trying to make "visible" work like our old components, we are forcing it to work like server side components. Bound to have conflicts and complications.
Still trying out other ways of re-doing ICE-7216 that will also work with this use case. So far no luck.
Fixed. See video at http://screencast.com/t/Fd0fpE9jj5.
Revision: 25836
Modified : /icefaces-ee/scratchpads/grimlock/icefaces/ace/component/resources/icefaces.ace/dialog/dialog.js
Modified : /icefaces-ee/scratchpads/grimlock/icefaces/ace/component/src/org/icefaces/ace/component/dialog/DialogRenderer.java
I've tried adding this call in a basic test case. Adding the ace:ajax tag seems to be causing some errors on the client side. Attached is a basic test case that I'm using.