tiered menu

UI Components for JSF
ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

15 Jul 2010, 10:43

Hi,

is there a way to get the tiered menu horizontaly?


Ramo

User avatar
michiel
Posts: 240
Joined: 07 Jun 2010, 09:12
Location: Belgium

15 Jul 2010, 11:18

you should play with the CSS,
it is a basic menu

Code: Select all

<div>
    <ul>
        <li><a></a></li>
    </ul>
</div>
should be not to hard to manage
Last edited by michiel on 15 Jul 2010, 11:20, edited 1 time in total.
JSF-2.0, mojarra-2.0.2-FCS and PrimeFaces-2.1 on GlassFish v3.0.1 (build 22)

ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

15 Jul 2010, 11:19

Hi,

can you give an example how to modify the css in primefaces components? I''m not sure, where to modify the css... A hint would be useful. Probably it should be direct in the component.

Thank you,
Ramo

wobblycogs
Posts: 47
Joined: 19 Apr 2010, 19:09
Location: Gloucester, UK

15 Jul 2010, 11:33

If you want to modify any of the PF styles the easiest way is to provide your own stylesheet containing just the changes / overrides you want to make. The PF stylesheets are always inserted into the head before your stylesheet. For example, in the site I'm currently working on I override the border settings in the layout component by providing a stylesheet containing (amongst other things):

Code: Select all

.ui-layout .ui-layout-doc .ui-layout-unit-center div.ui-layout-bd { border-width: 0px; }
.ui-layout .ui-layout-doc .ui-layout-unit-top div.ui-layout-bd { border-width: 0px 0px 1px 0px; }
.ui-layout .ui-layout-doc .ui-layout-unit-bottom div.ui-layout-bd { border-width: 1px 0px 0px 0px; }
.ui-layout .ui-layout-doc .ui-layout-unit-left div.ui-layout-bd { padding: 2px; }
.ui-layout .ui-layout-doc .ui-layout-unit-left div.ui-layout-hd { padding: 2px; }
PrimeFaces 3.0.1, Mojarra 2.1.3, GlassFish 3.1.1, Netbeans 7.0, Firefox 7

ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

15 Jul 2010, 11:34

Thank you,

simple and easy :)

Ramo

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jul 2010, 14:05

New user's guide has also more information about skinning, css selectors of most of the components are documented and there's a skinning section for themes.

ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

18 Jul 2010, 23:51

Hi there,


cagatay, do you mean the userguide from 23.05.2010 or is there a newer one?

I tried to get this menu with submenus horizontally, but can't get it styled. It's a kind of weird ;)


Ramo

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jul 2010, 00:46

Yes, new user's guide is available now, last update 18/07/2010.

http://www.primefaces.org/documentation.html

What do you mean by horizontal, is there an example somewhere I can look?

ramo.karahasan
Posts: 76
Joined: 18 Apr 2010, 23:57

19 Jul 2010, 08:58

Hi,

thank you for the new Documentation, i'll have a look at it. With "horizontal menu" i mean something like this:

http://www.cssplay.co.uk/menus/dd_valid_2.html

nothing special. Just the menu you did (vertically) in a horizontal way. If i try to use the .yui-skin-sam css attributes nothing happens.

hth,
Ramo

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jul 2010, 17:34

I see, this horizontal one is a different menu, maybe you can use;

http://css.maxdesign.com.au/listamatic/horizontal01.htm

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 39 guests