Hi,
I created a application with primefaces 2.0 which used the beautiful blue complex full page layout from the showcase. After migrating to 2.0.1. this layout doesn't work anymore. I changed the layoutunit attributs (top instead of north, height for size), but I don't know, how to fix the css styles so it looks like before.
Can You help here?
Thanks, Rudolf
Migrate layout from 2.0 to 2.0.1
-
- Posts: 55
- Joined: 05 Oct 2009, 16:04
Primefaces 2.0.2 - Mojarra 2.0.2 - Windows XP SP3 - IE 8 / Firefox 3.6
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Hi,
Sorry for the inconvenience this has caused but old layout was causing a lot of problems. Newly implemented layout is superior.
We have a skinning example online;
http://www.primefaces.org:8080/prime-sh ... omplex.jsf
And the source for this is;
http://code.google.com/p/primefaces/sou ... plex.xhtml
Also user's guide has a skinning section for layout.
Hope this helps,
Sorry for the inconvenience this has caused but old layout was causing a lot of problems. Newly implemented layout is superior.
We have a skinning example online;
http://www.primefaces.org:8080/prime-sh ... omplex.jsf
And the source for this is;
http://code.google.com/p/primefaces/sou ... plex.xhtml
Also user's guide has a skinning section for layout.
Hope this helps,
-
- Posts: 55
- Joined: 05 Oct 2009, 16:04
Thanks, I already studied the new complex example, but I wasn't able to restore the old look. So it's just a "css" thing, which changed from:
2.0
to
2.0.1
So I am looking for the white / blue theme from 2.0, but didn't manage to migrate the css.
2.0
Code: Select all
<style type="text/css">
.pf-layout-pane-north {
background: url(../images/layout/summer_background.jpg) repeat-x;
}
.pf-layout-pane-west, .pf-layout-pane-east {
padding: 0;
}
.pf-layout-pane-south {
text-align: center;
}
img {
border: 0;
}
.pf-layout-resizer {
}
.yui-skin-sam .yui-navset .yui-content{
background: #FFFFFF;
}
</style>
2.0.1
Code: Select all
<style type="text/css">
/* Colors and Images for Dark theme */
body {
font-family: Georgia,"Times New Roman",Times,serif;
font-size: 90%;
}
.yui-skin-sam .yui-layout {
background-color:#000000;
}
.yui-layout-unit-top .yui-layout-bd {
background: url(../images/bottomBack.png) repeat-x;
}
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {
background-color: #333333;
}
.yui-skin-sam .yui-layout .yui-layout-hd {
background: url(../images/dialoghd.gif) repeat-x;
border-bottom-color: transparent;
}
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2 {
color:#FFFFFF;
}
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {
border-color: #666666;
}
a:link, a:visited {
color:#FFFFFF;
text-decoration: none;
}
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close {
background: url(../images/dialogclose.png) no-repeat;
border:0;
top:3px;
width:16px;
height:16px;
}
.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse,
.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse {
border:0;
right:20px;
width:18px;
height:18px;
}
.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse {
background: url(../images/right.png) no-repeat;
}
.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse {
background: url(../images/left.png) no-repeat;
}
.yui-skin-sam .yui-layout .yui-layout-clip {
background-color: #333333;
}
.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-bd {
text-align: center;
}
Primefaces 2.0.2 - Mojarra 2.0.2 - Windows XP SP3 - IE 8 / Firefox 3.6
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Can you post screenshots and mark which sections you are having problems to migrate?
-
- Posts: 55
- Joined: 05 Oct 2009, 16:04
I would like to remove the margins around the layout and would also like to have the resizer bar like in 2.0. Additional question is, if it would be possible to use a jquery themeroller design as they are fantastic e.g.
http://jqueryui.com/themeroller/#ffDefa ... Shadow=8px
Thanks, Rudolf
Primefaces 2.0.2 - Mojarra 2.0.2 - Windows XP SP3 - IE 8 / Firefox 3.6
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I also like jquery theme roller but widgets need to implement that. Still I think it's not that hard to use the roller skins with p:layout, it's css in the end.
Firebug is the best tool when working with css if you are not already using it. You can easily change and see the css live in your page with that.
Firebug is the best tool when working with css if you are not already using it. You can easily change and see the css live in your page with that.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 46 guests