[JBoss JIRA] Created: (JBIDE-1160) facelets template with css and subdirs do not render page in design and runtime
by Ronald van Kuijk (JIRA)
facelets template with css and subdirs do not render page in design and runtime
-------------------------------------------------------------------------------
Key: JBIDE-1160
URL: http://jira.jboss.com/jira/browse/JBIDE-1160
Project: JBoss Tools
Issue Type: Bug
Affects Versions: 2.0.0.Beta4
Environment: Windows 2000, jdk 1.5, eclipse 3.3
Reporter: Ronald van Kuijk
Priority: Minor
I have a (seam) project which uses facelets. The folder structure is like this:
root
|- layout
| |- template.xhtml
|- style
| |- style.css
|- folder1
| |- page1.1.xhtml
|- folder2
| |- page2.1.xhtml
|- home.xhtml
All pages reference this template in a ui:composition tag. The template contains a link to the css like
<link rel="stylesheet" type="text/css" media="all" href="/style/style.css" />
This way, all pages look good when designing them.
But when I publish my app on a none root folder in my appserver e.g. http://localhost:8080/myApp
none of the pages use the stylesheet. It is loaded from /style instead of /myApp/style
Using
<link rel="stylesheet" type="text/css" media="all" href="style/style.css" /> (no initial slash in the href)
only the homepage looks good in both design time and runtime
Getting all the pages working runtime, I changed the link to
<link rel="stylesheet" type="text/css" media="all" href="#{facesContext.externalContext.requestContextPath}/style/style.css" />
This works great in runtime, but makes designing the pages in the correct look and feel impossible.
It would be great if the designer could 'ignore' the #{facesContext.externalContext.requestContextPath} part of the href. so pages look good both design and runtime.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months
[JBoss JIRA] Created: (JBIDE-975) Project Archives created WAR file contain duplicated libs
by Aliaksey Nis (JIRA)
Project Archives created WAR file contain duplicated libs
---------------------------------------------------------
Key: JBIDE-975
URL: http://jira.jboss.com/jira/browse/JBIDE-975
Project: JBoss Tools
Issue Type: Bug
Components: Archives
Environment: WindowsXP SP2
rhds-win32-1.0.0.beta1.jar
Red Hat Developer Studio
Version: 1.0.0 BETA1
Build: 200709130228-nightly
JDK 1.5_08
Reporter: Aliaksey Nis
1. Create JSF 1.2 Kickstart project
2. Package explorer > Export > Web > WAR file
3. Export file as test1.war
4. In project Archives view > New archive > WAR
5 Make WAR archive for same Kickstart project with compressed zip option. Name it test2.war
6. Look at size of test1.war and test2.war.
test2.war 2 times bigger then test1.war
7. Open test2.war.
..\test2.war\WEB-INF\lib\ - folder containing libs
..\test2.war\WEB-INF\lib\WebContent\WEB-INF\lib\ - folder contain same libs (duplicated).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months