-
1. Is possible APPEND a <rich:tab> into <rich:tabpanel> dynamically?
ashnix Apr 22, 2011 3:08 AM (in response to raid3n)1 of 1 people found this helpfulWe had the same problem with dynamic rendering of tabs. We are using the following way to render dynamic(server-side) tabs without using a4j:repeat. a4:repeat anyway doesn't work.
Define jstl core namespace - xmlns:c="http://java.sun.com/jstl/core" and iterate using c:forEach
<rich:tabPanel switchType="client" id="someTabPanel">
<c:forEach items="${someLIst}" var="someLIstItem">
<rich:tab label="#{someListItem.name}"
...
...
</rich:tab>
</c:forEach>
</rich:tabPanel>
-
2. Is possible APPEND a <rich:tab> into <rich:tabpanel> dynamically?
raid3n Apr 22, 2011 3:51 AM (in response to ashnix)Thx Ashesh, but in that way it's not an appending a new tab. It iterate the someList (that has one more tab for example).
-
3. Is possible APPEND a <rich:tab> into <rich:tabpanel> dynamically?
ilya_shaikovsky Apr 25, 2011 2:11 AM (in response to raid3n)Sorry, but unfortunatelly for now you can't avoid complete tabPanel refresh. and b.t.w. it's possible for sure (but usin c:forEach and not repeat) and the
sample is already there. richfaces-showcase uses dynamic panelMenu and the samples tabs generated dynamically. to checkout sources check info there http://www.jboss.org/richfaces/demos