Good day everyone,
I have just started using primeFaces and I found it very useful.
However, can the line border and column header fill be removed?
I am using IE 7 and Mozilla FireFox 3.5.3.
Thank you =)
Dexter
help with layout ):
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
No you basically don't need to access that file. You just need to override the default css properties. Such as placing this style on your page;
This style applied the header, removes the border.
Code: Select all
<style type="text/css">
.yui-skin-sam .yui-layout .yui-layout-hd {
border: 0;
}
</style>
Thanks cagatay! It works =)
I also realised that mozilla firefox 3.5.3 display differently from my IE7.
When viewed in IE7, the header background color is blue and the collapse button is present.
However in firefox, the header and the collapse button did not show. Also the background of the header is the same as the background color of the body.
I understand that Firefox is able to display primefaces also, therefore is it due to my JSP coding?
My JSP codes are as follows:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:ft="http://primefaces.prime.com.tr/facestrace">
<head>
<title>Testing of PrimeFaces Layout</title>
<p:resources />
</head>
<body>
<f:view>
<p:layout fullPage="true">
<p:layoutUnit position="left" header="" width="300" collapse="true" resize="true" animate="false">
<DIV style="text-align:left; margin:5 10px">
<h:outputText value="Left Content" />
</DIV>
</p:layoutUnit>
<p:layoutUnit position="center" scroll="true" >
<DIV style="text-align:left; margin:5 10px">
Center block of the nested layout sfds
<br/><br/><br/>
<h:form style="text-align:left">
Email address:
<h:inputText value="#{registrationBean.email}"/><BR/>
Password:
<h:inputSecret value="#{registrationBean.password}"/><BR/>
<h:commandButton value="Sign Me Up!"
action="#{registrationBean.register}"/>
</h:form>
End of center block <br/>
</DIV>
</p:layoutUnit>
</p:layout>
</f:view>
</body>
</html>
I also realised that mozilla firefox 3.5.3 display differently from my IE7.
When viewed in IE7, the header background color is blue and the collapse button is present.
However in firefox, the header and the collapse button did not show. Also the background of the header is the same as the background color of the body.
I understand that Firefox is able to display primefaces also, therefore is it due to my JSP coding?
My JSP codes are as follows:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:ft="http://primefaces.prime.com.tr/facestrace">
<head>
<title>Testing of PrimeFaces Layout</title>
<p:resources />
</head>
<body>
<f:view>
<p:layout fullPage="true">
<p:layoutUnit position="left" header="" width="300" collapse="true" resize="true" animate="false">
<DIV style="text-align:left; margin:5 10px">
<h:outputText value="Left Content" />
</DIV>
</p:layoutUnit>
<p:layoutUnit position="center" scroll="true" >
<DIV style="text-align:left; margin:5 10px">
Center block of the nested layout sfds
<br/><br/><br/>
<h:form style="text-align:left">
Email address:
<h:inputText value="#{registrationBean.email}"/><BR/>
Password:
<h:inputSecret value="#{registrationBean.password}"/><BR/>
<h:commandButton value="Sign Me Up!"
action="#{registrationBean.register}"/>
</h:form>
End of center block <br/>
</DIV>
</p:layoutUnit>
</p:layout>
</f:view>
</body>
</html>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
We're planning to reimplement layout recently, the yui layout code we use is usually causing some problems with ie.
The new code for layout will be checked in today and a new snapshot will be built. This will be a reimplementation css parts so might not be backward compatible since we'll no longer use ui. I'll keep you updated.
The new code for layout will be checked in today and a new snapshot will be built. This will be a reimplementation css parts so might not be backward compatible since we'll no longer use ui. I'll keep you updated.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
dexter, layout is fully reimplemented, it looks and performs much better than the old layout. Unfortunately it's not backward compatible and new layout is not documented yet. If you're interested in a test drive you can grab the 1.0.0.RC-SNAPSHOT.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
The updated showcase demo is not up yet, it could definitely help for the new style. Can you wait for one more day? I'll stabilize the new layout and update the online showcase today.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 41 guests