-
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
How to use Tabs with Templating or how to add action to tab #413
Comments
I don't understand the first question. What do you want to do precisely? Which templates do you want to load? As for the second question: |
In My project we used template for page layout with header,content,footer and maintemplate .so indeed to add tabs in the content part and load corresponding xhtml to specific tab using ui:define and ui:insert. |
@pavankd I'm going a bit StackOverflow on this and may ask: What have you tried so far? |
@zhedar So fare i tried SPA but i am unable to load forms properly eg : onclick="ajax:navigationbean.setPage('/pages/registrationForm.xhtml')" to command button or navlink,its not loading properly, Form is activation only after the second click and my application has lot of inner pages with forms. i followed this link to create my application : http://www.beyondjava.net/blog/single-page-applications-with-bootsfaces/ |
That's a cool link indeed :). Seriously, I suspect you try to do something that's a bit unorthodox. I understand you've got a page with a template. This page contains a tab. Is this correct? Now comes the twist: by selecting another tag withing the page, you want to replace the template. Correct? But that would mean to replace the entire page with another page. TabViews, in contrast, are usually used to replace the content area of the tab. They are not used to replace the surroundings of the tabView. Of course, it's perfectly possible your use case make sense - far be it from me to me to judge over this! - but I'd like to point out it's not the traditional use case of tabs. So, I've got two questions:
|
@pavankd , does it work with last releases? |
How to close the tab in bootsfaces cant find any sources of it in demo link |
In general, you can't close tab. Things look a bit different if you're using dynamic tabs (these ones: https://showcase.bootsfaces.net/bootstrap/tab.jsf#dynamic_tabs). They are populated from an array, so closing a tab is simple a matter of deleting the corresponding array entry. |
Hi ,
Please help me in following scenario ,
i want to use tabs with template.
like when i click on tab it must load tab specific template. without javascript.
or
how to add action to tab
The text was updated successfully, but these errors were encountered: