containerStyle attribute in tabMenu/menuItem. Implemented?

UI Components for JSF
Post Reply
alainPannetier
Posts: 2
Joined: 10 Mar 2014, 18:17

25 May 2016, 20:13

In 5.3 I'm trying to align the last menu item of a "tabMenu" to the right of the tab bar using the "containerStyle" attribute of the "menuItem" component.
The 5.3 user guide ($3.75 p318) cites the "containerStyle" attribute presumably for this kind of customisation. So I do:

Code: Select all

     <p:tabMenu ...>
         ...
         <p:menuitem value="Help" outcome="/menu/doc" icon="ui-icon-help" style="color:blue" containerStyle="float:right">
             <f:param name="index" value="9" />
         </p:menuitem>
     </p:tabMenu>
I can see style="color:blue" in the generated html associated to the <a> but no style="float:right" in the parent <li>.
Webapp under Debugger does not seem to call "UIMenuItem.getContainerStyle()"

Done anything wrong or not implemented ?

alainPannetier
Posts: 2
Joined: 10 Mar 2014, 18:17

26 May 2016, 10:01

Sorry, posted too fast. I don't have the problem any more.

I sub-classed the factory renderer (TabMenuRenderer) and it all works ok now.

I'm proposing a patch (6.0.RC3 also has the issue) to support the attributes OOTB in TabMenuRenderer.

See https://github.com/primefaces/primefaces/issues/1450

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

30 May 2016, 14:32

I created pull request for this issue in github.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests