On Fri, Aug 1, 2008 at 11:28 AM, rageice <[EMAIL PROTECTED]> wrote:
>
> Ok, so, after have looked the css in details, I can only say that trinidad
> generates stranges CSS rules (or there is something I don't know about
> skinning, and it isn't explained in the section of the same name of the
> trinidad web site).
>
> My panelBox should be pink, but the generated css is:
> .x5g .x5q {
> background-color:pink;
> }
the x5g is due to compression. I recommend to turn
it off, for development.
see the trinidad dev guide for more infos on skinning
myfaces.apache.org/trinidad
Thx,
Matthias
>
> And the class x5g is never used in the generated html, so sure, there is a
> problem.
> Really, it seems to be impossible to use skinning with trinidad actually, my
> example is the most simple possible and it's not ok.
>
> Does someone know if the skinning strategy of trinidad will change ( I have
> read this somewhere but not sure )
>
> If someone has more informations about this...
>
> Thanks in advance.
>
>
> rageice wrote:
>>
>> Hello, sorry for my bad english.
>>
>> I am trying to use skins with trinidad, and I can't understand the result.
>>
>>
>> I have this in my page:
>> -------------------------------------
>> <?xml version='1.0' encoding='UTF-8' ?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <tr:document
>> xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:ui="http://java.sun.com/jsf/facelets"
>> xmlns:f="http://java.sun.com/jsf/core"
>> xmlns:h="http://java.sun.com/jsf/html"
>> xmlns:tr="http://myfaces.apache.org/trinidad"
>> xmlns:trh="http://myfaces.apache.org/trinidad/html"
>>>
>> <tr:panelBox text="info">
>> <tr:outputText value="hello"/>
>> </tr:panelBox>
>> </tr:document>
>> [/code]
>>
>> My css file:
>> [code]
>> af|panelBox::body {
>> background-color: pink;
>> }
>> ---------------------------------------
>>
>>
>> In trinidad-config.xml, I have
>> ---------------------------------------
>> [code]
>> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
>> <skin>
>> <id>skintest.desktop</id>
>> <family>skintest</family>
>> <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
>> <style-sheet-name>/css/trinidad/skintest.css</style-sheet-name>
>> </skin>
>> </skins>
>> ----------------------------------------
>>
>>
>> And in trinidad-config.xml:
>> ----------------------------------------
>> <?xml version="1.0"?>
>> <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
>> <debug-output>true</debug-output>
>> <skin-family>skintest</skin-family>
>> </trinidad-config>
>> ----------------------------------------
>>
>> AND NOW, THE GENERATED CODE:
>>
>> The html table in the response is:
>> ----------------------------------------
>> <td class="x5q">
>> <table width="100%" cellspacing="0" cellpadding="0" border="0"
>> summary="">
>> <tbody>
>> <tr>
>> <td class="x5r">informations</td>
>> </tr>
>> <tr>
>> <td>Vous n'ĂȘtes pas connectĂ©</td>
>> </tr>
>> </tbody>
>> </table>
>> </td>
>> ----------------------------------------
>>
>>
>> And finally, the x5q class is:
>> ----------------------------------------
>> .x5q {
>> background-color:pink;
>> padding:6px;
>> }
>> ----------------------------------------
>>
>> So, it should be ok.
>> but in the result, nothing is pink, the css file is too big and I don't
>> see the problem.
>> Does someone has ever had this problem?
>>
>>
>>
>> Thanks in advance.
>>
>
> --
> View this message in context:
> http://www.nabble.com/-trinidad--skinning-tp18757534p18770992.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org