2 weeks ago, they are relative to Orbeon's
application context:
<link rel="stylesheet"
href="/test/ops/xforms-server/xforms-min.css" type="text/css"
p0:url-norewrite="true">
<script type="text/javascript" src="/test/ops/xforms-server/xforms-min.js" p0:url-norewrite="true"></script> With last nights, they are generated
as absolute and therefore broken:
<link rel="stylesheet" href="/xforms-server/xforms-min.css" type="text/css"> <script type="text/javascript" src="/xforms-server/xforms-min.js"></script> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jean-Luc,
I don't reproduce this. I just downloaded the latest nightly and all the examples seem to work fine. I wonder what could be wrong. You wouldn't happen to have a custom epilogue without oxf:rewrite-html by any chance? -Erik On Mar 27, 2008, at 11:28 AM, Jean Luc wrote: > 2 weeks ago, they are relative to Orbeon's application context: > > <link rel="stylesheet" href="/test/ops/xforms-server/xforms-min.css" > type="text/css" p0:url-norewrite="true"> > <script type="text/javascript" src="/test/ops/xforms-server/xforms- > min.js" p0:url-norewrite="true"></script> > > > With last nights, they are generated as absolute and therefore broken: > > <link rel="stylesheet" href="/xforms-server/xforms-min.css" > type="text/css"> > <script type="text/javascript" src="/xforms-server/xforms-min.js"></ > script> > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
No, not at all. We are using Orbeon as an XForms engine only, via the filter.
I had a look in your code, XHeadHandler (if I recall correctly that was how the class is named, I don't have the code where I am now but remember the name was close to the above, you'll know what class I mean) hasn't been updated since January and I was puzzled what could have caused the change. You have a good point, the lack of p0:url-norewrite is relevant. I haven't changed the epilogue. I'll try with this night's build tomorrow (at least to go again through the steps). In the meantime, if you have suggestions about what debugging settings to enable, please let me know. Thanks, JL On Thu, Mar 27, 2008 at 8:30 PM, Erik Bruchez <[hidden email]> wrote: Jean-Luc, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Erik Bruchez
Having downloaded the real latest sources (and 3.6.0.200803280424):
final String[] attributesList = new String[] { "rel", "stylesheet", "href", response.rewriteResourceURL(combinedResourceName, false), "type", "text/css" }; was changed to: final String[] attributesList = new String[] { "rel", "stylesheet", "href", combinedResourceName, "type", "text/css" }; so there's no more rewriting. However, what is puzzling is that the browsers (IE6 and FF2 , all the latest patches) don't even *try* to get the JS from the server! I checked the older ops build with a QA server and the form having the following in <head> is rendered ok: <head> <link rel="stylesheet" href="/test/ops/xforms-server/xforms-min.css" type="text/css" p0:url-norewrite="true"> <script type="text/javascript" src="/test/ops/xforms-server/xforms-min.js" p0:url-norewrite="true"></script> With the recent build, the following is generated in the html page for the same for. <head> <link rel="stylesheet" href="/xforms-server/xforms-min.css" type="text/css"> <script type="text/javascript" src="/xforms-server/xforms-min.js"></script> But the puzzling thing is that the web server shows no attempt to fetch the JS and the CSS, even after clearing the cache completely and restarting it (I set FF to delete everything when it's closed, cache, authenticated sessions, everything). If I access a sample at http://server/ops/xforms-sandbox/sample/sort I get: <link rel="stylesheet" href="/ops/xforms-server/xforms-min.css" type="text/css"> <script type="text/javascript" src="/ops/xforms-server/xforms-min.js"> which works because it has that /ops. Hmmm.. I think it's related to the deployment context. ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Thursday, March 27, 2008 8:30 PM Subject: [ops-users] Re: JS and CSS links are broken (no longer relative) in the last build(s) > Jean-Luc, > > I don't reproduce this. I just downloaded the latest nightly and all > the examples seem to work fine. > > I wonder what could be wrong. You wouldn't happen to have a custom > epilogue without oxf:rewrite-html by any chance? > > -Erik > > On Mar 27, 2008, at 11:28 AM, Jean Luc wrote: > >> 2 weeks ago, they are relative to Orbeon's application context: >> >> <link rel="stylesheet" href="/test/ops/xforms-server/xforms-min.css" >> type="text/css" p0:url-norewrite="true"> >> <script type="text/javascript" src="/test/ops/xforms-server/xforms- >> min.js" p0:url-norewrite="true"></script> >> >> >> With last nights, they are generated as absolute and therefore broken: >> >> <link rel="stylesheet" href="/xforms-server/xforms-min.css" >> type="text/css"> >> <script type="text/javascript" src="/xforms-server/xforms-min.js"></ >> script> >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Jean Luc-2
Ah, at least I solved the mystery of the no attempt: the browser does
attempt, but OC4J doesn't appear to log http requests for non-existent applications (which is the case, from its point of view, because the URL is missing the initial context). OK, so we are down to whether response.rewriteResourceURL() should have been removed. Can you have a look? Thanks a lot, JL ----- Original Message ----- From: "Jean Luc" <[hidden email]> To: <[hidden email]> Sent: Friday, March 28, 2008 1:25 PM Subject: Re: [ops-users] Re: JS and CSS links are broken (no longer relative) in the last build(s) > Having downloaded the real latest sources (and 3.6.0.200803280424): > > final String[] attributesList = new String[] { "rel", "stylesheet", > "href", response.rewriteResourceURL(combinedResourceName, false), "type", > "text/css" }; > > was changed to: > > final String[] attributesList = new String[] { "rel", "stylesheet", > "href", combinedResourceName, "type", "text/css" }; > > so there's no more rewriting. However, what is puzzling is that the > browsers (IE6 and FF2 , all the latest patches) don't even *try* to get > the JS from the server! > > I checked the older ops build with a QA server and the form having the > following in <head> is rendered ok: > > <head> > <link rel="stylesheet" href="/test/ops/xforms-server/xforms-min.css" > type="text/css" p0:url-norewrite="true"> > <script type="text/javascript" src="/test/ops/xforms-server/xforms-min.js" > p0:url-norewrite="true"></script> > > With the recent build, the following is generated in the html page for the > same for. > > <head> > <link rel="stylesheet" href="/xforms-server/xforms-min.css" > type="text/css"> > <script type="text/javascript" > src="/xforms-server/xforms-min.js"></script> > > But the puzzling thing is that the web server shows no attempt to fetch > the JS and the CSS, even after clearing the cache completely and > restarting it (I set FF to delete everything when it's closed, cache, > authenticated sessions, everything). > > If I access a sample at http://server/ops/xforms-sandbox/sample/sort I > get: > > <link rel="stylesheet" href="/ops/xforms-server/xforms-min.css" > type="text/css"> > <script type="text/javascript" src="/ops/xforms-server/xforms-min.js"> > > which works because it has that /ops. Hmmm.. I think it's related to the > deployment context. > > > > ----- Original Message ----- > From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Thursday, March 27, 2008 8:30 PM > Subject: [ops-users] Re: JS and CSS links are broken (no longer relative) > in the last build(s) > > >> Jean-Luc, >> >> I don't reproduce this. I just downloaded the latest nightly and all >> the examples seem to work fine. >> >> I wonder what could be wrong. You wouldn't happen to have a custom >> epilogue without oxf:rewrite-html by any chance? >> >> -Erik >> >> On Mar 27, 2008, at 11:28 AM, Jean Luc wrote: >> >>> 2 weeks ago, they are relative to Orbeon's application context: >>> >>> <link rel="stylesheet" href="/test/ops/xforms-server/xforms-min.css" >>> type="text/css" p0:url-norewrite="true"> >>> <script type="text/javascript" src="/test/ops/xforms-server/xforms- >>> min.js" p0:url-norewrite="true"></script> >>> >>> >>> With last nights, they are generated as absolute and therefore broken: >>> >>> <link rel="stylesheet" href="/xforms-server/xforms-min.css" >>> type="text/css"> >>> <script type="text/javascript" src="/xforms-server/xforms-min.js"></ >>> script> >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > > -------------------------------------------------------------------------------- > > >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Jean Luc-2
> Having downloaded the real latest sources (and 3.6.0.200803280424):
I understand better now. I had not understood that you were using
> > final String[] attributesList = new String[] { "rel", "stylesheet", > "href", response.rewriteResourceURL(combinedResourceName, false), > "type", "text/css" }; > > was changed to: > > final String[] attributesList = new String[] { "rel", "stylesheet", > "href", combinedResourceName, "type", "text/css" }; > > so there's no more rewriting. separate deployment. The code you are showing above was removed because we changed the rewriting strategy to always rewrite as a post-processing step in the epilogue. However, that post-processing step is disabled in separate deployment. That's why you are seeing the issue. I will try to look into it. Maybe we should just always enable rewriting even in separate deployment. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Forcing the rewriting based on a property would work for us.
Thanks, JL On Sun, Mar 30, 2008 at 3:26 AM, Erik Bruchez <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Ok, I will have a look at this.
-Erik On Mar 30, 2008, at 2:23 PM, Jean Luc wrote: > Forcing the rewriting based on a property would work for us. > > Thanks, > JL > > On Sun, Mar 30, 2008 at 3:26 AM, Erik Bruchez <[hidden email]> > wrote: > > Having downloaded the real latest sources (and 3.6.0.200803280424): > > > > final String[] attributesList = new String[] { "rel", "stylesheet", > > "href", response.rewriteResourceURL(combinedResourceName, false), > > "type", "text/css" }; > > > > was changed to: > > > > final String[] attributesList = new String[] { "rel", "stylesheet", > > "href", combinedResourceName, "type", "text/css" }; > > > > so there's no more rewriting. > > I understand better now. I had not understood that you were using > separate deployment. > > The code you are showing above was removed because we changed the > rewriting strategy to always rewrite as a post-processing step in the > epilogue. > > However, that post-processing step is disabled in separate deployment. > > That's why you are seeing the issue. > > I will try to look into it. Maybe we should just always enable > rewriting even in separate deployment. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Any chance of an update on this? I've just tried last night's build but the issue is still present. Thanks, JL ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Monday, March 31, 2008 9:12 PM Subject: [ops-users] Re: Re: Re: Re: Re: JS and CSS links are broken (no longer relative) in the last build(s) > Ok, I will have a look at this. > > -Erik > > On Mar 30, 2008, at 2:23 PM, Jean Luc wrote: > >> Forcing the rewriting based on a property would work for us. >> >> Thanks, >> JL >> >> On Sun, Mar 30, 2008 at 3:26 AM, Erik Bruchez <[hidden email]> >> wrote: >> > Having downloaded the real latest sources (and 3.6.0.200803280424): >> > >> > final String[] attributesList = new String[] { "rel", "stylesheet", >> > "href", response.rewriteResourceURL(combinedResourceName, false), >> > "type", "text/css" }; >> > >> > was changed to: >> > >> > final String[] attributesList = new String[] { "rel", "stylesheet", >> > "href", combinedResourceName, "type", "text/css" }; >> > >> > so there's no more rewriting. >> >> I understand better now. I had not understood that you were using >> separate deployment. >> >> The code you are showing above was removed because we changed the >> rewriting strategy to always rewrite as a post-processing step in the >> epilogue. >> >> However, that post-processing step is disabled in separate deployment. >> >> That's why you are seeing the issue. >> >> I will try to look into it. Maybe we should just always enable >> rewriting even in separate deployment. >> >> -Erik >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jean-Luc,
Not yet, but it's been on my todo list for a long time! -Erik On Apr 24, 2008, at 11:33 AM, Jean Luc wrote: > Hi Erik, > > Any chance of an update on this? I've just tried last night's build > but the issue is still present. > > Thanks, > JL > > > ----- Original Message ----- From: "Erik Bruchez" > <[hidden email]> > To: <[hidden email]> > Sent: Monday, March 31, 2008 9:12 PM > Subject: [ops-users] Re: Re: Re: Re: Re: JS and CSS links are broken > (no longer relative) in the last build(s) > > >> Ok, I will have a look at this. >> >> -Erik >> >> On Mar 30, 2008, at 2:23 PM, Jean Luc wrote: >> >>> Forcing the rewriting based on a property would work for us. >>> >>> Thanks, >>> JL >>> >>> On Sun, Mar 30, 2008 at 3:26 AM, Erik Bruchez <[hidden email]> >>> wrote: >>> > Having downloaded the real latest sources (and >>> 3.6.0.200803280424): >>> > >>> > final String[] attributesList = new String[] { "rel", >>> "stylesheet", >>> > "href", response.rewriteResourceURL(combinedResourceName, false), >>> > "type", "text/css" }; >>> > >>> > was changed to: >>> > >>> > final String[] attributesList = new String[] { "rel", >>> "stylesheet", >>> > "href", combinedResourceName, "type", "text/css" }; >>> > >>> > so there's no more rewriting. >>> >>> I understand better now. I had not understood that you were using >>> separate deployment. >>> >>> The code you are showing above was removed because we changed the >>> rewriting strategy to always rewrite as a post-processing step in >>> the >>> epilogue. >>> >>> However, that post-processing step is disabled in separate >>> deployment. >>> >>> That's why you are seeing the issue. >>> >>> I will try to look into it. Maybe we should just always enable >>> rewriting even in separate deployment. >>> >>> -Erik >>> >>> -- >>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>> http://www.orbeon.com/ >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > > -------------------------------------------------------------------------------- > > >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |