<pm:tab> render not working
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5
- Joined: 27 Jan 2017, 16:12
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.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Fixed for next version. For now, please make the following change;
in TabMenuRenderer.java
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");
...
}
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks for the update!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests