Hi Steve,
yes the url is working and it looks like a style sheet.

But I believe the URL looks incorrect, I would assume something which
contains "skins/aqua/aqua.css" as I have maintained in trinidad-skins.xml.

The rest of your suggestion seems also correct in my settings.

Thank you again for your help, I'll continue to try.

Best regards, Lars

2009/2/25 Steve Horne <[email protected]>

> Looks OK to me...
>
> A couple of points:
> Try Firefox Web Developer toolbar-- it will allow you to view the CSS
> attached to the doc, plus it has lots of cool things to play with. Can you
> use the URL shown (e.g.
> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F<http://localhost:8080/de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F>)
>  and if you do, does it look like a CSS?
>
> If you are using security, make sure your skin is not in a secured URL.
>
> Did you include the resources servlet in your web.xml?
>
>     <!-- resource loader servlet -->
>     <servlet>
>         <servlet-name>resources</servlet-name>
>
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>resources</servlet-name>
>         <url-pattern>/adf/*</url-pattern>
>     </servlet-mapping>
>
> That's all I can think of for now-- hope that helps.
>
> -Steve
>
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 5:01 PM, Lars Vogel <[email protected]>wrote:
>
>> Thank you. Here it is:
>>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
>> http://www.w3.org/TR/html4/loose.dtd";><html dir="ltr" lang="en"><head><meta
>> name="generator" content="Apache MyFaces Trinidad"><link rel="stylesheet"
>> charset="UTF-8" type="text/css" href="
>> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F<http://localhost:8080/de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
>> "></head><body onload="_checkLoad()" onunload="_checkUnload(event)"><script
>> type="text/javascript">var _AdfWindowOpenError='A popup window blocker
>> has been detected in your browser. Popup blockers interfere with the
>> operation of this application. Please disable your popup blocker or allow
>> popups from this site.';</script><script type="text/javascript" src="
>> /de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F<http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
>> "></script><a name="top"></a><noscript>This page uses JavaScript and
>> requires a JavaScript enabled browser.Your browser is not JavaScript
>> enabled.</noscript><form id="j_id_jsp_1242946078_2" name="
>> j_id_jsp_1242946078_2" style="margin:0px" method="POST" onkeypress="return
>> _submitOnEnter(event,'j_id_jsp_1242946078_2');" action="
>> /de.vogella.jsf.skins/Skin.jsf;jsessionid=A947A821E4D42BD05767BA554DE19E8F
>> "><div><table cellpadding="0" cellspacing="0" border="0" summary="" style
>> ="width: auto"><tbody><tr><td class="x4w" colspan="1"><table cellpadding
>> ="0" cellspacing="0" border="0" width="100%" summary=""><tbody><tr><td>
>> </td><td></td></tr><tr id="j_id_jsp_1242946078_4__xc_" class="x1u
>> p_AFRequired"><td class="xu x4z" nowrap><span id="
>> j_id_jsp_1242946078_4::icon" style="display:none;"><a name="
>> _msgAnc_j_id_jsp_1242946078_4" title="Error" class="xc">X</a></span><span
>> title="Required" class="xf">*</span>&nbsp;<label for="
>> j_id_jsp_1242946078_4" accesskey="F"><span class="x9r">F</span>irstame
>> </label></td><td valign="top" nowrap class="x51"><input id="
>> j_id_jsp_1242946078_4" name="j_id_jsp_1242946078_4" class="x25" size="30"
>> type="text"><div class="x52"><span id="j_id_jsp_1242946078_4::msg" class
>> ="x9e"></span></div></td></tr><tr id="j_id_jsp_1242946078_5__xc_" class="
>> x1u"><td class="xu x4z" nowrap><span id="j_id_jsp_1242946078_5::icon"
>> style="display:none;"><a name="_msgAnc_j_id_jsp_1242946078_5" title="
>> Error" class="xc">X</a></span>&nbsp;<label for="j_id_jsp_1242946078_5"
>> accesskey="L"><span class="x9r">L</span>astname</label></td><td valign="
>> top" nowrap class="x51"><input id="j_id_jsp_1242946078_5" name="
>> j_id_jsp_1242946078_5" class="x25" size="30" type="text"><div class="x52
>> "><span id="j_id_jsp_1242946078_5::msg" class="x9e"></span></div></td>
>> </tr></tbody></table></td></tr></tbody></table></div><input type="hidden"
>> name="org.apache.myfaces.trinidad.faces.FORM" value="
>> j_id_jsp_1242946078_2"><span id="tr_j_id_jsp_1242946078_2_Postscript"><input
>> type="hidden" name="javax.faces.ViewState" value="!dfde805"><script type
>> ="text/javascript">function _j_id_jsp_1242946078_2Validator(f,s){return
>> _validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
>> 0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
>> value.']);var j_id_jsp_1242946078_2_SF={};</script></span><script type="
>> text/javascript">_submitFormCheck();</script></form></body><!--Created by
>> Apache Trinidad (Apache MyFaces Trinidad API - 1.2.10/Apache MyFaces
>> Trinidad Impl - 1.2.10), skin:minimal.desktop--></html>
>>
>> 2009/2/24 Steve Horne <[email protected]>
>>
>>> After your page renders, in the browser, view the source and paste the
>>> entire HTML into your reply and let's see what is being generated...
>>>
>>> -Steve
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>> On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel 
>>> <[email protected]>wrote:
>>>
>>>> Hi Steve,
>>>> thanks. I tried your version but without success. If I look at the
>>>> source I see that skin:minimal.desktop is used.
>>>>
>>>> <!--Created by Apache Trinidad (Apache MyFaces Trinidad API -
>>>> 1.2.10/Apache MyFaces Trinidad Impl - 1.2.10), skin:minimal.desktop-->
>>>>
>>>> Best regards, Lars
>>>>
>>>> 2009/2/24 Steve Horne <[email protected]>
>>>>
>>>>> The <tr:document> tag will automatically include <html>, <head> and
>>>>> <body> tags...  If you view source, do you see multiple <body> tags?  Just
>>>>> as a suggestion, try removing the <html> and <body> tags in your page.
>>>>> Try this:
>>>>>
>>>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>>>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>>>>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html";
>>>>> prefix="trh"%>
>>>>> <f:view>
>>>>>  <tr:document>
>>>>>  <tr:form>
>>>>> <tr:panelFormLayout>
>>>>>  <tr:inputText labelAndAccessKey="&Firstame"
>>>>> required="true"></tr:inputText>
>>>>> <tr:inputText labelAndAccessKey="&Lastname"></tr:inputText>
>>>>>  </tr:panelFormLayout>
>>>>> </tr:form>
>>>>>
>>>>> </tr:document>
>>>>> </f:view>
>>>>>
>>>>>
>>>>> “Many men go fishing all of their lives without knowing it is not fish
>>>>> they are after.”
>>>>> - Henry David Thoreau
>>>>>
>>>>>
>>>>> On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> Hi Steve,
>>>>>> thank you. Attached my JSP file which I believe contains correctly the
>>>>>> <tr:document> tag.
>>>>>>
>>>>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>>>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>>>>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>>>>>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html";
>>>>>> prefix="trh"%>
>>>>>> <html>
>>>>>> <f:view>
>>>>>>  <body>
>>>>>>  <tr:document>
>>>>>> <tr:form>
>>>>>> <tr:panelFormLayout>
>>>>>>  <tr:inputText labelAndAccessKey="&Firstame"
>>>>>> required="true"></tr:inputText>
>>>>>> <tr:inputText labelAndAccessKey="&Lastname"></tr:inputText>
>>>>>>  </tr:panelFormLayout>
>>>>>> </tr:form>
>>>>>>
>>>>>> </tr:document>
>>>>>>  </body>
>>>>>> </f:view>
>>>>>> </html>
>>>>>>
>>>>>> Best regards, Lars
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2009/2/24 Steve Horne <[email protected]>
>>>>>>
>>>>>> I'm guessing that you are using JSP and are NOT using the
>>>>>>> <tr:document> tag...
>>>>>>>
>>>>>>> <tr:document> will include the proper meta tags in the head that will
>>>>>>> get the correct skin.
>>>>>>>
>>>>>>> HTH
>>>>>>>
>>>>>>>
>>>>>>> “Many men go fishing all of their lives without knowing it is not
>>>>>>> fish they are after.”
>>>>>>> - Henry David Thoreau
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> my little example application does not pickup the skinning.  I
>>>>>>>> followed: http://myfaces.apache.org/trinidad/devguide/skinning.html
>>>>>>>>
>>>>>>>> I have two file in WEB-INF: trinidad-skins.xml and
>>>>>>>> trinidad-config.xml. I believe for skinning no change in web.xml and
>>>>>>>> faces-config.xml is necessary
>>>>>>>>
>>>>>>>> trinidad-skins.xml
>>>>>>>>
>>>>>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>>>>>> <skins xmlns="http://myfaces.apache.org/trinidad/skin";>
>>>>>>>>     <skin>
>>>>>>>>         <id>aqua.desktop</id>
>>>>>>>>         <family>aqua</family>
>>>>>>>>         <render-kit-id>
>>>>>>>>             org.apache.myfaces.trinidad.desktop
>>>>>>>>         </render-kit-id>
>>>>>>>>         <style-sheet-name>skins/aqua/aqua.css
>>>>>>>>         </style-sheet-name>
>>>>>>>>     </skin>
>>>>>>>> </skins>
>>>>>>>>
>>>>>>>>  trinidad-config.xml
>>>>>>>>
>>>>>>>> <?xml version="1.0"?>
>>>>>>>> <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config";>
>>>>>>>>     <!-- Enable debug output -->
>>>>>>>>     <debug-output>true</debug-output>
>>>>>>>>     <accessibility-mode>default</accessibility-mode>
>>>>>>>>     <skin-family>aqua</skin-family>
>>>>>>>> </trinidad-config>
>>>>>>>>
>>>>>>>> aqua.css in directory WebContent /skins/aqua/
>>>>>>>>
>>>>>>>> body {
>>>>>>>>     background-color: black;
>>>>>>>>     font-size: 60px;
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>> From Matts answer earlier I see that skin:minimal.desktop is used as
>>>>>>>> a skin for the JSP.
>>>>>>>>
>>>>>>>> Any obvious mistake I'm making?
>>>>>>>>
>>>>>>>> Best regards, Lars
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lars
>>>>>> http://www.vogella.de - Tutorial about Java, Eclipse and Web
>>>>>> programming
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lars
>>>> http://www.vogella.de - Tutorial about Java, Eclipse and Web
>>>> programming
>>>>
>>>
>>>
>>
>>
>> --
>> Lars
>> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>>
>
>


-- 
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming

Reply via email to