Rendered tab from component menu
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: 1
- Joined: 03 Mar 2015, 20:34
If I put a specific tab to not render according to a condition only the menu icon is not rendered and disrupts the rest of the menu operation.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Sorry for my late reply. Fixed for next version; https://github.com/primefaces/barcelona/issues/1
Github Profile: https://github.com/mertsincan
-
- Posts: 5
- Joined: 20 Jan 2017, 05:01
Dear aragorn,
When is the release date of jsf barcelona-1.0.1? Because I also stuck on this issue and in tigh schedule. Or maybe you can suggest any workaround?
regards.
When is the release date of jsf barcelona-1.0.1? Because I also stuck on this issue and in tigh schedule. Or maybe you can suggest any workaround?
regards.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
- We think about releasing it in this month.When is the release date of jsf barcelona-1.0.1?
- Please add the following lines into TabMenuRenderer.javamaybe you can suggest any workaround
Code: Select all
...
public class TabMenuRenderer extends CoreRenderer {
@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()) { // ADDED THIS LINE (line 67)
writer.startElement("div", tabMenu);
...
writer.endElement("div");
} // ADDED THIS LINE (line 107)
}
writer.endElement("div");
writer.endElement("div");
WidgetBuilder wb = getWidgetBuilder(context);
wb.init("Barcelona", tabMenu.resolveWidgetVar(), clientId).finish();
}
...
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests