You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Clément Maignien <c....@edic-syliance.com> on 2005/08/23 18:11:55 UTC

RE : RE : Different rendering for disabled menu

Yes indeed it would be very usefull, but don't know how to do that without modifying the source code of the component.
Anyone have any idea ?
 
Regards,
Clément

-----Message d'origine-----
De : Delbrouck, Henri-Philippe [mailto:henri-philippe.delbrouck@siemens.com] 
Envoyé : mardi 23 août 2005 16:52
À : 'MyFaces Discussion'
Objet : RE: RE : Different rendering for disabled menu


Clément,
 
by default, the menu is not rendered in another way when it is disabled. What we can see is the fact that there is no action associated with.
 
It should be very usefull to have a diffenet rendering for disbled menus (especially for dynamic menu).
 
Henri-Philippe
 
 

-----Original Message-----
From: Clément Maignien [mailto:c.maignien@edic-syliance.com] 
Sent: mardi 23 août 2005 16:31
To: MyFaces Discussion
Subject: RE : Different rendering for disabled menu


Huumm, never tried that. There isn't any styleClass attribute for the navigationMenuItem component instead we could do something like :
<t:navigationMenuItem styleClass="#{menuBean.item[i].disable ? 'disableStyle' 'enableStyle' }" .../>
 
But isn't it rendered another way by default when a menuItem is disabled ?
 

-----Message d'origine-----
De : Delbrouck, Henri-Philippe [mailto:henri-philippe.delbrouck@siemens.com] 
Envoyé : mardi 23 août 2005 15:17
À : 'users@myfaces.apache.org'
Objet : Different rendering for disabled menu



When a menu is set as disabled, could someone tell me how is it possible to render it in a different way in order that the user see that the menu is disabled.

Thanks 

	Henri-Philippe Delbrouck 

	Siemens Business Services