Hi Holger,

I thought that might be the case.

Just for background, the use case driving this need is that I need to embed 
html snippets produced by SWP into web pages on other servers.  If I embed a 
full doc from TBL (versus just a snippet) using an iFrame, all the links are 
preserved and work as expected.  If I embed a snippet, however, the relative 
URLs are re-written to point to that server, not TBL.  The reason an iFrame 
will not work is that when following a link in the iFrame the next page is 
loaded into the frame not the browser window (of course) and this is not the 
behavior our users need.

We could easily make the TBL server name a constant.  In fact we are 
considering the need for our own configuration ontology to make scripting 
easier.  It's just another thing to remember, however when you are moving 
ontologies, scripts, etc... in a  typical production environment where you have 
TBC-ME/TBL for development, a QA TBL and a Production TBL instance.

Tim

From: [email protected] [mailto:[email protected]] 
On Behalf Of Holger Knublauch
Sent: Saturday, January 15, 2011 12:24 AM
To: [email protected]
Subject: Re: [topbraid-users] ui:createLink creates relative URLs - TBC-ME 3.4

Hi Tim,

I don't know how this would even be possible to implement, because TBL can be 
installed on any server, and does not know it's own URL(s) under which it can 
be accessed. Why don't you make this a constant somewhere, and use a SPIN 
function to retrieve it with whatever value you like.

Regards,
Holger


On Jan 15, 2011, at 12:16 PM, Smith, Tim wrote:


Hi,

Is it possible to have ui:createLink create absolute URLs?  It only returns 
"uspin?_resource=..."

If not, is it possible to get the URL for the servlet using SPARQL or another 
method so I can manually create the URL?

I need absolute URLs and I don't want to hard-code the server URL into an SWP 
script or in an ontology (especially since doing so would require manual 
updates every time I move from TBC to TBL)

Thanks,

Tim


--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to