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 31, 2012, 8:52 PM
9 Posts
topic has been resolvedResolved

blank black page returned using mobile controls

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: mobile
  • Replies: 8
I'm going through the tutorial at http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPages_Mobile_Controls_Tutorial_ and when I put in the simplest of all pages, I get a plain black screen when I try to look at it in a browser.  There is no error; it's just a plain black page with no text and it does not matter which browser or device I use.  My code is below.  One odd thing I notice is I see a number of requests pointing to "dojoroot-1.6.1" in my domlog.nsf and I only have 1.5.1 installed on my server under domino\js.  Yesterday, I just got my server upgraded to 8.5.3 with FP1.
 
 <?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:singlePageApp id="xpagesMobileApp" selectedPageName="Details">
<xe:appPage id="appPage1" pageName="homePage">
<xe:djxmHeading id="homePageHeading" label="Home">
</xe:djxmHeading>
<xe:djxmLineItem id="djxmLineItem1" label="Projects"></xe:djxmLineItem></xe:appPage>
</xe:singlePageApp>
</xp:view>

Apr 2, 2012, 1:34 PM
298 Posts
Did you look at the source?
The default device is Android and that has a black background. If somehow your one line item was rendered as black text it would not show. Check the page source to see if that is the issue. Howard
Apr 2, 2012, 2:35 PM
9 Posts
Re: blank black page returned using mobile controls
Thanks, but no, it was the  selectedPageName parameter.  I changed it in the singlePageApp property, but I kept the text from the example tutorial in the appPage part. That's why I got nothing but a blank page.  My question was more about the blank page than the color.
Apr 3, 2012, 2:10 PM
122 Posts
Re: blank black page returned using mobile controls
selectedPageName is the page you first want to show. It's the same concept as a tabbed table, where selectedTab is the tab to show by default.
 
Dojo 1.6.1 is loaded from an OSGi plugin. The files are in the jar, not in the domino folder like 1.5.1. iNotes, though, requires 1.5.1, which is why those files also get installed. There's more on the Dojo plugin and how to access the files within the jar in the XPages Portable Command Guide book.
Apr 4, 2012, 9:12 AM
51 Posts
Re: blank black page returned using mobile controls
 I have the same kind of behavior.
I have an Iphone mobile page ,called mainPage and on the same xsp page a  resultPage.
On this resultpage I have links to pictures and pdf files. When the user clicks on a link to open the image or pdf file they open fine , but when clicking on Iphone's safari back button a blank page is displayed. The returned url is pagename# resulPage&resetContent=true or false (what's specified on the mobile page)
How can this be solved ? 
 
Apr 4, 2012, 10:03 AM
122 Posts
Re: blank black page returned using mobile controls
According to your post, the mobile page is called resultPage, but the URL it's going to is resulPage (missing the "t"). That could be the cause of the problem. Is there a typo in your code or the post?
 
It might be worth using Safari browser to find out where the problems lie. There is a Develop menu available for changing user agent and bringing up a console similar to FireBug. See my blog post for more details -  http://www.intec.co.uk/quick-tip-for-ios-browser-development/
Apr 4, 2012, 11:18 AM
51 Posts
Re: blank black page returned using mobile controls
 Paul,
I followed your Xpages Mobile Controls session at Blug. Thank you !
Above ; yes it's a typo of my post. 
I activated the debug console on my Iphone , but no errors are returned. 
 I'll install Safari on my pc to see of this can help me out ...
Apr 4, 2012, 12:39 PM
126 Posts
Re: blank black page returned using mobile controls
 There seems to be an issue in XPages mobile where having &resetContent=true / false in the browser causes the page to be blank when trying to link to it or press back.

eg.
.....mobile.xsp#home
 
will bring to a  mobile page called home fine
however trying to link to
 
 ...mobile.xsp#home&resetContent=true
 
seems to load a blank page, currently the moveTo simple action has no way of turning this off.
 
It is being investigated 
Apr 5, 2012, 3:57 PM
126 Posts
Re: blank black page returned using mobile controls
 @Marc

I have found the cause of your issue and have added a fix to the ExtLib, it will be in the next build. I'm not sure at this time when that will be. 

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