This content has been marked as final.
Show 2 replies
-
1. Re: Getting the ".seam" url-pattern dynamically
nickarls Sep 16, 2008 7:48 AM (in response to monkeyden)Ummm. I'm not sure you can read the servlet mapping info. At least from JavaScript. And even if you could, you'd have a hard time finding someone who has actually had to change the pattern in a project ;-) Besides, you could always isolate the
.seam
into one place in JavaScript. Just add a CONSTANT and add that. -
2. Re: Getting the ".seam" url-pattern dynamically
monkeyden Sep 16, 2008 9:21 AM (in response to monkeyden)Thanks Nick. I knew all that. I just wondered if someone thought of a workaround I hadn't.
I also have a #{serverBasePath} in components.xml, for inclusion of static resources. I'll likely just add a factory for the extension as well.