Board index JavaServer Faces General events handling on tool bar

events handling on tool bar

Components, Ajax Framework, Utilities and More.

Post 17 Jul 2012, 01:29

Posts: 39
Hi all I have a tool bar that is included in the head of the html page and it contains 3 buttons on witch I would like to change the content of the same html page: each button show a data table in the content of the page.

the data tables are already prepared using managed beans and the html page(in a <ui:include /> tags)

how can I get that work?
thanks for help( I am using primefaces 3.3.1 and jsf 2.0)

Post 17 Jul 2012, 12:47
sudheer User avatar
PrimeFaces Core Developer

Posts: 3152
Location: India,chennai
There is no URL attribute for commandbutton to work with toolbar so i went for menubar instead toolbar.If you use menubar instead toolbar then create <ui:insert...> for header,content and footer section in one template and define the content section in other page with URL attribute for each menu item.
PrimeFaces 5.0 | PFExt 2.0.0 | Mojarra 2.2
PFExtensions Book: http://www.packtpub.com/learning-primef ... pment/book
PFBlueprints: https://www.packtpub.com/primefaces-blueprints/book/
___________________
Sudheer Jonna

Post 17 Jul 2012, 12:50
kukeltje Expert Member

Posts: 6503
Location: Netherlands
@Sudheer: Might be me, but I have only a slight clue what you meen... can you elaborate.
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/

Post 17 Jul 2012, 20:25
sudheer User avatar
PrimeFaces Core Developer

Posts: 3152
Location: India,chennai
I mean we don't have url attribute for command button to work with toolbar so i used menubar with menuitems in template page content section.And we will see different content section with respect to each page.
PrimeFaces 5.0 | PFExt 2.0.0 | Mojarra 2.2
PFExtensions Book: http://www.packtpub.com/learning-primef ... pment/book
PFBlueprints: https://www.packtpub.com/primefaces-blueprints/book/
___________________
Sudheer Jonna


Return to General