You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Gerard Donnelly <Ge...@amt-sybex.com> on 2008/06/05 17:08:05 UTC

[Trinidad] Skinning panelPage navigation facets

Hi All,

 

I'm using the XMLMenuModel and displaying it via the facets in
panelPage.

 

It's a 2 level menu and it would be great to have both aligned on the
left of the page, each on a single line (using hint="buttons"). It seems
I can use navigation2 facet for one of the two levels - but not both.

 

navigation1 aligns to the right and navigation3 is a vertical structure.

 

It is possible to skin either of these facets to mimic navigation2
behaviour?

 

I saw a similar question last year hinting that redefining the renderer
would be likeliest way of doing this. Is this still the case?

 

Regards,

Gerry Donnelly


P Please consider the environment before printing this email
_________________________________________________________ 
 
1. The information contained in this E-mail, including any files transmitted with it, is confidential and may be legally privileged. This E-mail is intended only for the personal attention of the stated addressee(s). Any access to this E-mail, including any files transmitted with it, by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail or any files transmitted with it. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform the sender immediately and delete it and all copies from your system. You may not forward this E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not necessarily represent the views of AMT-SYBEX. Internet communications are not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_________________________________________________________

RE: [Trinidad] Skinning panelPage navigation facets

Posted by Gerard Donnelly <Ge...@amt-sybex.com>.
Torben,

Thanks for the tip. 

Should be noted, though, that including navigationGlobal and branding
facets override the css. 

G



-----Original Message-----
From: Torben Makowka [mailto:torben.makowka@topcom.de] 
Sent: 13 June 2008 08:53
To: MyFaces Discussion
Subject: Re: [Trinidad] Skinning panelPage navigation facets

****** This Message Originated From The Internet Please Be Aware Of
Suspicious Attachments And Content ******
 
Hi Gerard,

> It is possible to skin either of these facets to mimic navigation2 
> behaviour?

One possible solution for this would be to set a stylesheet option on 
the surrounding tr:navigationPane (eg. inlineStyle="text-align: left;").

In theory it should also be possible to set a styleClass on the 
navigationPane and make the changes in the skin. I couldn't get this to 
work on my quick test on it though. This is what i tried:

Set a styleClass on the Pane:

<tr:navigationPane styleClass="nav1" ...>

Skin the Pane in the css:

.nav1 af|navigationPane {
   text-align: left;
}

This _should_ work, but i only got this to work for a global scope (i.e.

omit the ".nav1" in the css)

Hope this helps,
Torben

 
 
P Please consider the environment before printing this email


P Please consider the environment before printing this email
_________________________________________________________ 
 
1. The information contained in this E-mail, including any files transmitted with it, is confidential and may be legally privileged. This E-mail is intended only for the personal attention of the stated addressee(s). Any access to this E-mail, including any files transmitted with it, by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail or any files transmitted with it. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform the sender immediately and delete it and all copies from your system. You may not forward this E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not necessarily represent the views of AMT-SYBEX. Internet communications are not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_________________________________________________________

Re: [Trinidad] Skinning panelPage navigation facets

Posted by Torben Makowka <to...@topcom.de>.
Hi Gerard,

> It is possible to skin either of these facets to mimic navigation2 
> behaviour?

One possible solution for this would be to set a stylesheet option on 
the surrounding tr:navigationPane (eg. inlineStyle="text-align: left;").

In theory it should also be possible to set a styleClass on the 
navigationPane and make the changes in the skin. I couldn't get this to 
work on my quick test on it though. This is what i tried:

Set a styleClass on the Pane:

<tr:navigationPane styleClass="nav1" ...>

Skin the Pane in the css:

.nav1 af|navigationPane {
   text-align: left;
}

This _should_ work, but i only got this to work for a global scope (i.e. 
omit the ".nav1" in the css)

Hope this helps,
Torben