You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andrew Robinson <an...@gmail.com> on 2007/05/24 18:50:03 UTC

Re: I need to override the HtmlNavigationMenuRenderer

Google is your friend.

This article will hopefully be enough:

https://blueprints.dev.java.net/bpcatalog/ee5/ajax/extendingRenderFunctionality.html

On 5/24/07, mario.buonopane@accenture.com <ma...@accenture.com> wrote:
>
>
>
>
> No responses?
>
> Please!
>
>
>
> Mario
>
>
>
>  ________________________________
>
>
> From: mario.buonopane@accenture.com [mailto:mario.buonopane@accenture.com]
>  Sent: 24 maggio 2007 15.53
>  To: users@myfaces.apache.org
>  Subject: I need to override the HtmlNavigationMenuRenderer
>
>
>
>
> I need to override the HtmlNavigationMenuRenderer because I want
> enable/disable the menu items basing on application logic before rendering
> it (or during rendering).
>
>
>
> How can I do it?
>
>
>
> Thanks in advance
>
> Mario
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the email by you is prohibited.
>
>
>
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the email by you is prohibited.

Re: I need to override the HtmlNavigationMenuRenderer

Posted by Cagatay Civici <ca...@gmail.com>.
Hi,

Just write your renderer and add the following to your project's faces
config
 <render-kit>
        <renderer>
            <component-family>javax.faces.Panel</component-family>
            <renderer-type>org.apache.myfaces.Navigation</renderer-type>
            <renderer-class>your.extended.HtmlNavigationRenderer
</renderer-class>
        </renderer>
</render-kit>

Cagatay

On 5/24/07, Andrew Robinson <an...@gmail.com> wrote:
>
> Google is your friend.
>
> This article will hopefully be enough:
>
>
> https://blueprints.dev.java.net/bpcatalog/ee5/ajax/extendingRenderFunctionality.html
>
> On 5/24/07, mario.buonopane@accenture.com <ma...@accenture.com>
> wrote:
> >
> >
> >
> >
> > No responses?
> >
> > Please!
> >
> >
> >
> > Mario
> >
> >
> >
> >  ________________________________
> >
> >
> > From: mario.buonopane@accenture.com [mailto:
> mario.buonopane@accenture.com]
> >  Sent: 24 maggio 2007 15.53
> >  To: users@myfaces.apache.org
> >  Subject: I need to override the HtmlNavigationMenuRenderer
> >
> >
> >
> >
> > I need to override the HtmlNavigationMenuRenderer because I want
> > enable/disable the menu items basing on application logic before
> rendering
> > it (or during rendering).
> >
> >
> >
> > How can I do it?
> >
> >
> >
> > Thanks in advance
> >
> > Mario
> >
> >
> > This message is for the designated recipient only and may contain
> > privileged, proprietary, or otherwise private information. If you have
> > received it in error, please notify the sender immediately and delete
> the
> > original. Any other use of the email by you is prohibited.
> >
> >
> >
> >
> >
> > This message is for the designated recipient only and may contain
> > privileged, proprietary, or otherwise private information. If you have
> > received it in error, please notify the sender immediately and delete
> the
> > original. Any other use of the email by you is prohibited.
>

RE: I need to override the HtmlNavigationMenuRenderer

Posted by ma...@accenture.com.
Thanks, but the question is:
I have analyzed the code of HtmlNavigationMenu and I didn't find a point
to override where to insert my logic to modify attibutes of items (for
example disable a specific item) before render it.

I hope my question is clear....

Mario

-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] 
Sent: 24 maggio 2007 18.50
To: MyFaces Discussion
Subject: Re: I need to override the HtmlNavigationMenuRenderer

Google is your friend.

This article will hopefully be enough:

https://blueprints.dev.java.net/bpcatalog/ee5/ajax/extendingRenderFuncti
onality.html

On 5/24/07, mario.buonopane@accenture.com
<ma...@accenture.com> wrote:
>
>
>
>
> No responses?
>
> Please!
>
>
>
> Mario
>
>
>
>  ________________________________
>
>
> From: mario.buonopane@accenture.com
[mailto:mario.buonopane@accenture.com]
>  Sent: 24 maggio 2007 15.53
>  To: users@myfaces.apache.org
>  Subject: I need to override the HtmlNavigationMenuRenderer
>
>
>
>
> I need to override the HtmlNavigationMenuRenderer because I want
> enable/disable the menu items basing on application logic before
rendering
> it (or during rendering).
>
>
>
> How can I do it?
>
>
>
> Thanks in advance
>
> Mario
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete
the
> original. Any other use of the email by you is prohibited.
>
>
>
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete
the
> original. Any other use of the email by you is prohibited.


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.