Thanks Bruno. I believe this behavior is useful for this component though. I think the ability to change the style class based on some server state is very nice and adds flexibility beyond the default styles. I assume this is why this atrribute was included in the first place.

On 5/24/05, Bruno Aranda (JIRA) <[email protected]> wrote:
     [ http://issues.apache.org/jira/browse/MYFACES-117?page=all ]

Bruno Aranda updated MYFACES-117:
---------------------------------

    Attachment: MYFACES-117_patch.txt

This patch allows to override the styleClass of a child commandNavigation, despite the styleClasses provided for the parent panelNavigation. I don't think this should be the behaviour of this component, as overriding the styleClass of the commandNavigation it will have always the same style despite it is active or open. This is why  I don't recommend to include this patch in the trunk, but if someone is interested here can use it.

> styleClass attribute Ignored for commandNavigation tag
> ------------------------------------------------------
>
>          Key: MYFACES-117
>          URL: http://issues.apache.org/jira/browse/MYFACES-117
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.7 beta
>  Environment: Window XP, Tomcat
>     Reporter: Ted Jones
>  Attachments: MYFACES-117_patch.txt
>
> The panelNavigation stlye class values are picked up, but using the styleClass attribute in the commanNavigation tag has no effect.
> <x:panelNavigation
>     id="license_nav"
>     styleClass="navigation"
>     separatorClass="navseparator"
>     itemClass="navitem"
>     activeItemClass="navitem_active"
>     openItemClass="navitem_open">
> <x:commandNavigation
>     id="customerNavID"
>     action="">>     actionListener="#{navigateBean.customerSelected}"
>     immediate="true"
>     value="Customer"
>     styleClass="#{ navigateBean.customerStyleClass}"/>
> <x:commandNavigation
>    id="infoNavID"
>    action="">>    actionListener="#{navigateBean.infoSelected}"
>    value="License Info"
>    styleClass="#{navigateBean.customerStyleClass}"/>
> </x:panelNavigation>

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Reply via email to