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



Aug 30, 2013, 10:30 AM
22 Posts

Xpages launch properties and image file

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 3

I've a simple phonebook application. Database launch properties are set to open a designated xpages Home.xsp.

When I use this url to open the application the used background Image file resources are not loaded.

http://server/Folders/Phonebook.nsf

 But when I use the url

http://server/Folders/Phonebook.nsf/Home.xsp

The images are loaded correctly.

Any a clue what this cause ?

 

the image is in a table

<xp:table style="width:100%" cellpadding="0" cellspacing="0" border="0">

<xp:tr>

<xp:td style="width:45%;height:90px;color:rgb(255,255,255);background-image:url(Logo-Left.jpg)" valign="top">

 

 

Kind regards

 

Aug 30, 2013, 12:21 PM
586 Posts
hmmm

I forget the technical details of this.  It has to do with your path structure.  Not having the pagename.xsp there.

There are ways to deal with this more from a coding perspective.....  But maybe the easiest way is to just avoid the url without the page name.

Create a new page called start.xsp or something.  Use that as your launch page.  In that page in something like beforePageLoad do a context.redirectToPage("home.xsp")....   something like that.

That should solve your problem.

Sep 3, 2013, 8:44 AM
33 Posts
Search for relative URLs.

Try having a look for relative URLs.  I am not sure off the top of my head, but you may need to use a slash in front of it or a dot and a slash or even double dot and a slash.  

Nov 21, 2013, 9:45 AM
178 Posts
Still not fixed?

stupid that the xpages editor does not fix the correct code.


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