This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 4, 2011, 3:16 PM
4 Posts

Problems with partial refresh and Dijit.Dialog

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
Hi,
 
I have a problem with partial refresh in IE7 whilst using the Dijit.Dialog control. It works fine in IE8, FF3.6, Chrome etc... I just can't get it to work in IE7!!!!
 
I have created a dialog picker which uses AJAX to look-up to any configurable DB/View and pull back 1 or more configurable values.
 
In the case below, the picker is used to pull back 1 or more unique keys which are feed in to a repeat control to display the selected documents.
 
In this instance the set-up is as follows: Xpage - custom control container 1 (CC1) - custom  control container 2(CC2)
 
 XPage is an outer shell used to contain a number of facets.
CC1 - is a facet which contains the panel that I am partially refreshing. The panel stores the repeat control and fields that will be updated from the selected value(s) in the look-up picker
CC2 - contains the look-up picker dialog control which can call the partial refresh.

I am using Jeremy Hodges XSP.executeOnServer to call the partial refresh when the dialog closes. When this occurs I loose the values of the fields set in CC1 which in turn causes the repeat control to fail.
 
I have tried a number of things to establish where the problem lies:

 If I embed the source code from CC1 directly in an xpage the problem is resolved.
If I call XSP.executeOnServer from a test button embedded on CC1 or CC2 I do not get any problem with a partial refresh.

The problem only occurs in IE7 after I have opened a Dijit.Dialog. I should point out I don't even have to select a value to update a field in CC1, the simple act of opening the dialog causes the problem.

I have tried moving the dialog back inside the form tag using the following code: (http://xpagesblog.com/xpages-blog/2010/4/10/xpages-compatible-dojo-dialog-reusable-component.html)

dojo.addOnLoad(function(){
dojo.query(".dijitDialog").forEach(function(eachDialog){
document.forms[0].appendChild(eachDialog);
});
});

But this didn't worth ether....


Anyone got any ideas?
Mar 7, 2011, 6:50 PM
40 Posts
Re: Problems with partial refresh and Dijit.Dialog
 Try using this widget :
 
 
There are certain cases where the dialog's construction is put off until it is shown. If thats the case here, when you move the contents inside  the form, the dojo dialog may actually move it back out again ... the component on that blog post will take care of both instances and may solve your problem.
Mar 8, 2011, 9:38 AM
4 Posts
Re: Problems with partial refresh and Dijit.Dialog
Hi Jeremy,
 
Thanks for taking the time to respond. I did try your code as well (your blog post put me on to this problem with dialogs in the first place) but unfortuntaly I still had the same problem. It seems strange that if I move the code into an xpage directly and out of the custom control I don't receive the problem anymore? The other strange thing is why IE7 only?

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal