-
1. Re: Reference extern javascript in jboss-portal.xml
dalmauf Oct 28, 2009 4:28 AM (in response to dalmauf)Sorry wrong duplicated message and right name is jboss-portlet.xml
Sorry one more time.... -
3. Re: Reference extern javascript in jboss-portal.xml
dalmauf Oct 29, 2009 4:01 AM (in response to dalmauf)Thank you Wesley for your fast answer. It seems that in your code there are two portlets packed in the same war file, isn't it (relative path is the same and share same descriptor file)? In my question I was trying to do a reference to an externe file but also packed in a different WAR file, e.g.:
in jboss-portlet.xml in MY_FILE_A.war:
script src="/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript"
and in jboss-portlet.xml in MY_FILE_B.war:
script src="/MY_FILE_A/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript"
But this last reference does not work. Maybe am I wrong with this approach?
Thank you very much one more time. -
4. Re: Reference extern javascript in jboss-portal.xml
wesleyhales Oct 29, 2009 8:36 AM (in response to dalmauf)I think the jboss-portlet.xml may add the servlet context (can't remember), but just see how your prtlet renders it locally by viewing html source. Then use that path in your other portlet, however you may need to create a top level template and ref your css and js in that.