Servus Leute!
Ich versuche schon länger -leider vergeblich- in meine .jspx eine externe css Datei einzubinden.
Ich poste hier mal den Sourcecode, vielleicht findet ihr ja den Fehler, ich finde ihn leider nicht.. :/
.jspx-datei:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="style.css" ?>
<!--
Document : createPortrait
Created on : 10.06.2008, 16:13:48
Author : xyz
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns="http://www.w3.org/1999/xhtml">
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>
<f:view>
<hanelGrid border="1" columns="2" width="100%" columnClasses="panel">
<!-- header == 1. Zeile -->
<f:facet name="header">
<hutputText value="LOGO" styleClass="panel"/>
</f:facet>
.............
die css. datei:
/*
Document : normal
Created on : 08.06.2008, 16:48:55
Author : xyz
Description:
Purpose of the stylesheet follows.
*/
.panel {
background-color: #FF0000;
}
.widthCol1 {
width: 50%;
}
....
Die css-Datei liegt im gleichen Verzeichnis wie die .jspx-Datei, also dürfte das href attribut richtig gesetzt sein...
Habt ihr ne Ahnung warum das nicht gehen kann????
DANKE FÜR EURE HILFE!!!!!
Ich versuche schon länger -leider vergeblich- in meine .jspx eine externe css Datei einzubinden.
Ich poste hier mal den Sourcecode, vielleicht findet ihr ja den Fehler, ich finde ihn leider nicht.. :/
.jspx-datei:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="style.css" ?>
<!--
Document : createPortrait
Created on : 10.06.2008, 16:13:48
Author : xyz
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns="http://www.w3.org/1999/xhtml">
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>
<f:view>
<hanelGrid border="1" columns="2" width="100%" columnClasses="panel">
<!-- header == 1. Zeile -->
<f:facet name="header">
<hutputText value="LOGO" styleClass="panel"/>
</f:facet>
.............
die css. datei:
/*
Document : normal
Created on : 08.06.2008, 16:48:55
Author : xyz
Description:
Purpose of the stylesheet follows.
*/
.panel {
background-color: #FF0000;
}
.widthCol1 {
width: 50%;
}
....
Die css-Datei liegt im gleichen Verzeichnis wie die .jspx-Datei, also dürfte das href attribut richtig gesetzt sein...
Habt ihr ne Ahnung warum das nicht gehen kann????
DANKE FÜR EURE HILFE!!!!!