[
https://jira.jboss.org/jira/browse/JBIDE-3734?page=com.atlassian.jira.plu...
]
Yura Zhishko commented on JBIDE-3734:
-------------------------------------
In addition I updated project in JBIDE-3708. You can download it from there. You will find
next interesting situation with a4j:page usage:
<f:view>
<h:outputText value="Begin" />
<!-- a4j:page --> <!-- JBIDE - 3718, 3734 -->
<a4j:page styleClass="btn" style="background-color:green;">
<f:facet name="head">
<title>Main</title>
<link rel="stylesheet"
href="main.css" type="text/css">
</f:facet>
<h:outputText value="MainText" />
<h:inputText value="Enter some value" />
</a4j:page>
</f:view>
First: Linked CSS file isn't linked in VPE.
Second: In spite of <h:outputText value="Begin"> is outside a4j:page, it
is inserted inside <body> of rendered <a4j:page> and all styles are applied
for this component as for all page inside <a4j:page>
style and styleClass attrs don't work in a4j:page
-------------------------------------------------
Key: JBIDE-3734
URL:
https://jira.jboss.org/jira/browse/JBIDE-3734
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor Templates
Affects Versions: 3.0.0.CR2
Reporter: Yura Zhishko
Assignee: Yahor Radtsevich
1) According to RichFaces DevGuide next source code
<f:view>
<a4j:page>
<f:facet name="head">
<!--...Head Content here-->
</f:facet>
<!--...Page Content here-->
</a4j:page>
</f:view>
will be rendered next way:
<html>
<head>
<!--...Head Content here-->
</head>
<body>
<!--...Page Content Here-->
</body>
</html>
See example:
http://livedemo.exadel.com/richfaces-demo/richfaces/page.jsf?c=page
So, usage of this component inside <body> isn't correct, because this component
creates body itself. Setting of style and styleClass attributes equals to setting of these
attributes in <body> tag, in which this component is rendered, but VPE doesn't
apply styles at all.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira