<pm:tab> render not working

Post Reply
smarttrade
Posts: 5
Joined: 27 Jan 2017, 16:12

14 Aug 2017, 13:48

i have requirement to hide base don user role for that i used render option when i use render in pm:tab tab hides but when i click next tab hided tabmenu is showing.

User avatar
aragorn
Posts: 2638
Joined: 29 Jun 2013, 12:38

17 Aug 2017, 11:18

Fixed for next version. For now, please make the following change;
in TabMenuRenderer.java

Code: Select all

@Override
 public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        ...
        
        writer.startElement("div", tabMenu);
        writer.writeAttribute("class", "layout-tabmenu-contents", null);
        for(int i = 0; i < children.size(); i++) {
            Tab tab = (Tab) children.get(i);
            
            if(tab.isRendered()) { /* PLEASE ADD THIS LINE(line 75) */
                writer.startElement("div", tabMenu);
                writer.writeAttribute("class", "layout-tabmenu-content", null);

                ....
                writer.endElement("div");
            }  /* PLEASE ADD THIS LINE (line 99) */
        }
        writer.endElement("div");
        
        writer.endElement("div");
        
       ...
    }

smarttrade
Posts: 5
Joined: 27 Jan 2017, 16:12

21 Aug 2017, 12:42

thanks working.

User avatar
aragorn
Posts: 2638
Joined: 29 Jun 2013, 12:38

13 Sep 2017, 09:07

Glad to hear, thanks for the update!

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest