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

Posts: 1477
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 3.5 | PFExt 0.6.3 | PFM 0.9.3 | WebSphere 7.0 | GlassFish3.0
Mojarra 2.1.17 (JSF 2.1) | RBD8.0.1.3 | JDK1.6
DB2 | Windows XP, 7 | Mozilla FF,Chrome&IE
PFExt http://primefaces-extensions.github.com/
___________________
Sudheer Jonna

Post 17 Jul 2012, 12:50
kukeltje Expert Member

Posts: 3473
Location: Netherlands
@Sudheer: Might be me, but I have only a slight clue what you meen... can you elaborate.
Ronald van Kuijk
______________________________
PrimeFaces 3.5.7/4.0-SNAPSHOT Jboss 7.2.0 | Mojarra 2.1.18
Fedora 16, Firefox 22.0
Read the forum posting rules

Post 17 Jul 2012, 20:25

Posts: 1477
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 3.5 | PFExt 0.6.3 | PFM 0.9.3 | WebSphere 7.0 | GlassFish3.0
Mojarra 2.1.17 (JSF 2.1) | RBD8.0.1.3 | JDK1.6
DB2 | Windows XP, 7 | Mozilla FF,Chrome&IE
PFExt http://primefaces-extensions.github.com/
___________________
Sudheer Jonna


Return to General