Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I don't do ICEFaces, but you're encountering basically <a href="https://stackoverflow.com/questions/4022193/is-there-a-way-to-create-dynamically-richtab-elements">the same problem</a> as RichFaces has with its <code>&lt;rich:tab&gt;</code>. As there exist no hypothetical <code>&lt;rich:tabs&gt;</code> (like as <code>&lt;rich:columns&gt;</code> which would be the dynamic variant of <code>&lt;rich:column&gt;</code>/<code>&lt;h:column&gt;</code>), one would have to use the view build time JSTL <code>&lt;c:forEach&gt;</code> tag to prepare the JSF view with those tags. You could apply the same on your ICEFaces page:</p> <pre><code>&lt;ace:tabSet clientSide="true"&gt; &lt;c:forEach items="#{bean.tabs}" var="tab"&gt; &lt;ace:tabPane&gt; &lt;f:facet name="label"&gt;#{tab.label}&lt;/f:facet&gt; &lt;h:outputText value="#{tab.name}"&gt;&lt;/h:outputText&gt; &lt;/ace:tabPane&gt; &lt;/c:forEach&gt; &lt;/ace:tabSet&gt; </code></pre> <p>Note that this will only fail if <code>#{bean}</code> is not a real managed bean, but an expression which in turn depends on an evaluation of another JSF component, such as <code>&lt;h:dataTable var="bean"&gt;</code>.</p> <p>The <code>&lt;ui:repeat&gt;</code> won't work as it's a render-time tag. It won't dynamically generate multiple JSF components before the JSF component tree is been built.</p> <h3>See also:</h3> <ul> <li><a href="http://jira.icefaces.org/browse/ICE-6527" rel="nofollow noreferrer">ICEFaces issue 6527 - Dynamically adding/removing <code>ace:tabPane</code> Results in <code>ace:tabset</code> Retrieving Entire Tabset Content</a></li> <li><a href="http://jira.icefaces.org/browse/ICE-6560;jsessionid=927D82111E1B79775EF7785D2A682A85?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel" rel="nofollow noreferrer">ICEFaces issue 6560 - New <code>ace:tabs</code> dynamic tabset component</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload