-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic tabView #807
Comments
This is a feature we don't support yet. I prefer to implement the Alternatively, we could also add a |
Trying to use |
See also #209 |
Thank you Guys, There will be a good solution. I have just one question, the value will be a model object or a simple collection? What do you think? Thank you, |
If I manage to do that, it'll be the same mechanism BTW, my job keeps distracting me from my open source project. If you don't hear from me a week or so, nudge me every once in a while so I don't forget about the really important projects :). |
PrimeFaces even created a custom Repeat component: https://www.primefaces.org/showcase/ui/data/repeat.xhtml |
@ggam Thanks for idea, I tried it, but p:repeate looks like work similar like ui:repeate because throw the same exception. And I dont think to good idea to force the Bootsfaces customer to use primefaces dependency if want use repeate. But It's just my opinion. |
@lyahim Sorry for the confusion. My proposal is to implement a new |
@stephanrauh good point to develop a solution for both JSF implementation, because I use both in different projects :) |
The next version of BootsFaces is going to be a small bugfix version. This change is surprisingly difficult, so I've reluctantly delayed it to the next version. |
@lyahim I've got good news for you, Mihaly. I've resumed work on the dynamic tabs, and it looks promising. I'm sure all kinds of things are still broken, so consider it just an early pre-alpha :). <b:tabView contentStyle="border: 1px solid #ddd;padding:10px;"
content-disabled="#{testBean.contentDisabled}">
<b:tab title="static tab">
This tab is static. It's content is static, too.
</b:tab>
<b:tab title="dynamic tab #{status.index}" value="#{testBean.tabs}" var="currentTab" varStatus="status">
<p>
The content of this tab is not important. It's just a dynamically created tab.
</p>
<p>
#{currentTab} / #{status}
</p>
</b:tab>
<b:tab title="final static tab">
This final tab is static. It's content is static, too.
</b:tab>
</b:tabView> @ManagedBean
@ViewScoped
public class TestBean implements Serializable {
private List<String> tabs = new ArrayList<>();
public TestBean() {
tabs.add("first tab");
tabs.add("second tab");
tabs.add("third tab");
}
} |
… namespace introduced by the new, dynmamic b:tab
Hi all,
I tried to create dynamically datatables inside tabview with modal. The goal was generate a tabview with more tabs, inside the tab there is a datatable per tab. In the tables there are a delete button with confirmation dialog. I try to make 2 solutions, but every doors are closed :)
But I have lot's of experience what I try to share with you.
Scenario 1)
In this scenario I used c:forEach. The problem was with the generated html ID-s. The first tab was correct, but the others clouldn't use the id attribute to generate html ID-s.
Show in the picture:
The result after the first tab I cannot find the modal component :S
Scenario 2)
In scenario 2 I changed the c:forEAch to ui:repeat.
In this case when the tabview rendered by JSF the tab elements didn't exists, therefor I got IndexOutOfBound exception in TabViewRenderer line 213.
I have no more idea for reach my goal. If you have any idea please help me.
Thank you,
Mihaly
The text was updated successfully, but these errors were encountered: