You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org> on 2006/12/06 11:01:24 UTC

[jira] Created: (TOBAGO-210)
<tc:out ... markup-style rendered before default style
------------------------------------------------------

                 Key: TOBAGO-210
                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.9-RC1
         Environment: all
            Reporter: Rainer Rohloff
         Attachments: markup-prob.gif

<tc:out value="Header line" markup="header" />

will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12455988 ] 
            
Rainer Rohloff commented on TOBAGO-210:
---------------------------------------

<div class="tobago-panel-default " id="main:_id48" ><span class="tobago-out-default tobago-out-markup-header ">Date</span></div>

style.css
=======
/* out  ------------------------------------------------------------------- */
.tobago-out-default {
	font-weight: normal;
	font-size: 12px;
	font-family: arial, helvetica, sans-serif;
}

.tobago-out-markup-header {
	background: #ffffff none;
	height: 20px;
	width: 100%;
	display: block;
	border-bottom: 1px solid #b2b2b2;
	font: bold 12px arial, helvetica, sans-serif;
	color: #000066;
	padding-left: 5px;
	padding-top: 2px;
	padding-bottom: 2px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

The class entry seems OK but the text ist rendered with normal font-weight (in IE & FF)
Where ist the problem?


> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12456018 ] 
            
Volker Weber commented on TOBAGO-210:
-------------------------------------

Just read in your comment that this problem is also in ff.
The DomInspector extension is very usefull for this kind of problems.

select the tc:out element in the dom-tree and select "css style rules" on the details panel.
There you can see which classes in which order are applies.

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12459202 ] 
            
Rainer Rohloff commented on TOBAGO-210:
---------------------------------------

fyi

I assumed the sequence, in which the style Classes is rendered, influences the evaluation order. The sequence in the css file seems to be more relevant for the evaluation.

Example:

<... class="class1 class2 " />

If class2 occures before class1 in the css file, class2 cannot overwrite the attributes from class1.


> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif, markup-prob3.gif, markup-prob3a.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (TOBAGO-210) Posted by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOBAGO-210?page=all ]

Rainer Rohloff resolved TOBAGO-210.
-----------------------------------

    Resolution: Invalid

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif, markup-prob3.gif, markup-prob3a.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12455962 ] 
            
Bernd Bohmann commented on TOBAGO-210:
--------------------------------------

Can you add the rendered html code, please.

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12458045 ] 
            
Rainer Rohloff commented on TOBAGO-210:
---------------------------------------

I have added the style to .../mozilla/style/style.css and .../msie/style/style.css - 
Now everything is correctly rendered.

Thanks Rainer

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif, markup-prob3.gif, markup-prob3a.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12456007 ] 
            
Volker Weber commented on TOBAGO-210:
-------------------------------------

Please take a look into the generated html header:
ensure that your style.css is included.
did any other of your customized styles work?

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12456355 ] 
            
Volker Weber commented on TOBAGO-210:
-------------------------------------

Try adding the markup style also to the file .../html/nlb/mozilla/style/style.css
or remove the tobago-out-default from this file.

The lower classes from later files overwrite the higher classes in first files.

Regards,
  Volker


> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif, markup-prob3.gif, markup-prob3a.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOBAGO-210) Posted by "Rainer Rohloff (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-210?page=comments#action_12456012 ] 
            
Rainer Rohloff commented on TOBAGO-210:
---------------------------------------

The custom style.css is included and the other style definition seems to work.
If in style class "tobago-out-default" the entry font-weight is omitted, then the text ist rendered correctly in bold.

...
<link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css" media="screen" type="text/css"
><link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css" media="screen" type="text/css"
><link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css" media="screen" type="text/css"
><link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/style/style.css" media="screen" type="text/css"
><link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/nlb/standard/style/style.css" media="screen" type="text/css"
><link rel="stylesheet" href="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/nlb/mozilla/style/style.css" media="screen" type="text/css"
><script src="/BaseOne3.5-jsf/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js" type="text/javascript"
>
...

> <tc:out ... markup-style rendered before default style
> ------------------------------------------------------
>
>                 Key: TOBAGO-210
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-210
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>         Environment: all
>            Reporter: Rainer Rohloff
>         Attachments: markup-prob.gif, markup-prob2.gif
>
>
> <tc:out value="Header line" markup="header" />
> will render style-class in wrong order - the markup style must rendered at last position for overwriting the default definitions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira